Commit Graph

184 Commits

Author SHA1 Message Date
Glavin Wiechert 94fc870b84 Closes #323. Add language Swig with grammar HTML (Swig) 2015-05-18 18:08:06 -03:00
Glavin Wiechert 49570d9e02 Update expected text for failing "tss" test
See https://travis-ci.org/Glavin001/atom-beautify/builds/62638621
2015-05-14 22:11:25 -03:00
Glavin Wiechert 57ffa6741f Update to PHP-CS-Fixer 1.7 and fix broken PHP tests 2015-05-05 12:42:25 -03:00
Glavin Wiechert 8bcf4efcfa Fixes #305. Beautify input in single temp file for HTMLBeautifier
- Enable HTMLBeautifier tests for Travis CI
2015-05-04 02:32:25 -03:00
Glavin Wiechert 969f307175 Update PHP tests to new PHP-CS-Fixer expected style 2015-05-03 14:04:52 -03:00
Glavin Wiechert 4fb0c604f6 Update autopep8 and update failing Python test to pass 2015-05-03 12:57:22 -03:00
Glavin Wiechert cc9b8e8ff2 See #294. Add missing argument to PHP-CS-Fixer beautifier
And enable tests for Travis CI
2015-05-03 12:50:45 -03:00
Glavin Wiechert b5c3098778 Fixes #301. Fix autopep8 beautifier's arguments 2015-05-03 12:00:33 -03:00
Glavin Wiechert 4eed4cfc21 See #292. Add more Markdown with YAML Front Matter tests 2015-05-03 11:39:46 -03:00
Glavin Wiechert 1fd94e871b Closes #192. Add coffee-fmt beautifier for CoffeeScript language 2015-05-03 01:57:17 -03:00
Glavin Wiechert 0a0ba673e8 Closes #176. Add gofmt beautifier for Golang language 2015-05-03 01:23:29 -03:00
Glavin Wiechert 57e3ef4a48 Fixes #283. Update Coffee-Formatter and add more CoffeeScript tests 2015-05-02 23:07:45 -03:00
Glavin Wiechert 0e1cdd2f85 Closes #72. Add another SCSS test file 2015-05-02 22:11:01 -03:00
Glavin Wiechert 38b760ee6a Merge branch 'master' of git://github.com/jney/atom-beautify into jney-master
Conflicts:
	lib/langs/ruby-beautify.coffee
	lib/language-options.coffee
2015-05-02 20:53:53 -03:00
Glavin Wiechert 9211a03c16 See #282. Improve Beautifier options definition handling
What's new:
- Beautifier options definition supports:
    - boolean - enable/disable
    - string - rename and enable
    - function - transform and enable
    - array - apply complex transformation to multiple options and
      output single option result
- Show "Supported by <beautifiers>" for each language option
    - Beautifiers have a name
    - Beautifier options definition is used to determine if
    language option is supported by a beautifier
