Compare commits

...

134 Commits

Author SHA1 Message Date
PatOnTheBack 41d5051b39 Upgrade vulnerable Dependencies (#2366)
* Bump lodash from 4.17.10 to 4.17.13

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.13.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.13)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump extend from 3.0.1 to 3.0.2

Bumps [extend](https://github.com/justmoon/node-extend) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/justmoon/node-extend/releases)
- [Changelog](https://github.com/justmoon/node-extend/blob/master/CHANGELOG.md)
- [Commits](https://github.com/justmoon/node-extend/compare/v3.0.1...v3.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump handlebars from 4.0.11 to 4.1.2

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.11 to 4.1.2.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.11...v4.1.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump open from 0.0.5 to 6.0.0

Bumps [open](https://github.com/sindresorhus/open) from 0.0.5 to 6.0.0.
- [Release notes](https://github.com/sindresorhus/open/releases)
- [Commits](https://github.com/sindresorhus/open/commits/v6.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-20 19:37:34 -03:00
Glavin Wiechert 76c20e0091
Add CodePass website link to README (#2333)
* Add CodePass website link to README

* Add CodePass website link to README-template.md
2019-04-04 01:02:02 -03:00
Glavin Wiechert a3fc41a9db Change v0.33.3 to v0.33.4 in CHANGELOG.md 2018-09-29 00:04:22 -03:00
Glavin Wiechert 7ca4c438e4 Prepare 0.33.4 release 2018-09-29 00:03:41 -03:00
Glavin Wiechert 959862122c Prepare 0.33.3 release 2018-09-29 00:03:05 -03:00
Glavin Wiechert a73906c4e2 Revert "Prepare 0.33.3 release"
This reverts commit ce6b50e1f6.
2018-09-29 00:02:43 -03:00
Glavin Wiechert ce6b50e1f6 Prepare 0.33.3 release 2018-09-29 00:00:34 -03:00
Glavin Wiechert 12d03146b7
Merge pull request #2238 from Glavin001/bugfix/auto-rm-docker
Fix #2204. Auto-remove docker containers after run.
2018-09-28 23:59:57 -03:00
Glavin Wiechert 1594ced54b Fix #2204. Auto-remove docker containers after run. 2018-09-28 23:57:42 -03:00
Glavin Wiechert fec8843cdc
Add Unibeautify CI app link to README-template.md
https://github.com/Unibeautify/website/pull/192
2018-09-27 22:54:57 -03:00
Glavin Wiechert 3426b7a4c5
Add Unibeautify CI app link to README.md
https://github.com/Unibeautify/website/pull/192
2018-09-27 22:53:45 -03:00
stevenzeck af19ce81c5
Prepare 0.33.2 release 2018-09-26 11:13:40 -05:00
stevenzeck c17d5bcfdf
Update changelog 2018-09-26 11:11:41 -05:00
Steven Zeck 596b979c96
Merge pull request #2189 from arl-o/master
Add Black beautifier for Python
2018-09-11 23:19:43 -05:00
Steven Zeck 0968599c86
Merge branch 'master' into master 2018-09-11 20:05:17 -05:00
Steven Zeck 80280bb70c
Merge pull request #2207 from utkarshkukreti/ocamlformat
Add `ocamlformat` formatter for OCaml.
2018-09-11 20:03:39 -05:00
Steven Zeck 67f4ca4249
Merge pull request #2215 from bitwiseman/patch-2
Update html.coffee with js-beautify v1.8.1
2018-09-11 19:59:08 -05:00
Liam Newman f1e6380eac
Update changelog to highlight breaking change 2018-09-11 15:59:00 -07:00
Liam Newman 9445822480 Add change log and other message changes 2018-09-05 23:36:33 -07:00
Liam Newman 38bd8b531c Set unformattted to empty 2018-09-05 23:31:04 -07:00
Liam Newman a3accd1373 Typo fix 2018-09-05 23:30:38 -07:00
Liam Newman f611d5765f Fix output for blade tests 2018-09-05 01:09:32 -07:00
Liam Newman e2092205c8 Update to latest release 2018-09-05 00:04:34 -07:00
Liam Newman 4a3c093199 Update html.coffee with js-beautify v1.8.1 2018-09-05 00:04:34 -07:00
Glavin Wiechert c1990aadc9
Merge pull request #2221 from szeck87/ci-fixes
Fix CI issues
2018-09-04 17:48:27 -03:00
Steven Zeck b2db7371dd
Remove elm from being tested 2018-09-02 23:34:53 -05:00
Steven Zeck d9c06bb47b
Remove marko from being tested 2018-09-02 23:18:43 -05:00
Steven Zeck 235d9af6d5
Fix CI issues 2018-09-02 23:10:56 -05:00
Steven Zeck eb72ca4487
Prepare 0.33.1 release 2018-09-02 20:37:17 -05:00
Steven Zeck 7dc83efb39
Remove marko-prettyprint package temporarily 2018-09-02 20:37:11 -05:00
Utkarsh Kukreti bcdccca4f6 Add `ocamlformat` formatter for OCaml. 2018-08-24 01:50:36 +05:30
Steven Zeck 645f1e2404
Update CHANGELOG 2018-08-10 08:51:46 -05:00
Steven Zeck 6d459fabef
Prepare 0.33.0 release 2018-08-10 08:50:23 -05:00
Steven Zeck 000b807a26
Update CHANGELOG 2018-08-10 08:50:16 -05:00
Arlo Shallit ee6c605b04 Remove black from requirements.txt 2018-07-30 21:58:11 -04:00
Arlo Shallit 64c9466418 Remove trailing whitespace 2018-07-30 19:26:02 -04:00
Arlo Shallit cd37c75c40 Added black to requirements.txt 2018-07-30 17:08:11 -04:00
Arlo Shallit dd9aacffb0 Add Black python beautifier 2018-07-30 16:53:59 -04:00
Steven Zeck bb9428a4fa
Merge pull request #2172 from MSP-Greg/appveyor
Appveyor - Ruby 2.4-x64, gem update --system
2018-06-25 13:58:01 -05:00
MSP-Greg 99662fe968 Ruby 2.4-x64, gem update --system 2018-06-25 13:17:39 -05:00
Steven Zeck b6591b738e
Use emacs64 to resolve emacs install issue 2018-06-21 11:47:54 -05:00
Steven Zeck a39bbd52cf
Merge pull request #2164 from maximumdata/master
Fix for unnecessary fat arrow warning from linter in executable beaut…
2018-06-16 23:40:36 -05:00
Steven Zeck 43bf23f2a1
Merge pull request #2165 from bbugh/fix-rubocop-exact-file-exclude
Fix rubocop exact file exclude
2018-06-16 18:25:14 -05:00
Brian Bugh d87b5af8c8 Updated CHANGELOG 2018-06-13 15:44:53 -05:00
Brian Bugh 05b20e61c9 Fixes Rubocop AllCops Exclude exact file names 2018-06-13 15:40:00 -05:00
Mike Dettmer 1035da2350 Fix for unnecessary fat arrow warning from linter in executable beautifier 2018-06-13 13:58:58 -04:00
Steven Zeck 6f1bd1b225
Update package-lock.json 2018-06-07 10:25:23 -05:00
Steven Zeck f4ca817c16
Merge pull request #2148 from szeck87/error-message-patch1
Fix to show executable error instead of Docker
2018-06-04 00:17:41 -05:00
Steven Zeck 4a8e740fec
Update changelog 2018-05-30 18:34:36 -05:00
Steven Zeck 5f1c40f4e5
Update README-template Slack badge 2018-05-30 18:32:35 -05:00
Steven Zeck f22608ca28
Fix to show executable error instead of Docker 2018-05-30 18:30:09 -05:00
Steven Zeck b6214f2563
Prepare 0.32.5 release 2018-05-28 17:24:32 -05:00
Steven Zeck 02f6330bd7
Update CHANGELOG 2018-05-28 17:24:04 -05:00
Steven Zeck 7f9d838093
Merge pull request #2141 from Glavin001/phpcbf-patch1
Require path in phpcbf
2018-05-28 17:14:21 -05:00
Steven Zeck 36f00fe508
Merge pull request #2096 from szeck87/rubocop-windows-fix
Workaround for Rubocop string split for Windows
2018-05-23 13:34:49 -05:00
Steven Zeck 196f572290
Workaround for Rubocop string split for Windows 2018-05-23 12:10:56 -05:00
Steven Zeck e23c5a0f0d
Merge pull request #2086 from joaomlneto/master
fixed: package.json repository compatible with apm and npm
2018-05-23 10:36:36 -05:00
Steven Zeck 9b04e749dc
Add optional flag to phpcbf 2018-05-23 10:15:09 -05:00
Steven Zeck 7e6e871b9a
Require path in phpcbf 2018-05-22 11:53:13 -05:00
Steven Zeck b6b923c087
Update changelog 2018-05-15 19:27:47 -05:00
Steven Zeck 258a5ce53a
Prepare 0.32.4 release 2018-05-15 19:22:22 -05:00
Steven Zeck 1ddb19d50d
Remove duplicate http in URL 2018-05-15 15:27:45 -05:00
Steven Zeck 10d7830f55
Update Slack badge URL 2018-05-15 15:26:10 -05:00
Steven Zeck cfc7b86737
Merge pull request #2134 from szeck87/docker-fix
Fix php-cs-fixer not running from phar files
2018-05-15 15:24:07 -05:00
Steven Zeck a5d188f459
Remove opam from Linux install 2018-05-15 14:29:33 -05:00
Steven Zeck 1955b72fc1
Remove homebrew/php and opam from brew installs 2018-05-15 13:47:55 -05:00
Steven Zeck 20f5628a74
Separate --config and the file path for Docker 2018-05-15 12:29:49 -05:00
Steven Zeck 7d17515e25
Fix error with php-cs-fixer being run from phar file 2018-05-15 12:08:09 -05:00
Steven Zeck e4746ae86e
Reject dockerError instead of error 2018-05-15 10:27:20 -05:00
Steven Zeck 72bb96e6f7
Prepare 0.32.3 release 2018-05-14 14:04:29 -05:00
Steven Zeck 5eb7e6d0d6
Merge pull request #2129 from Glavin001/bugfix/php-cs-fixer-docker
Fix Docker Executable with optional Executable, PHP-CS-Fixer
2018-05-14 13:17:04 -05:00
Glavin Wiechert efabda3b39 Update CHANGELOG for v0.32.3 2018-05-14 13:32:35 -03:00
Glavin Wiechert a62ca65a23 Fix Docker Executable with optional Executable, PHP-CS-Fixer 2018-05-14 13:21:14 -03:00
Glavin Wiechert 7b3bc35048
Merge pull request #2087 from darron1217/blade
Basic Implement of Blade Template
2018-05-08 12:33:03 -03:00
Steven Zeck e6fa7f8225
Update issuecomplete.yml 2018-04-14 11:41:43 -05:00
Steven Zeck 34cb4024c1
Update issuecomplete.yml 2018-04-13 10:33:49 -05:00
Steven Zeck b8523e6247
Update issuecomplete.yml 2018-04-09 12:45:08 -05:00
Steven Zeck 004ece9060
Create issuecomplete.yml 2018-04-09 12:43:24 -05:00
Glavin Wiechert 53360a7fad
Merge pull request #2099 from Glavin001/Glavin001-patch-1
Add Slack and Twitter Follow badge to README
2018-03-30 13:06:54 -03:00
Glavin Wiechert 11381aa6d1
Add Slack and Twitter follow badges to README-template
[skip ci]
2018-03-30 13:06:33 -03:00
Glavin Wiechert 7829f39cf1
Add Slack and Twitter Follow badge to README 2018-03-30 13:03:47 -03:00
Darron Park 5aa497a902 Update CHANGELOG content 2018-03-20 09:43:47 +09:00
Darron Park 7c7203a23b Removing newline of file end (blade test) 2018-03-20 09:17:07 +09:00
Darron Park e4e59e5073 Removing pip update on .travis.yml (Advice from @szeck87) 2018-03-20 09:14:29 +09:00
Darron Park 3b81af1b22 Add language-blade to atom-packages.txt 2018-03-20 01:56:40 +09:00
Darron Park c6c8d190f6 Update docs & Attempt to fix build error 2018-03-20 01:43:22 +09:00
Darron Park a2303895a6 Remove php fallback from blade 2018-03-19 15:51:47 +09:00
Darron Park 7cf6ba19de Remove blade from language spec 2018-03-19 15:34:07 +09:00
Darron Park af94463a1f Fix line ending error (language blade) 2018-03-19 15:13:25 +09:00
Darron Park ef4098af01 remove extra spaces (Blade Template) 2018-03-19 15:08:26 +09:00
Darron Park 895d0178cb Basic Implement 2018-03-19 14:57:00 +09:00
João Neto 3f404e8484
Update package.json 2018-03-16 20:47:19 +00:00
João Neto d3ec5e6781 fixed: package.json repository compatible with apm and npm 2018-03-16 20:25:23 +00:00
Glavin Wiechert 926bcd4970 Prepare 0.32.2 release 2018-03-10 14:41:23 -04:00
Glavin Wiechert 6081024baa See #2063. Revert, prepease for v0.32.2 2018-03-10 14:41:14 -04:00
Glavin Wiechert 858f8d88a3 See #2063. Revert, prepease for v0.32.2 2018-03-10 14:39:02 -04:00
Glavin Wiechert 3b01a23c47 Prepare 0.32.1 release 2018-03-10 14:36:42 -04:00
Glavin Wiechert 043699a811 Update changeloge for v0.32.1 2018-03-10 14:36:33 -04:00
Glavin Wiechert ee3280247e
Merge pull request #2078 from szeck87/sql-tests
Enable SQL for CI tests
2018-03-10 11:47:46 -04:00
Steven Zeck c04a322769
Fix export message 2018-03-09 23:19:06 -06:00
Steven Zeck db9c0aeb6b
Clear TRAVIS_COMMIT_MESSAGE variable 2018-03-09 23:16:05 -06:00
Steven Zeck c3b5e063d1
Remove newlines from SQL test files 2018-03-09 23:10:59 -06:00
Steven Zeck 42e493ea52
Enable SQL for CI tests 2018-03-09 22:49:51 -06:00
Steven Zeck 7e735ec70c
Merge pull request #2064 from pengjunjie1207/master 2018-03-09 14:37:34 -06:00
Glavin Wiechert 5bb3667987
Merge pull request #2068 from hxsf/master
Fix #1790. Fix Lua indentation format bug
2018-03-08 13:45:56 -04:00
呼啸随风 b97f106537
Update test.lua 2018-03-08 15:14:04 +08:00
Glavin Wiechert b104361121
Merge pull request #2071 from szeck87/prettier-fix
Fix to send parser to prettier API properly
2018-03-06 18:16:39 -04:00
Steven Zeck d5cceaf071
Fix to send parser to prettier API properly 2018-03-06 12:01:25 -06:00
Steven Zeck 065713809c
Add link to issues in changelog 2018-03-05 17:04:37 -06:00
Glavin Wiechert 6bc36884eb
Merge pull request #2069 from szeck87/rubocop-exe
Update Rubocop to be an executable
2018-03-05 16:20:43 -04:00
Steven Zeck e6077cdbdb
Deprecate options. rubocop_path, be backwards compatible with it 2018-03-05 12:19:39 -06:00
Steven Zeck 919e19f427
Run docs 2018-03-05 10:29:24 -06:00
Steven Zeck dc500b6a05
Fix Ruby test files 2018-03-05 10:27:40 -06:00
Steven Zeck 4ecd668208
Update Rubocop to run as an exe 2018-03-05 10:18:51 -06:00
hxsf b99527a349 fix #1790 2018-03-05 10:53:18 +08:00
Junjie Peng e9f620736c
Update sqlformat.coffee
apply Glavin001's suggestion.
2018-03-05 09:48:25 +08:00
Junjie Peng 0360f81ea3
Merge branch 'master' into master 2018-03-05 09:44:36 +08:00
Glavin Wiechert bf971abc7f
Merge pull request #2063 from joaomlneto/patch-1
Fix package.json repository.url; fix travis build
2018-03-04 11:00:13 -04:00
João Neto 22ba792723 revert explicit npm version, fix pretest script 2018-03-04 09:25:12 +00:00
João Neto 280d803358 changelog 2018-03-04 00:51:01 +00:00
João Neto a766cbc34b remove coffee-formatter, added coffeelint on test 2018-03-03 20:38:58 +00:00
João Neto ffe5f5fa9a Merge remote-tracking branch 'upstream/master' into patch-1 2018-03-03 20:10:51 +00:00
João Neto 6aa51fdf78 Bump NPM version in Travis
Got issue with npm on pull request #2063
Fix is to use npm >=5.6 (issue npm/npm#17858)
2018-03-03 20:09:21 +00:00
Glavin Wiechert 386601934b
Merge pull request #2060 from kachkaev/upgrade-prettier-to-1.11
Upgrade prettier to 1.11
2018-03-03 15:51:37 -04:00
Alexander Kachkaev bba9616300
Mention Prettier 1.11 in CHANGELOG 2018-03-03 08:49:24 +00:00
Junjie Peng f37cb40ad8 Fix "Reindent" option for sqlformat.
For sqlparse-0.2.3 and sqlparse-0.2.4, beautifying sql will throw "sqlformat: error: argument -r/--reindent: ignored explicit argument".
2018-03-03 15:22:51 +08:00
João Neto b54ce54a5d
package.json repository: fix shorthand github 2018-03-02 23:57:35 +00:00
João Neto e774fffd9c
Fix repository.url format 2018-03-02 23:47:16 +00:00
Steven Zeck ef5a1b1f4b
Add link to issue listed in changes 2018-03-02 12:46:42 -06:00
Glavin Wiechert b6fa68bf08
Merge pull request #2061 from szeck87/disable-gn-verilog
Disable gn and verilog CI tests for now
2018-03-02 14:12:32 -04:00
Steven Zeck 4cd81a388d
Disable gn and verilog CI tests for now 2018-03-02 11:53:38 -06:00
Alexander Kachkaev 7c4d09781c
Update package-lock.json following the upgrade of Prettier 2018-03-02 07:15:34 +00:00
Alexander Kachkaev bddad381c5
Upgrade prettier to 1.11.1
Changelog: https://github.com/prettier/prettier/blob/master/CHANGELOG.md
1.11 blog post: https://prettier.io/blog/2018/02/26/1.11.0.html
2018-03-02 07:15:06 +00:00
Glavin Wiechert e22a895d1b Change v0.31.0 to v0.32.0 in CHANGELOG, accidentally bumped version twice 2018-03-02 00:33:51 -04:00
43 changed files with 4691 additions and 2968 deletions

15
.github/issuecomplete.yml vendored Normal file
View File

@ -0,0 +1,15 @@
labelName: waiting-for-user-information
labelColor: f7c6c7
commentText: >
Please follow the [issue template](https://github.com/Glavin001/atom-beautify/blob/master/ISSUE_TEMPLATE.md) provided.
More specifically, update the original comment for this issue by adding a link to the
required [debug.md](https://github.com/Glavin001/atom-beautify/blob/master/docs/troubleshooting.md#how-to-create-debugmd-gist)
gist which includes debugging information that answers our most commonly asked questions.
Thank you.
checkCheckboxes: true
keywords:
- gist.github.com

View File

@ -41,8 +41,6 @@ addons:
- git
- libgnome-keyring-dev
- fakeroot
- crystal
- camlp4
- aspcud
- php5-cli
- golang
@ -60,16 +58,17 @@ before_install:
# linux: Install Nix, Nix packages, upgrade pip, and install python packages
# osx: Update Homebrew, remove conflicting cask, brew bundle, symlink elm-format,
# upgrade pip, and install python packages
- echo $TRAVIS_COMMIT_MESSAGE
- export TRAVIS_COMMIT_MESSAGE=""
- echo $TRAVIS_COMMIT_MESSAGE
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
curl https://nixos.org/nix/install | sh &&
. ~/.nix-profile/etc/profile.d/nix.sh &&
nix-env -i uncrustify R elm-format terraform atom atom-beta opam &&
pip install --upgrade pip &&
nix-env -i uncrustify R elm-format terraform atom atom-beta &&
pip install --user -r requirements.txt;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update && brew cask zap oclint && brew bundle &&
ln -s /usr/local/bin/elm-format-0.17 /usr/local/bin/elm-format &&
pip2 install --upgrade pip &&
pip2 install -r requirements.txt;
else
echo Error:TRAVIS_OS_NAME && exit 1;
@ -80,8 +79,6 @@ before_install:
- Rscript --version
# PHP
- composer install
# CoffeeScript
- npm install coffee-formatter
# OCaml
# - opam init --auto-setup
# Init environment variables for opam

View File

@ -1,9 +1,7 @@
tap 'homebrew/php'
tap 'caskroom/versions'
brew 'uncrustify'
brew 'r'
brew 'composer'
brew 'opam'
brew 'crystal-lang'
brew 'terraform'
brew 'elm-format'

View File

@ -1,7 +1,48 @@
# Next
- ...
# v0.33.4 (2018-09-28)
# v0.31.0 (2018-03-02)
- Fix [#2204](https://github.com/Glavin001/atom-beautify/issues/2204). Auto-remove docker containers after run.
You can clean up old Docker containers by running:
```bash
docker ps --all | grep "unibeautify/" | awk '{ print $1 }' | xargs docker rm
```
# v0.33.2 (2018-09-26)
- (BREAKING CHANGE) Added `inline` and `content_unformatted` options from `js-beautify` html settings and cleared `unformatted`. Breaking change but generally improves the behavior to more accurately beautify html. ([#2210](https://github.com/Glavin001/atom-beautify/issues/2210), [#2215](https://github.com/Glavin001/atom-beautify/pull/2215), [js-beautify#1407](https://github.com/beautify-web/js-beautify/pull/1407))
- ocamlformat formatter added for OCaml [#2207](https://github.com/Glavin001/atom-beautify/pull/2207)
- [Black](https://github.com/ambv/black) beautifier added [#2189](https://github.com/Glavin001/atom-beautify/pull/2189)
# v0.33.1 (2018-09-09)
- Remove dependency marko-prettyprint in an effort to resolve installation and update issues
# v0.33.0 (2018-08-10)
- Fixes an issue where Atom Beautify would display a Docker error instead of an executable error ([#2146](https://github.com/Glavin001/atom-beautify/issues/2146))
- Fixes Rubocop not excluding files with an exact pattern match (`db/schema.rb` vs `db/**/*`)
- Add [Black](http://github.com/ambv/black) beautifier for Python.
# v0.32.5 (2018-05-28)
- Fixes an issue with Rubocop not working on Windows ([#2092](https://github.com/Glavin001/atom-beautify/issues/2092))
- Fixes an issue with PHPCBF not running when specifying a path to it ([#2140](https://github.com/Glavin001/atom-beautify/issues/2140))
- Fixes the repository link to Atom Beautify within Atom's settings ([#2086](https://github.com/Glavin001/atom-beautify/pull/2086))
# v0.32.4 (2018-05-15)
- Fix php-cs-fixer not running when using `.phar` files ([#2134](https://github.com/Glavin001/atom-beautify/pull/2134))
- Fix error `Error is not defined` ([#2134](https://github.com/Glavin001/atom-beautify/pull/2134))
# v0.32.3 (2018-05-14)
- Issue [#448](https://github.com/Glavin001/atom-beautify/issues/448) Add support for Laravel Blade templates (beta)
- Fix Docker Executable with optional Executable, PHP-CS-Fixer ([#2129](https://github.com/Glavin001/atom-beautify/pull/2129))
# v0.32.2 (2018-03-10)
- Revert fix package.json repository field (#2062)
# v0.32.1 (2018-03-10)
- Update Prettier to 1.11.1. (#2060)
- Fix package.json repository field (#2062)
- Fix "Reindent" option for sqlformat. (#2064)
# v0.32.0 (2018-03-02)
- See [#2026](https://github.com/Glavin001/atom-beautify/issues/2026) Add Vue support to ESLint Fixer beautifier. Should be used with [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue).
- Fix Beauify File option for .lua files
- Switch to Remark as a default markdown beautifier due to a more active state of its community compared to Tidy Markdown ([#2004](https://github.com/Glavin001/atom-beautify/pull/2004)).
@ -40,8 +81,8 @@
- Fix for [#1888](https://github.com/Glavin001/atom-beautify/issues/1888). Allow 0 for minor and patch versions of Docker
- Add Atom-Beautify package settings menu item to Packages menu [#1869](https://github.com/Glavin001/atom-beautify/issues/1869)
- Add `.ttslua` file extension to Lua language
- Fix [#1638]. Update TypeScript Formatter dependency
- Fix [#1833] `os.tmpDir` deprecation warning
- Fix [#1638](https://github.com/Glavin001/atom-beautify/issues/1638). Update TypeScript Formatter dependency
- Fix [#1833](https://github.com/Glavin001/atom-beautify/issues/1833) `os.tmpDir` deprecation warning
# v0.30.5 (2017-08-11)
- Fix for [#1721](https://github.com/Glavin001/atom-beautify/issues/1721). Changes required due to TextBuffer.save becoming async in Atom 1.19

View File

@ -1,14 +1,22 @@
# :lipstick: [{{package.name}}](https://github.com/Glavin001/atom-beautify)
[![apm](https://img.shields.io/apm/dm/atom-beautify.svg)](https://atom.io/packages/atom-beautify)
[![Greenkeeper badge](https://badges.greenkeeper.io/Glavin001/atom-beautify.svg)](https://greenkeeper.io/)
[![GitHub issues](https://img.shields.io/github/issues/Glavin001/atom-beautify.svg?style=flat-square)](https://github.com/Glavin001/atom-beautify/issues)
[![GitHub stars](https://img.shields.io/github/stars/Glavin001/atom-beautify.svg?style=flat-square)](https://github.com/Glavin001/atom-beautify/stargazers)
[![GitHub issues](https://img.shields.io/github/issues/Glavin001/atom-beautify.svg?style=flat-square)](https://github.com/Glavin001/atom-beautify/issues)
[![Greenkeeper badge](https://badges.greenkeeper.io/Glavin001/atom-beautify.svg)](https://greenkeeper.io/)
[![Slack](https://unibeautify-slack.glitch.me/badge.svg)](https://unibeautify-slack.glitch.me/)
[![Twitter Follow](https://img.shields.io/twitter/follow/unibeautify.svg?style=social&label=Follow)](https://twitter.com/unibeautify)
[![Gitter](https://img.shields.io/gitter/room/Glavin001/atom-beautify.svg?style=flat-square)](https://gitter.im/Glavin001/atom-beautify)
[![Bountysource](https://img.shields.io/bountysource/team/atom-beautify/activity.svg?style=flat-square)](https://www.bountysource.com/teams/atom-beautify)
[![Paypal Donations](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=X2RK5DKN6YXPJ&lc=CA&item_name=Atom%2dBeautify&item_number=atom%2dbeautify&currency_code=CAD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/unibeautify)
<!--
**Sign up for Unibeautify CI: [https://goo.gl/jmM4QN](https://goo.gl/jmM4QN)**
-->
:point_right: Sign up for [**CodePass**, *the Quickest Way To Solve Your Coding Errors*](https://codepass.ca/)! :boom:
[:tada: **Install Unibeautify CI for GitHub** :tada:](https://github.com/apps/unibeautify-ci)
**Help improve Atom-Beautify by completing the quick questionnaire: [https://goo.gl/iEHBNr](https://goo.gl/iEHBNr)**
@ -53,6 +61,8 @@ apm install atom-beautify
Or Settings/Preferences ➔ Install ➔ Search for `atom-beautify`
[:tada: **Install Unibeautify CI for GitHub** :tada:](https://github.com/apps/unibeautify-ci)
### Important Notice: Analytics
[Atom-Beautify respects the `core.telemetryConsent` configuration option from Atom editor.](https://github.com/Glavin001/atom-beautify/issues/1179)
@ -70,6 +80,8 @@ Thank you.
Atom-Beautify is going to be completely rewritten with [Unibeautify](https://github.com/Unibeautify/unibeautify) at its core!
See [`unibeautify` branch](../../tree/unibeautify) for work in progress and [Issue #1174](https://github.com/Glavin001/atom-beautify/issues/1174).
[:tada: **Install Unibeautify CI for GitHub** :tada:](https://github.com/apps/unibeautify-ci)
### Poll: Improving installation of third-party beautifiers
Many users are experiencing issues when installing third party beautifiers (e.g. Uncrustify, PHP-CS-Fixer, and many more).

View File

@ -1,14 +1,22 @@
# :lipstick: [atom-beautify](https://github.com/Glavin001/atom-beautify)
[![apm](https://img.shields.io/apm/dm/atom-beautify.svg)](https://atom.io/packages/atom-beautify)
[![Greenkeeper badge](https://badges.greenkeeper.io/Glavin001/atom-beautify.svg)](https://greenkeeper.io/)
[![GitHub issues](https://img.shields.io/github/issues/Glavin001/atom-beautify.svg?style=flat-square)](https://github.com/Glavin001/atom-beautify/issues)
[![GitHub stars](https://img.shields.io/github/stars/Glavin001/atom-beautify.svg?style=flat-square)](https://github.com/Glavin001/atom-beautify/stargazers)
[![GitHub issues](https://img.shields.io/github/issues/Glavin001/atom-beautify.svg?style=flat-square)](https://github.com/Glavin001/atom-beautify/issues)
[![Greenkeeper badge](https://badges.greenkeeper.io/Glavin001/atom-beautify.svg)](https://greenkeeper.io/)
[![Slack](https://unibeautify-slack.glitch.me/badge.svg)](https://unibeautify-slack.glitch.me/)
[![Twitter Follow](https://img.shields.io/twitter/follow/unibeautify.svg?style=social&label=Follow)](https://twitter.com/unibeautify)
[![Gitter](https://img.shields.io/gitter/room/Glavin001/atom-beautify.svg?style=flat-square)](https://gitter.im/Glavin001/atom-beautify)
[![Bountysource](https://img.shields.io/bountysource/team/atom-beautify/activity.svg?style=flat-square)](https://www.bountysource.com/teams/atom-beautify)
[![Paypal Donations](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=X2RK5DKN6YXPJ&lc=CA&item_name=Atom%2dBeautify&item_number=atom%2dbeautify&currency_code=CAD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/unibeautify)
<!--
**Sign up for Unibeautify CI: [https://goo.gl/jmM4QN](https://goo.gl/jmM4QN)**
-->
:point_right: Sign up for [**CodePass**, *the Quickest Way To Solve Your Coding Errors*](https://codepass.ca/)! :boom:
[:tada: **Install Unibeautify CI for GitHub** :tada:](https://github.com/apps/unibeautify-ci)
**Help improve Atom-Beautify by completing the quick questionnaire: [https://goo.gl/iEHBNr](https://goo.gl/iEHBNr)**
@ -53,6 +61,8 @@ apm install atom-beautify
Or Settings/Preferences ➔ Install ➔ Search for `atom-beautify`
[:tada: **Install Unibeautify CI for GitHub** :tada:](https://github.com/apps/unibeautify-ci)
### Important Notice: Analytics
[Atom-Beautify respects the `core.telemetryConsent` configuration option from Atom editor.](https://github.com/Glavin001/atom-beautify/issues/1179)
@ -70,6 +80,8 @@ Thank you.
Atom-Beautify is going to be completely rewritten with [Unibeautify](https://github.com/Unibeautify/unibeautify) at its core!
See [`unibeautify` branch](../../tree/unibeautify) for work in progress and [Issue #1174](https://github.com/Glavin001/atom-beautify/issues/1174).
[:tada: **Install Unibeautify CI for GitHub** :tada:](https://github.com/apps/unibeautify-ci)
### Poll: Improving installation of third-party beautifiers
Many users are experiencing issues when installing third party beautifiers (e.g. Uncrustify, PHP-CS-Fixer, and many more).
@ -91,6 +103,7 @@ Some of the supported beautifiers are developed for Node.js and are automaticall
| align-yaml | :white_check_mark: | :ok_hand: Not necessary | :smiley: Nothing! |
| autopep8 | :warning: 2 executables | :warning: Only 1 of 2 executables | :whale: With [Docker](https://www.docker.com/):<br/>1. Install [autopep8 (`autopep8`)](https://github.com/hhatto/autopep8) with `docker pull unibeautify/autopep8`<br/><br/>:bookmark_tabs: Manually:<br/>1. Install [autopep8 (`autopep8`)](https://github.com/hhatto/autopep8) by following https://github.com/hhatto/autopep8#installation<br/>2. Install [isort (`isort`)](https://github.com/timothycrosley/isort) by following https://github.com/timothycrosley/isort#installing-isort<br/> |
| beautysh | :warning: 1 executable | :white_check_mark: :100:% of executables | :whale: With [Docker](https://www.docker.com/):<br/>1. Install [beautysh (`beautysh`)](https://github.com/bemeurer/beautysh) with `docker pull unibeautify/beautysh`<br/><br/>:bookmark_tabs: Manually:<br/>1. Install [beautysh (`beautysh`)](https://github.com/bemeurer/beautysh) by following https://github.com/bemeurer/beautysh#installation<br/> |
| black | :warning: 1 executable | :x: No Docker support | :bookmark_tabs: Manually:<br/>1. Install [black (`black`)](https://github.com/ambv/black) by following https://github.com/ambv/black#installation<br/> |
| brittany | :warning: Manual installation | :construction: Not an executable | :page_facing_up: Go to https://github.com/lspitzner/brittany and follow the instructions. |
| clang-format | :warning: 1 executable | :white_check_mark: :100:% of executables | :whale: With [Docker](https://www.docker.com/):<br/>1. Install [ClangFormat (`clang-format`)](https://clang.llvm.org/docs/ClangFormat.html) with `docker pull unibeautify/clang-format`<br/><br/>:bookmark_tabs: Manually:<br/>1. Install [ClangFormat (`clang-format`)](https://clang.llvm.org/docs/ClangFormat.html) by following https://clang.llvm.org/docs/ClangFormat.html<br/> |
| cljfmt | :white_check_mark: | :ok_hand: Not necessary | :smiley: Nothing! |
@ -118,6 +131,7 @@ Some of the supported beautifiers are developed for Node.js and are automaticall
| Lua beautifier | :white_check_mark: | :ok_hand: Not necessary | :smiley: Nothing! |
| Marko Beautifier | :white_check_mark: | :ok_hand: Not necessary | :smiley: Nothing! |
| Nginx Beautify | :white_check_mark: | :ok_hand: Not necessary | :smiley: Nothing! |
| ocamlformat | :warning: 1 executable | :x: No Docker support | :bookmark_tabs: Manually:<br/>1. Install [ocamlformat (`ocamlformat`)](https://github.com/ocaml-ppx/ocamlformat) by following https://github.com/ocaml-ppx/ocamlformat#installation<br/> |
| ocp-indent | :warning: 1 executable | :white_check_mark: :100:% of executables | :whale: With [Docker](https://www.docker.com/):<br/>1. Install [ocp-indent (`ocp-indent`)](https://www.typerex.org/ocp-indent.html) with `docker pull unibeautify/ocp-indent`<br/><br/>:bookmark_tabs: Manually:<br/>1. Install [ocp-indent (`ocp-indent`)](https://www.typerex.org/ocp-indent.html) by following https://www.typerex.org/ocp-indent.html#installation<br/> |
| Perltidy | :warning: Manual installation | :construction: Not an executable | :page_facing_up: Go to http://perltidy.sourceforge.net/ and follow the instructions. |
| PHP-CS-Fixer | :warning: 2 executables | :warning: Only 1 of 2 executables | :whale: With [Docker](https://www.docker.com/):<br/>1. Install [PHP-CS-Fixer (`php-cs-fixer`)](https://github.com/FriendsOfPHP/PHP-CS-Fixer) with `docker pull unibeautify/php-cs-fixer`<br/><br/>:bookmark_tabs: Manually:<br/>1. Install [PHP (`php`)](http://php.net/) by following http://php.net/manual/en/install.php<br/>2. Install [PHP-CS-Fixer (`php-cs-fixer`)](https://github.com/FriendsOfPHP/PHP-CS-Fixer) by following https://github.com/FriendsOfPHP/PHP-CS-Fixer#installation<br/> |
@ -128,7 +142,7 @@ Some of the supported beautifiers are developed for Node.js and are automaticall
| puppet-lint | :warning: 1 executable | :white_check_mark: :100:% of executables | :whale: With [Docker](https://www.docker.com/):<br/>1. Install [puppet-lint (`puppet-lint`)](http://puppet-lint.com/) with `docker pull unibeautify/puppet-lint`<br/><br/>:bookmark_tabs: Manually:<br/>1. Install [puppet-lint (`puppet-lint`)](http://puppet-lint.com/) by following http://puppet-lint.com/<br/> |
| pybeautifier | :warning: Manual installation | :construction: Not an executable | :page_facing_up: Go to https://github.com/guyskk/pybeautifier and follow the instructions. |
| Remark | :white_check_mark: | :ok_hand: Not necessary | :smiley: Nothing! |
| Rubocop | :warning: Manual installation | :construction: Not an executable | :page_facing_up: Go to https://github.com/bbatsov/rubocop and follow the instructions. |
| Rubocop | :warning: 1 executable | :x: No Docker support | :bookmark_tabs: Manually:<br/>1. Install [Rubocop (`rubocop`)](http://rubocop.readthedocs.io/) by following http://rubocop.readthedocs.io/en/latest/installation/<br/> |
| Ruby Beautify | :warning: Manual installation | :construction: Not an executable | :page_facing_up: Go to https://github.com/erniebrodeur/ruby-beautify and follow the instructions. |
| rustfmt | :warning: Manual installation | :construction: Not an executable | :page_facing_up: Go to https://github.com/rust-lang-nursery/rustfmt and follow the instructions. |
| SassConvert | :warning: 1 executable | :white_check_mark: :100:% of executables | :whale: With [Docker](https://www.docker.com/):<br/>1. Install [SassConvert (`sass-convert`)](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax) with `docker pull unibeautify/sass-convert`<br/><br/>:bookmark_tabs: Manually:<br/>1. Install [SassConvert (`sass-convert`)](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax) by following http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax<br/> |
@ -151,6 +165,7 @@ See [all supported options in the documentation at `docs/options.md`](docs/opti
| Apex | `Apex` |`.cls`, `.trigger` | **[`Uncrustify`](https://github.com/uncrustify/uncrustify)** |
| Arduino | `Arduino` |`.ino`, `.pde` | **[`Uncrustify`](https://github.com/uncrustify/uncrustify)** |
| Bash | `Shell Script` |`.bash`, `.sh` | **[`beautysh`](https://github.com/bemeurer/beautysh)** |
| Blade | `Blade` |`.blade.php` | **[`JS Beautify`](https://github.com/beautify-web/js-beautify)** |
| C | `C`, `opencl` |`.h`, `.c`, `.cl` | **[`Uncrustify`](https://github.com/uncrustify/uncrustify)**, [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) |
| Coldfusion | `html` |`.cfm`, `.cfml`, `.cfc` | **[`Pretty Diff`](https://github.com/prettydiff/prettydiff)** |
| Clojure | `Clojure` |`.clj`, `.cljs`, `.edn` | **[`cljfmt`](https://github.com/snoe/node-cljfmt)** |
@ -188,12 +203,12 @@ See [all supported options in the documentation at `docs/options.md`](docs/opti
| Nginx | `nginx` |`.conf` | **[`Nginx Beautify`](https://github.com/denysvitali/nginxbeautify)** |
| Nunjucks | `Nunjucks`, `Nunjucks Templates`, `HTML (Nunjucks Templates)` |`.njk`, `.nunjucks` | **[`Pretty Diff`](https://github.com/prettydiff/prettydiff)** |
| Objective-C | `Objective-C`, `Objective-C++` |`.m`, `.mm`, `.h` | **[`Uncrustify`](https://github.com/uncrustify/uncrustify)**, [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) |
| OCaml | `OCaml` |`.ml` | **[`ocp-indent`](https://www.typerex.org/ocp-indent.html)** |
| OCaml | `OCaml` |`.ml` | **[`ocp-indent`](https://www.typerex.org/ocp-indent.html)**, [`ocamlformat`](https://github.com/ocaml-ppx/ocamlformat) |
| Pawn | `Pawn` | | **[`Uncrustify`](https://github.com/uncrustify/uncrustify)** |
| Perl | `Perl`, `Perl 6` |`.pl`, `.PL`, `.pm`, `.pod`, `.t` | **[`Perltidy`](http://perltidy.sourceforge.net/)** |
| PHP | `PHP` |`.php`, `.module`, `.inc` | **[`PHP-CS-Fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer)**, [`PHPCBF`](http://php.net/manual/en/install.php), [`hh_format`](http://hhvm.com/) |
| Puppet | `Puppet` |`.pp` | **[`puppet-lint`](http://puppet-lint.com/)** |
| Python | `Python`, `MagicPython` |`.py` | **[`autopep8`](https://github.com/hhatto/autopep8)**, [`pybeautifier`](https://github.com/guyskk/pybeautifier), [`yapf`](https://github.com/google/yapf) |
| Python | `Python`, `MagicPython` |`.py` | **[`autopep8`](https://github.com/hhatto/autopep8)**, [`black`](https://github.com/ambv/black), [`pybeautifier`](https://github.com/guyskk/pybeautifier), [`yapf`](https://github.com/google/yapf) |
| R | `R` |`.r`, `.R` | **[`formatR`](https://github.com/yihui/formatR)** |
| Riot.js | `Riot.js`, `HTML (Riot Tag)` |`.tag` | **[`Pretty Diff`](https://github.com/prettydiff/prettydiff)** |
| Ruby | `Ruby`, `Ruby on Rails` |`.rb` | **[`Rubocop`](https://github.com/bbatsov/rubocop)**, [`Ruby Beautify`](https://github.com/erniebrodeur/ruby-beautify) |

View File

@ -25,6 +25,9 @@ install:
- pip install -r requirements.txt
# Gemfile Install
- set PATH=C:\Ruby24-x64\bin;%PATH%
- ruby -v
- gem update --system
- bundle install
# PHP

View File

@ -1,4 +1,3 @@
language-marko
language-html-swig
language-svg
language-d
@ -8,3 +7,4 @@ language-elm
language-puppet
fuse
react
language-blade

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,7 @@ def example1():
def example2(): return {'has_key() is deprecated': True}.has_key(
{'f': 2}.has_key(''));
{'f': 2}.has_key(''))
class Example3(object):

View File

@ -15,6 +15,6 @@ hash = { hosts: [
],
logger: mylog, # This enables callback logging!
logger: mylog, # This enables callback logging!
max_reconnect_attempts: 5 }

View File

@ -18,7 +18,7 @@ hash = { :hosts => [
],
:logger => mylog, # This enables callback logging!
:logger => mylog, # This enables callback logging!
:max_reconnect_attempts => 5,

View File

@ -12,7 +12,8 @@
{% endfor %}
</ul>
<h1>My Webpage</h1> {{ a_variable }}
<h1>My Webpage</h1>
{{ a_variable }}
</body>
</html>

View File

@ -0,0 +1,34 @@
<html>
<head>
<title>App Name - @yield('title')</title>
</head>
<body>
@section('sidebar')
This is the {{ $mater }} sidebar.
@show
<div class="container">
@yield('content')
</div>
@component('alert')
@slot('title')
Forbidden
@endslot
<strong>Whoops!</strong> Something went wrong!
@endcomponent
@foreach ($users as $user)
@if ($user->type == 1)
@continue
@endif
<li>{{ $user->name }}</li>
@if ($user->number == 5)
@break
@endif
@endforeach
</body>
</html>

View File

@ -0,0 +1,31 @@
<html>
<head>
<title>App Name - @yield('title')</title>
</head>
<body>
@section('sidebar')
This is the {{ $mater }} sidebar.
@show
<div class="container">
@yield('content')
</div>
@component('alert')
@slot('title')
Forbidden
@endslot
<strong>Whoops!</strong> Something went wrong!
@endcomponent
@foreach ($users as $user)
@if ($user->type == 1)
@continue
@endif
<li>{{ $user->name }}</li>
@if ($user->number == 5)
@break
@endif
@endforeach
</body>
</html>

View File

@ -19,7 +19,7 @@ function aaa(a, b, c)
-- comment 2 1231
-- comment 1 123 123 123123 12
-- [[ comment 1 ]]
--[[
--[[
muli comments
ssss
@asdasd sad

View File

@ -3,7 +3,7 @@ SELECT ca.proj_id AS proj_id,
ca.ca_date_start AS proj_start,
ca.ca_date_end AS proj_end,
(SELECT count(*)
(SELECT COUNT(*)
FROM rotations r
WHERE r.proj_id = proj_id
AND r.r_status = 'R'
@ -12,7 +12,7 @@ SELECT ca.proj_id AS proj_id,
(SELECT count(*)
FROM rotations r
WHERE r.proj_id = proj_id
AND r.channel_id = 24) r_rtb_count
AND r.channel_id = 24 ) r_rtb_count
FROM projs ca,
clients c,
proj_auth caa
@ -20,6 +20,6 @@ WHERE ca.client_id = 12345
AND ca.client_id = c.client_id
AND ca_type = 'zzz'
AND c.agency_id = 0
AND ca.client_id = nvl(caa.client_id, ca.client_id)
AND proj_id = nvl(caa.proj_id, proj_id)
AND ca.client_id = NVL(caa.client_id, ca.client_id)
AND proj_id = NVL(caa.proj_id, proj_id)
AND caa.contact_id = 7890

View File

@ -4,21 +4,30 @@ VALUES('hallpclnx',
CURRENT_TIMESTAMP);
INSERT INTO thread (thread, description, created_at, client_id)
INSERT INTO THREAD (THREAD,
description,
created_at,
client_id)
VALUES(1,
'Living room camera',
CURRENT_TIMESTAMP,
1);
INSERT INTO thread (thread, description, created_at, client_id)
INSERT INTO THREAD (THREAD,
description,
created_at,
client_id)
VALUES(2,
'Porch camera',
CURRENT_TIMESTAMP,
1);
INSERT INTO thread (thread, description, created_at, client_id)
INSERT INTO THREAD (THREAD,
description,
created_at,
client_id)
VALUES(2,
'Garden camera',
CURRENT_TIMESTAMP,
@ -28,5 +37,4 @@ VALUES(2,
INSERT INTO client (HOST, description, created_at)
VALUES('shedpclnx',
'My shed linux machine',
CURRENT_TIMESTAMP);
CURRENT_TIMESTAMP);

View File

@ -1 +1 @@
SELECT ca.proj_id AS proj_id, ca.ca_name AS proj_name, ca.ca_date_start AS proj_start, ca.ca_date_end AS proj_end,(SELECT COUNT(*) FROM rotations r WHERE r.proj_id = proj_id AND r.r_status = 'R' GROUP BY r.proj_id) r_count, (SELECT count(*) FROM rotations r WHERE r.proj_id = proj_id AND r.channel_id = 24 ) r_rtb_count FROM projs ca, clients c, proj_auth caa WHERE ca.client_id = 12345 AND ca.client_id = c.client_id AND ca_type = 'zzz' AND c.agency_id = 0 AND ca.client_id = NVL( caa.client_id, ca.client_id ) AND proj_id = NVL( caa.proj_id, proj_id ) AND caa.contact_id = 7890
SELECT ca.proj_id AS proj_id, ca.ca_name AS proj_name, ca.ca_date_start AS proj_start, ca.ca_date_end AS proj_end,(SELECT COUNT(*) FROM rotations r WHERE r.proj_id = proj_id AND r.r_status = 'R' GROUP BY r.proj_id) r_count, (SELECT count(*) FROM rotations r WHERE r.proj_id = proj_id AND r.channel_id = 24 ) r_rtb_count FROM projs ca, clients c, proj_auth caa WHERE ca.client_id = 12345 AND ca.client_id = c.client_id AND ca_type = 'zzz' AND c.agency_id = 0 AND ca.client_id = NVL( caa.client_id, ca.client_id ) AND proj_id = NVL( caa.proj_id, proj_id ) AND caa.contact_id = 7890

View File

@ -2,4 +2,4 @@ INSERT INTO client (host, description, created_at) VALUES('hallpclnx', 'My linux
INSERT INTO thread (thread, description, created_at, client_id) VALUES(1, 'Living room camera', CURRENT_TIMESTAMP, 1);
INSERT INTO thread (thread, description, created_at, client_id) VALUES(2, 'Porch camera', CURRENT_TIMESTAMP, 1);
INSERT INTO thread (thread, description, created_at, client_id) VALUES(2, 'Garden camera', CURRENT_TIMESTAMP, 1);
INSERT INTO client (host, description, created_at) VALUES('shedpclnx', 'My shed linux machine', CURRENT_TIMESTAMP);
INSERT INTO client (host, description, created_at) VALUES('shedpclnx', 'My shed linux machine', CURRENT_TIMESTAMP);

3478
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +1,10 @@
{
"name": "atom-beautify",
"main": "./src/beautify",
"version": "0.32.0",
"version": "0.33.4",
"private": true,
"description": "Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom",
"repository": {
"type": "git",
"url": "git@github.com:Glavin001/atom-beautify.git"
},
"repository": "https://github.com/Glavin001/atom-beautify.git",
"bugs": {
"url": "https://github.com/Glavin001/atom-beautify/issues"
},
@ -171,6 +168,14 @@
{
"name": "Kohei Hiraga",
"url": "https://github.com/range3"
},
{
"name": "Arlo Shallit",
"url": "https://github.com/arl-o"
},
{
"name": "Liam Newman",
"url": "https://github.com/bitwiseman"
}
],
"engines": {
@ -191,19 +196,18 @@
"eslint": "^4.16.0",
"event-kit": "^2.4.0",
"expand-home-dir": "0.0.3",
"extend": "^3.0.1",
"extend": "^3.0.2",
"gherkin": "^2.12.2",
"handlebars": "^4.0.11",
"js-beautify": "^1.7.5",
"handlebars": "^4.1.2",
"js-beautify": "^1.8.1",
"jscs": "^3.0.7",
"lodash": "^4.17.4",
"lodash": "^4.17.13",
"loophole": "^1.1.0",
"marko-prettyprint": "^1.4.0",
"nginxbeautify": "^2.0.1",
"node-cljfmt": "0.5.3",
"node-dir": "0.1.17",
"open": "0.0.5",
"prettier": "^1.10.2",
"open": "6.0.0",
"prettier": "^1.11.1",
"prettydiff2": "^2.2.7",
"pug-beautify": "^0.1.1",
"remark": "6.0.1",
@ -217,8 +221,8 @@
"typescript": "^2.6.2",
"typescript-formatter": "^7.0.0",
"underscore-plus": "^1.6.6",
"uuid": "^3.1.0",
"universal-analytics": "^0.4.16",
"uuid": "^3.1.0",
"which": "^1.3.0",
"winston": "^2.4.0",
"yaml-front-matter": "3.4.1"
@ -303,7 +307,8 @@
"atom-beautify:beautify-language-tsx",
"atom-beautify:beautify-language-verilog",
"atom-beautify:beautify-language-vhdl",
"atom-beautify:beautify-language-gn"
"atom-beautify:beautify-language-gn",
"atom-beautify:beautify-language-blade"
],
".tree-view .file .name": [
"atom-beautify:beautify-file"
@ -447,7 +452,10 @@
"emacs verilog mode",
"vhdl",
"vhdl beautifier",
"gn"
"gn",
"blade",
"black",
"ocamlformat"
],
"devDependencies": {
"codo": "^2.1.2",
@ -459,6 +467,7 @@
"prepare": "npm run docs",
"lint": "coffeelint src/ spec/",
"code-docs": "codo && open docs/code/index.html",
"pretest": "npm run lint",
"test": "atom --test spec"
},
"config": {

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="atom" />
<package id="emacs" />
<package id="emacs64" version="24.5" />
<package id="terraform" />
<package id="composer" />
<!--package id="uncrustify" /-->

View File

@ -44,9 +44,9 @@ describe "BeautifyLanguages", ->
# Activate all of the languages
allLanguages = [
"c", "clojure", "coffee-script", "css", "csharp", "d",
"blade", "c", "clojure", "coffee-script", "css", "csharp", "d",
"gfm", "go", "html", "html-swig", "java", "javascript",
"json", "less", "lua", "marko", "mustache", "objective-c",
"json", "less", "lua", "mustache", "objective-c",
"perl", "php", "python", "ruby", "sass", "sql",
"svg", "xml"
]

View File

@ -0,0 +1,39 @@
###
Requires [black](https://github.com/ambv/black)
###
"use strict"
Beautifier = require('./beautifier')
path = require('path')
module.exports = class Black extends Beautifier
name: "black"
link: "https://github.com/ambv/black"
executables: [
{
name: "black"
cmd: "black"
homepage: "https://github.com/ambv/black"
installation: "https://github.com/ambv/black#installation"
version: {
parse: (text) ->
# Try to read beta values, eg "black, version 18.6b4" -> 18.6.4
try
text.match(/black, version (\d+\.\d+)/)[1] + "." + text.match(/b(\d+)$/)[1]
catch
text.match(/black, version (\d+\.\d+)/)[1] + ".0"
}
}
]
options: {
Python: false
}
beautify: (text, language, options, context) ->
cwd = context.filePath and path.dirname context.filePath
# `-` as filename reads from stdin
@exe("black").run(["-"], {
cwd: cwd
onStdin: (stdin) ->
stdin.end text
})

View File

@ -49,6 +49,7 @@ class Executable
.then(() => @)
.catch((error) =>
if not @.required
@verbose("Not required")
@
else
Promise.reject(error)
@ -366,6 +367,7 @@ class HybridExecutable extends Executable
constructor: (options) ->
super(options)
@verbose("HybridExecutable Options", options)
if options.docker?
@dockerOptions = Object.assign({}, @dockerOptions, options.docker)
@docker = @constructor.dockerExecutable()
@ -387,20 +389,44 @@ class HybridExecutable extends Executable
installedWithDocker: false
init: () ->
super()
.then(() =>
return @
)
.catch((error) =>
return Promise.reject(error) if not @docker?
@docker.init()
.then(=> @runImage(@versionArgs, @versionRunOptions))
.then((text) => @saveVersion(text))
.then(() => @installedWithDocker = true)
.then(=> @)
.catch((dockerError) =>
@debug(dockerError)
Promise.reject(error)
)
return Promise.resolve(error)
)
.then((errorOrThis) =>
shouldTryWithDocker = not @isInstalled and @docker?
@verbose("Executable shouldTryWithDocker", shouldTryWithDocker, @isInstalled, @docker?)
if shouldTryWithDocker
return @initDocker().catch(() -> Promise.reject(errorOrThis))
return @
)
.catch((error) =>
if not @.required
@verbose("Not required")
@
else
Promise.reject(error)
)
initDocker: () ->
@docker.init()
.then(=> @runImage(@versionArgs, @versionRunOptions))
.then((text) => @saveVersion(text))
.then(() => @installedWithDocker = true)
.then(=> @)
.catch((dockerError) =>
@debug(dockerError)
Promise.reject(dockerError)
)
run: (args, options = {}) ->
@verbose("Running HybridExecutable")
@verbose("installedWithDocker", @installedWithDocker)
@verbose("docker", @docker)
@verbose("docker.isInstalled", @docker and @docker.isInstalled)
if @installedWithDocker and @docker and @docker.isInstalled
return @runImage(args, options)
super(args, options)
@ -424,15 +450,15 @@ class HybridExecutable extends Executable
@docker.run([
"run",
"--rm",
"--volume", "#{pwd}:#{workingDir}",
"--volume", "#{path.resolve('/')}:#{rootPath}",
"--workdir", workingDir,
image,
newArgs
],
options
Object.assign({}, options, { cmd: undefined })
)
)
module.exports = HybridExecutable

View File

@ -43,6 +43,7 @@ module.exports = class Beautifiers extends EventEmitter
'cljfmt'
'clang-format'
'crystal'
'black'
'dfmt'
'elm-format'
'hh_format'
@ -87,6 +88,7 @@ module.exports = class Beautifiers extends EventEmitter
'beautysh'
'terraformfmt'
'verilog-mode'
'ocamlformat'
]
###

View File

@ -6,6 +6,7 @@ module.exports = class JSBeautify extends Beautifier
link: "https://github.com/beautify-web/js-beautify"
options: {
Blade: true
HTML: true
XML: true
Handlebars: true
@ -51,6 +52,16 @@ module.exports = class JSBeautify extends Beautifier
beautifyCSS = require("js-beautify").css
text = beautifyCSS(text, options)
resolve text
when "Blade"
beautifyHTML = require("js-beautify").html
# pre script (Workaround)
text = text.replace(/\@(?!yield)([^\n\s]*)/ig, "<blade $1 />")
text = beautifyHTML(text, options)
# post script (Workaround)
text = text.replace(/<blade ([^\n\s]*)\s*\/>/ig, "@$1")
text = text.replace(/\(\ \'/ig, "('")
@debug("Beautified HTML: #{text}")
resolve text
else
reject(new Error("Unknown language for JS Beautify: "+language))
catch err

View File

@ -53,7 +53,7 @@ module.exports = (str, indent, warn_fn, opts = {}) ->
else
return line
res1 = line.match(/\[(=*)\[/)
if res1
if res1 and (not new RegExp("\\]#{'='.repeat res1[1].length}\\]").test line)
$template = res1[1].length + 1
if !$template_flag
line = line.trim()
@ -62,9 +62,9 @@ module.exports = (str, indent, warn_fn, opts = {}) ->
if !line.length
return ''
raw_line = line
line = line.replace(/(['"])[^\1]*?\1/, '')
line = line.replace(/(['"])[^\1]*?\1/g, '')
# remove all quoted fragments for proper bracket processing
line = line.replace(/\s*--.+/, '')
line = line.replace(/\s*--.+$/, '')
# remove all comments; this ignores long bracket style comments
if /^((local )?function|repeat|while)\b/.test(line) and !/\bend\s*[\),;]*$/.test(line) or /\b(then|do)$/.test(line) and !/^elseif\b/.test(line) or /^if\b/.test(line) and /\bthen\b/.test(line) and !/\bend$/.test(line) or /\bfunction ?(?:\w+ )?\([^\)]*\)$/.test(line) and !/\bend$/.test(line)
$nextIndent = $currIndent + 1
@ -102,4 +102,4 @@ module.exports = (str, indent, warn_fn, opts = {}) ->
new_line or undefined
warn_fn 'positive indentation at the end' if $currIndent > 0
new_code.join eol
new_code.join eol

View File

@ -0,0 +1,38 @@
###
Requires https://github.com/ocaml-ppx/ocamlformat
###
"use strict"
Beautifier = require('./beautifier')
module.exports = class OCamlFormat extends Beautifier
name: "ocamlformat"
link: "https://github.com/ocaml-ppx/ocamlformat"
executables: [
{
name: "ocamlformat"
cmd: "ocamlformat"
homepage: "https://github.com/ocaml-ppx/ocamlformat"
installation: "https://github.com/ocaml-ppx/ocamlformat#installation"
version: {
parse: (text) ->
try
text.match(/(\d+\.\d+\.\d+)/)[1]
catch
text.match(/(\d+\.\d+)/)[1] + ".0"
}
}
]
options: {
OCaml: true
}
beautify: (text, language, options) ->
@run("ocamlformat", [
@tempFile("input", text)
], {
help: {
link: "https://github.com/ocaml-ppx/ocamlformat"
}
})

View File

@ -67,7 +67,8 @@ module.exports = class PHPCSFixer extends Beautifier
phpCsFixerOptions = [
"fix"
"--rules=#{options.rules}" if options.rules
"--config=#{options.cs_fixer_config_file}" if options.cs_fixer_config_file
"--config" if options.cs_fixer_config_file
"#{options.cs_fixer_config_file}" if options.cs_fixer_config_file
"--allow-risky=#{options.allow_risky}" if options.allow_risky
"--using-cache=no"
]
@ -105,7 +106,7 @@ module.exports = class PHPCSFixer extends Beautifier
isPhpScript = (finalPhpCsFixerPath.indexOf(".phar") isnt -1) or (finalPhpCsFixerPath.indexOf(".php") isnt -1)
@verbose('isPhpScript', isPhpScript)
if finalPhpCsFixerPath and isPhpScript
if not phpCsFixer.isInstalled and finalPhpCsFixerPath and isPhpScript
php.run([finalPhpCsFixerPath, phpCsFixerOptions, tempFile], runOptions)
.then(=>
@readFile(tempFile)

View File

@ -4,6 +4,7 @@ Requires https://github.com/FriendsOfPHP/phpcbf
"use strict"
Beautifier = require('./beautifier')
path = require('path')
module.exports = class PHPCBF extends Beautifier
name: "PHPCBF"
@ -23,6 +24,7 @@ module.exports = class PHPCBF extends Beautifier
cmd: "phpcbf"
homepage: "https://github.com/squizlabs/PHP_CodeSniffer"
installation: "https://github.com/squizlabs/PHP_CodeSniffer#installation"
optional: true
version: {
parse: (text) -> text.match(/version (\d+\.\d+\.\d+)/)[1]
}

View File

@ -31,6 +31,7 @@ module.exports = class Prettier extends Beautifier
prettierLanguage = _.find(prettier.getSupportInfo().languages, 'name': language)
if prettierLanguage
parser = prettierLanguage.parsers[0]
options.parser = parser
else
reject(new Error("Unknown language for Prettier"))
@ -38,7 +39,7 @@ module.exports = class Prettier extends Beautifier
try
prettier.resolveConfig(filePath).then((configOptions) ->
result = prettier.format(text, configOptions or options, parser)
result = prettier.format(text, configOptions or options)
prettier.clearConfigCache()
resolve result
)

View File

@ -17,10 +17,26 @@ module.exports = class Rubocop extends Beautifier
rubocop_path: true
}
executables: [
{
name: "Rubocop"
cmd: "rubocop"
homepage: "http://rubocop.readthedocs.io/"
installation: "http://rubocop.readthedocs.io/en/latest/installation/"
version: {
parse: (text) -> text.match(/(\d+\.\d+\.\d+)/)[1]
}
}
]
beautify: (text, language, options, context) ->
fullPath = context.filePath or ""
[projectPath, _relativePath] = atom.project.relativizePath(fullPath)
# Deprecate options.rubocop_path
if options.rubocop_path
@deprecateOptionForExecutable("Rubocop", "Ruby - Rubocop Path (rubocop_path)", "Path")
# Find the rubocop path
@Promise.all([
@which(options.rubocop_path) if options.rubocop_path
@ -46,21 +62,27 @@ module.exports = class Rubocop extends Beautifier
rubocopArguments = [
"--auto-correct"
"--force-exclusion"
"--stdin", "atom-beautify.rb" # filename is required but not used
"--stdin", fullPath or "atom-beautify.rb" # --stdin requires an argument
]
exeOptions = {
ignoreReturnCode: true,
cwd: projectPath if configFile?,
onStdin: (stdin) -> stdin.end text
}
rubocopArguments.push("--config", tempConfig) if tempConfig?
@debug("rubocop arguments", rubocopArguments)
@run(rubocopPath, rubocopArguments, {
ignoreReturnCode: true,
cwd: projectPath,
onStdin: (stdin) -> stdin.end text
}).then((stdout) =>
(if options.rubocop_path then \
@run(rubocopPath, rubocopArguments, exeOptions) else \
@exe("rubocop").run(rubocopArguments, exeOptions)
).then((stdout) =>
@debug("rubocop output", stdout)
# Rubocop output an error if stdout is empty
return text if stdout.length == 0
result = stdout.split("====================\n")
result = stdout.split("====================\r\n") if result.length == 1
result[result.length - 1]
)
)

View File

@ -17,7 +17,7 @@ module.exports = class Sqlformat extends Beautifier
beautify: (text, language, options) ->
@run("sqlformat", [
@tempFile("input", text)
"--reindent=#{options.reindent}" if options.reindent?
"--reindent" if options.reindent is true
"--indent_width=#{options.indent_size}" if options.indent_size?
"--keywords=#{options.keywords}" if (options.keywords? && options.keywords != 'unchanged')
"--identifiers=#{options.identifiers}" if (options.identifiers? && options.identifiers != 'unchanged')

View File

@ -0,0 +1,22 @@
module.exports = {
name: "Blade"
namespace: "blade"
fallback: ["html"]
###
Supported Grammars
###
grammars: [
"Blade"
]
###
Supported extensions
###
extensions: [
"blade.php"
]
options: []
}

View File

@ -49,8 +49,8 @@ module.exports = {
wrap_attributes:
type: 'string'
default: "auto"
enum: ["auto", "force", "force-aligned", "force-expand-multiline"]
description: "Wrap attributes to new lines [auto|force|force-aligned|force-expand-multiline]"
enum: ["auto", "aligned-multiple", "force", "force-aligned", "force-expand-multiline"]
description: "Wrap attributes to new lines [auto|aligned-multiple|force|force-aligned|force-expand-multiline]"
wrap_attributes_indent_size:
type: 'integer'
default: null
@ -65,6 +65,12 @@ module.exports = {
default: 10
description: "Number of line-breaks to be preserved in one chunk"
unformatted:
type: 'array'
default: []
items:
type: 'string'
description: "(Deprecated for most scenarios - consider inline or content_unformatted) List of tags that should not be reformatted at all. NOTE: Set this to [] to get improved beautifier behavior."
inline:
type: 'array'
default: [
'a', 'abbr', 'area', 'audio', 'b', 'bdi', 'bdo', 'br', 'button', 'canvas', 'cite',
@ -73,13 +79,17 @@ module.exports = {
'object', 'output', 'progress', 'q', 'ruby', 's', 'samp', 'select', 'small',
'span', 'strong', 'sub', 'sup', 'svg', 'template', 'textarea', 'time', 'u', 'var',
'video', 'wbr', 'text',
'acronym', 'address', 'big', 'dt', 'ins', 'small', 'strike', 'tt',
'pre',
'h1', 'h2', 'h3', 'h4', 'h5', 'h6'
'acronym', 'address', 'big', 'dt', 'ins', 'strike', 'tt'
]
items:
type: 'string'
description: "List of tags (defaults to inline) that should not be reformatted"
description: "List of inline tags. Behaves similar to text content, will not wrap without whitespace."
content_unformatted:
type: 'array'
default: [ 'pre', 'textarea' ]
items:
type: 'string'
description: "List of tags whose contents should not be reformatted. Attributes will be reformatted, inner html will not."
end_with_newline:
type: 'boolean'
default: false

View File

@ -15,6 +15,7 @@ module.exports = class Languages
"apex"
"arduino"
"bash"
"blade"
"c-sharp"
"c"
"clojure"

File diff suppressed because it is too large Load Diff