- Remove SQL test, since sqlformat is inconsistant
2015-05-01 02:32:02 -03:00
Glavin Wiechert 0b1d0216d9 All tests should pass with new internal API 2015-04-30 13:23:41 -03:00
Glavin Wiechert 613a7599c8 Fix SQL beautification tests 2015-04-19 21:24:59 -03:00
Glavin Wiechert 6204ebbff6 Closes #122. Add Titanium style Sheets (TSS) support
See #238.
2015-04-12 12:58:16 -03:00
Glavin Wiechert ca9b20c43d Temporarily disable failing PHP tests
Until new tests for PHP-CS-Fixer 1.6
can be made
2015-04-07 14:49:28 -03:00
Glavin Wiechert b5bec0e0a7 Fix failing tests for LESS and SASS 2015-03-20 14:44:59 -03:00
Ryan Rushton 239b3678ae add php-cs-fixer to travis
enable test 1 and 2.
test 3 does not seem to pass
2015-03-19 23:11:44 -07:00
Glavin Wiechert d91421b628 See #216 and #122. Add another Titanium Style Sheet (disabled) test 2015-03-16 02:27:49 -03:00
Glavin Wiechert 2f012e296a See #122. Add Titanium Style Sheet example (disabled) test 2015-03-16 02:04:00 -03:00
filipesilva fdd1668c20 Updated options for js-beautify 2015-03-07 21:55:52 +00:00
Peter Shin 8d870d0a25 Correcting new line. 2015-02-21 13:10:37 -08:00
Peter Shin aa06255e6f Added support Marko templates. 2015-02-21 12:27:39 -08:00
Glavin Wiechert fc376b860e Disable failing Python beautify test. 2015-02-08 22:22:50 -04:00
Glavin Wiechert c916f51650 Disable failing Uncrustify tests for C and C++ 2015-02-08 21:53:45 -04:00
Glavin Wiechert a50c5a3c4c Clean up LESS/SCSS Unit Tests and update Prettydiff
Fixes #181 and fixes #180.
2015-02-02 12:26:40 -04:00
Glavin Wiechert 0b20005e9a See #169. Fix Markdown YAML Front Matter Test 2
My local pandoc was not the same as Travis CI's
and so my beautifications were always different and tests would not
match. I used `brew install pandoc` and am now in sync at v1.13.2
2015-01-03 02:10:28 -04:00
Glavin Wiechert eb1471d23b Closes #172, #146. Update to new Atom Config API.
What's new:
- Add settings descriptions
- Update options for js-beautify (JS, CSS, HTML)
- Update Spec to support new changes
2015-01-03 01:58:52 -04:00
Glavin Wiechert a2292201a3 Remove newline in expected output for Markdown YAML Front Matter test 2
Fixes https://travis-ci.org/Glavin001/atom-beautify/builds/45710683
2015-01-02 16:18:43 -04:00
Glavin Wiechert bddf667c82 See #171, #169. Add more tests for CSS & Markdown w/ YAML Front Matter 2015-01-02 15:01:07 -04:00
Glavin Wiechert f280469e77 Fixes #169. Remove JS-Yaml and use YAML-Front-Matter, resolving conflict 2015-01-02 01:30:24 -04:00
Glavin Wiechert e7a980045d Closes #169. Add YAML Front Matter support to Markdown beautification 2015-01-02 00:53:55 -04:00
Glavin Wiechert 0df6e4734b See #169. Add failing test for YAML Front Matter in Markdown.
Test is disabled so that Travis CI still marks as successful.
2015-01-01 23:30:54 -04:00
Glavin Wiechert dc1e720e90 Fixes #149. Update prettydiff to fix interpolated text vars in SCSS 2015-01-01 16:54:44 -04:00
Glavin Wiechert 3550280502 Closes #159, #149. Update prettydiff to fix LESS and SCSS.
- SCSS Interpolated text variables
- LESS &:extend
2015-01-01 15:15:39 -04:00
Glavin Wiechert 220fc7666d See #18. Enable CoffeeScript Tests for Travis CI. 2014-12-28 18:19:50 -04:00
Glavin Wiechert 062aecfb8d See #18. Disable CPP header test. 2014-12-28 16:29:26 -04:00
Glavin Wiechert e46001b48f See #18. Enable tests for CPP, Python, and SQL. 2014-12-28 16:20:01 -04:00
Glavin Wiechert 8cbc8741df See #18. Enable Markdown tests. 2014-12-28 15:28:41 -04:00
Glavin Wiechert 74e7ab0e06 See #18. Disable failing tests.
Will fix later.
2014-12-28 14:57:53 -04:00
Glavin Wiechert b0f12654b2 See #18. Disable tests that do not yet pass.
- Need to add more dependencies to support those tests
2014-12-28 14:43:25 -04:00
Glavin Wiechert bc99f6c598 See #18. Most of the language tests are successful.
Tests that start with underscores (_) are hidden and not tested.
Those must eventually be solved.
2014-12-28 03:23:05 -04:00
Glavin Wiechert f8e0e445ae See #18. Beautify most of the expected tests.
I was unable to do Python and SQL, as I am having Python problems on my
laptop. Hopefully I will be able to figure this out soon.
2014-12-28 02:38:06 -04:00
Glavin Wiechert b147ecd9fa See #18. Implement foundation for Specs.
What's New:
- Directory structure for specs examples to be tested
- Dynamically generated specs for all tests/sample source code

TODO:
- Fix expected test output file contents to be correct
2014-12-28 02:29:03 -04:00
Glavin Wiechert fd8c70e9ba See #159. Add failing LESS code to test once fix is available.
See https://github.com/austincheney/prettydiff/issues/31
fix is not yet available on NPM.
2014-12-27 22:21:38 -04:00
Glavin Wiechert 92e1aa7a5d Move simple Markdown example to simple directory.
See #97.
2014-11-16 10:19:34 -04:00
Theo Willows 362d1a9d93 Added a test Perl file 2014-11-05 22:35:15 +01:00
Glavin Wiechert ecbbbaec29 Closes #123. Add Mustache support. 2014-10-26 16:11:44 -03:00
Glavin Wiechert 80701cf2cd See #49. Add unformatted TypeScript example. 2014-10-16 21:40:44 -03:00
ewgenius dcc9e2d3b5 Add TypeScript support 2014-10-14 11:09:38 +04:00
Glavin Wiechert 3fa4aa292f See #106. Add another example PHP script. 2014-10-05 09:51:24 -03:00
Glavin Wiechert ccc8802f36 Fixes #96. Fix support for Alphasort option for LESS/SCSS properties 2014-09-28 17:28:51 -03:00
Glavin Wiechert 251b868420 Merge pull request #97 from Bengt/patch-1
add simple example of ill-indented Markdown
2014-09-18 10:39:42 -03:00
Bengt Lüers 3edc155279 Add nested example of ill-indented Markdown 2014-09-18 15:19:37 +02:00
Bengt Lüers bff9b440d6 add simple example of ill-indented Markdown 2014-09-18 15:17:34 +02:00
Glavin Wiechert baf3e49b97 Closes #68. Support editorconfig files. 2014-09-09 01:26:51 -03:00
Glavin Wiechert c6a4101893 Fixes #70. Update Pretty-Diff dep. from ^1.0.23 to ^1.2.1 2014-09-08 19:11:17 -03:00
Glavin Wiechert 6652e7f703 Closes #80. Add HTML Embedded Ruby (ERB) support. 2014-09-08 18:50:54 -03:00
Glavin Wiechert 1130b58114 See #71. Add example JS file using reserved words to test #71 2014-09-07 19:55:25 -03:00
Glavin Wiechert 4f5c75c5e3 See #77. Add example of broken SCSS case. 2014-09-07 19:48:48 -03:00
Glavin Wiechert 7dbff2cbc1 See #61. Add LESS example with Mixins to test. 2014-09-07 19:38:24 -03:00
Glavin Wiechert 43616d94e2 See #67. Update README and add new SQL example. 2014-08-30 15:44:38 -03:00
Glavin Wiechert 325ada7851 Closes #57. Customization in .jsbeautifyrc file now generates the config
(.cfg) file for Uncrustify beautification.
2014-08-08 17:42:23 -04:00
Glavin Wiechert 5d6751cb4b See #57. Add Uncrustify beautifier for multiple language support.
Uncrustify Language support:
- C
- C++
- C#
- Objective-C
- Java
- D
- Pawn
- Vala

Closes #45. Add Java Support.

Currently, use the configPath option to set an absolute or relative path
(relative to the currently beautified file) to specific the .cfg file
for Uncrustify to use as configuration options.
2014-08-08 13:38:28 -04:00
Glavin Wiechert 1f0fb9c0db Closes #44. Switch to using Pretty Diff for SASS, as well.
See #54. Use indent_size and indent_character options.
2014-08-03 23:35:48 -04:00
Glavin Wiechert 3c9836f920 Closes #31. Add CoffeeScript support. 2014-08-03 23:31:34 -04:00
Glavin Wiechert 7fdde0f8a6 See #51. Work on improving PHP support and deubgging errors. 2014-08-03 16:22:48 -04:00
Glavin Wiechert 010863f5cc Fixes #54. LESS beautifier using PrettyDiff now fixed.
The `lang` option was incorrectly set to `less`,
it should have been (now is) set to `css`.
2014-08-03 15:33:13 -04:00
Glavin Wiechert 5bff9ebc48 Closes #54. Switch to using Pretty Diff for LESS support.
Fixes #53. Fixes #52.
2014-08-01 20:06:24 -04:00
Glavin Wiechert 65ff7f9f7a Closes #35. Add more options for Python PEP8 beautifying.
Options:
- max line length
- indent size
- ignore (errors)

Also fixed typo causing very important bug,
such that languages were not loaded correctly and options were missing.
2014-06-27 22:04:17 -06:00
Glavin Wiechert 88651447a7 Closes #25. Add Ruby support. 2014-06-16 00:09:12 -03:00
Glavin Wiechert 612c7dc17c Closes #24. Add Python (PEP 8) support.
- Add reusable cli-beautify for external, non-Node beautifiers.
2014-06-15 23:11:01 -03:00
Glavin Wiechert 1e16af9012 Closes #26. Add PHP support.
- Update README for setup and usage.
- Add PHP example code
- Tested on Mac
2014-06-15 18:37:11 -03:00
Glavin Wiechert 479034dae7 Closes #22. Use Atom Package Settings as configuration options.
- Fix issue for beautifying unsaved files.
2014-06-15 01:03:01 -03:00
Glavin Wiechert 78e0382c15 Closes #21. Parsing .jsbeautifyrc falls back to YAML, when JSON fails. 2014-06-14 20:31:37 -03:00
Glavin Wiechert 54e61a816f Fixes #9. Nested options in .jsbeautifyrc are properly handled. 2014-06-14 19:57:55 -03:00
Glavin Wiechert 2e57630275 Closes #14. Completed support for SQL.
- Updated README
- SQL now can apply the indent_char and indent_size options.
2014-06-14 02:23:02 -03:00
Glavin Wiechert 74e392b410 Add example SQL query for #14. 2014-06-14 01:31:00 -03:00
Glavin Wiechert 978a6c5a43 See #14. Add JSON support.
JSON is processed as if it were JavaScript.
I have tested it (see examples/simple-jsbeautifyrc/test.json)
and it works as expected and supports comments!
2014-06-14 00:59:19 -03:00
Glavin Wiechert b530eda6e3 Closes #13. Add Handlebars support. 2014-06-13 00:16:39 -03:00
donaldpipowitch 3ac78078ce updated README, added examples 2014-05-19 08:04:56 +02:00