Compare commits
134 Commits
Author | SHA1 | Date |
---|---|---|
PatOnTheBack | 41d5051b39 | |
Glavin Wiechert | 76c20e0091 | |
Glavin Wiechert | a3fc41a9db | |
Glavin Wiechert | 7ca4c438e4 | |
Glavin Wiechert | 959862122c | |
Glavin Wiechert | a73906c4e2 | |
Glavin Wiechert | ce6b50e1f6 | |
Glavin Wiechert | 12d03146b7 | |
Glavin Wiechert | 1594ced54b | |
Glavin Wiechert | fec8843cdc | |
Glavin Wiechert | 3426b7a4c5 | |
stevenzeck | af19ce81c5 | |
stevenzeck | c17d5bcfdf | |
Steven Zeck | 596b979c96 | |
Steven Zeck | 0968599c86 | |
Steven Zeck | 80280bb70c | |
Steven Zeck | 67f4ca4249 | |
Liam Newman | f1e6380eac | |
Liam Newman | 9445822480 | |
Liam Newman | 38bd8b531c | |
Liam Newman | a3accd1373 | |
Liam Newman | f611d5765f | |
Liam Newman | e2092205c8 | |
Liam Newman | 4a3c093199 | |
Glavin Wiechert | c1990aadc9 | |
Steven Zeck | b2db7371dd | |
Steven Zeck | d9c06bb47b | |
Steven Zeck | 235d9af6d5 | |
Steven Zeck | eb72ca4487 | |
Steven Zeck | 7dc83efb39 | |
Utkarsh Kukreti | bcdccca4f6 | |
Steven Zeck | 645f1e2404 | |
Steven Zeck | 6d459fabef | |
Steven Zeck | 000b807a26 | |
Arlo Shallit | ee6c605b04 | |
Arlo Shallit | 64c9466418 | |
Arlo Shallit | cd37c75c40 | |
Arlo Shallit | dd9aacffb0 | |
Steven Zeck | bb9428a4fa | |
MSP-Greg | 99662fe968 | |
Steven Zeck | b6591b738e | |
Steven Zeck | a39bbd52cf | |
Steven Zeck | 43bf23f2a1 | |
Brian Bugh | d87b5af8c8 | |
Brian Bugh | 05b20e61c9 | |
Mike Dettmer | 1035da2350 | |
Steven Zeck | 6f1bd1b225 | |
Steven Zeck | f4ca817c16 | |
Steven Zeck | 4a8e740fec | |
Steven Zeck | 5f1c40f4e5 | |
Steven Zeck | f22608ca28 | |
Steven Zeck | b6214f2563 | |
Steven Zeck | 02f6330bd7 | |
Steven Zeck | 7f9d838093 | |
Steven Zeck | 36f00fe508 | |
Steven Zeck | 196f572290 | |
Steven Zeck | e23c5a0f0d | |
Steven Zeck | 9b04e749dc | |
Steven Zeck | 7e6e871b9a | |
Steven Zeck | b6b923c087 | |
Steven Zeck | 258a5ce53a | |
Steven Zeck | 1ddb19d50d | |
Steven Zeck | 10d7830f55 | |
Steven Zeck | cfc7b86737 | |
Steven Zeck | a5d188f459 | |
Steven Zeck | 1955b72fc1 | |
Steven Zeck | 20f5628a74 | |
Steven Zeck | 7d17515e25 | |
Steven Zeck | e4746ae86e | |
Steven Zeck | 72bb96e6f7 | |
Steven Zeck | 5eb7e6d0d6 | |
Glavin Wiechert | efabda3b39 | |
Glavin Wiechert | a62ca65a23 | |
Glavin Wiechert | 7b3bc35048 | |
Steven Zeck | e6fa7f8225 | |
Steven Zeck | 34cb4024c1 | |
Steven Zeck | b8523e6247 | |
Steven Zeck | 004ece9060 | |
Glavin Wiechert | 53360a7fad | |
Glavin Wiechert | 11381aa6d1 | |
Glavin Wiechert | 7829f39cf1 | |
Darron Park | 5aa497a902 | |
Darron Park | 7c7203a23b | |
Darron Park | e4e59e5073 | |
Darron Park | 3b81af1b22 | |
Darron Park | c6c8d190f6 | |
Darron Park | a2303895a6 | |
Darron Park | 7cf6ba19de | |
Darron Park | af94463a1f | |
Darron Park | ef4098af01 | |
Darron Park | 895d0178cb | |
João Neto | 3f404e8484 | |
João Neto | d3ec5e6781 | |
Glavin Wiechert | 926bcd4970 | |
Glavin Wiechert | 6081024baa | |
Glavin Wiechert | 858f8d88a3 | |
Glavin Wiechert | 3b01a23c47 | |
Glavin Wiechert | 043699a811 | |
Glavin Wiechert | ee3280247e | |
Steven Zeck | c04a322769 | |
Steven Zeck | db9c0aeb6b | |
Steven Zeck | c3b5e063d1 | |
Steven Zeck | 42e493ea52 | |
Steven Zeck | 7e735ec70c | |
Glavin Wiechert | 5bb3667987 | |
呼啸随风 | b97f106537 | |
Glavin Wiechert | b104361121 | |
Steven Zeck | d5cceaf071 | |
Steven Zeck | 065713809c | |
Glavin Wiechert | 6bc36884eb | |
Steven Zeck | e6077cdbdb | |
Steven Zeck | 919e19f427 | |
Steven Zeck | dc500b6a05 | |
Steven Zeck | 4ecd668208 | |
hxsf | b99527a349 | |
Junjie Peng | e9f620736c | |
Junjie Peng | 0360f81ea3 | |
Glavin Wiechert | bf971abc7f | |
João Neto | 22ba792723 | |
João Neto | 280d803358 | |
João Neto | a766cbc34b | |
João Neto | ffe5f5fa9a | |
João Neto | 6aa51fdf78 | |
Glavin Wiechert | 386601934b | |
Alexander Kachkaev | bba9616300 | |
Junjie Peng | f37cb40ad8 | |
João Neto | b54ce54a5d | |
João Neto | e774fffd9c | |
Steven Zeck | ef5a1b1f4b | |
Glavin Wiechert | b6fa68bf08 | |
Steven Zeck | 4cd81a388d | |
Alexander Kachkaev | 7c4d09781c | |
Alexander Kachkaev | bddad381c5 | |
Glavin Wiechert | e22a895d1b |
|
@ -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
|
11
.travis.yml
11
.travis.yml
|
@ -41,8 +41,6 @@ addons:
|
||||||
- git
|
- git
|
||||||
- libgnome-keyring-dev
|
- libgnome-keyring-dev
|
||||||
- fakeroot
|
- fakeroot
|
||||||
- crystal
|
|
||||||
- camlp4
|
|
||||||
- aspcud
|
- aspcud
|
||||||
- php5-cli
|
- php5-cli
|
||||||
- golang
|
- golang
|
||||||
|
@ -60,16 +58,17 @@ before_install:
|
||||||
# linux: Install Nix, Nix packages, upgrade pip, and install python packages
|
# linux: Install Nix, Nix packages, upgrade pip, and install python packages
|
||||||
# osx: Update Homebrew, remove conflicting cask, brew bundle, symlink elm-format,
|
# osx: Update Homebrew, remove conflicting cask, brew bundle, symlink elm-format,
|
||||||
# upgrade pip, and install python packages
|
# upgrade pip, and install python packages
|
||||||
|
- echo $TRAVIS_COMMIT_MESSAGE
|
||||||
|
- export TRAVIS_COMMIT_MESSAGE=""
|
||||||
|
- echo $TRAVIS_COMMIT_MESSAGE
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||||
curl https://nixos.org/nix/install | sh &&
|
curl https://nixos.org/nix/install | sh &&
|
||||||
. ~/.nix-profile/etc/profile.d/nix.sh &&
|
. ~/.nix-profile/etc/profile.d/nix.sh &&
|
||||||
nix-env -i uncrustify R elm-format terraform atom atom-beta opam &&
|
nix-env -i uncrustify R elm-format terraform atom atom-beta &&
|
||||||
pip install --upgrade pip &&
|
|
||||||
pip install --user -r requirements.txt;
|
pip install --user -r requirements.txt;
|
||||||
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
brew update && brew cask zap oclint && brew bundle &&
|
brew update && brew cask zap oclint && brew bundle &&
|
||||||
ln -s /usr/local/bin/elm-format-0.17 /usr/local/bin/elm-format &&
|
ln -s /usr/local/bin/elm-format-0.17 /usr/local/bin/elm-format &&
|
||||||
pip2 install --upgrade pip &&
|
|
||||||
pip2 install -r requirements.txt;
|
pip2 install -r requirements.txt;
|
||||||
else
|
else
|
||||||
echo Error:TRAVIS_OS_NAME && exit 1;
|
echo Error:TRAVIS_OS_NAME && exit 1;
|
||||||
|
@ -80,8 +79,6 @@ before_install:
|
||||||
- Rscript --version
|
- Rscript --version
|
||||||
# PHP
|
# PHP
|
||||||
- composer install
|
- composer install
|
||||||
# CoffeeScript
|
|
||||||
- npm install coffee-formatter
|
|
||||||
# OCaml
|
# OCaml
|
||||||
# - opam init --auto-setup
|
# - opam init --auto-setup
|
||||||
# Init environment variables for opam
|
# Init environment variables for opam
|
||||||
|
|
2
Brewfile
2
Brewfile
|
@ -1,9 +1,7 @@
|
||||||
tap 'homebrew/php'
|
|
||||||
tap 'caskroom/versions'
|
tap 'caskroom/versions'
|
||||||
brew 'uncrustify'
|
brew 'uncrustify'
|
||||||
brew 'r'
|
brew 'r'
|
||||||
brew 'composer'
|
brew 'composer'
|
||||||
brew 'opam'
|
|
||||||
brew 'crystal-lang'
|
brew 'crystal-lang'
|
||||||
brew 'terraform'
|
brew 'terraform'
|
||||||
brew 'elm-format'
|
brew 'elm-format'
|
||||||
|
|
51
CHANGELOG.md
51
CHANGELOG.md
|
@ -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).
|
- 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
|
- 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)).
|
- 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
|
- 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 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
|
- Add `.ttslua` file extension to Lua language
|
||||||
- Fix [#1638]. Update TypeScript Formatter dependency
|
- Fix [#1638](https://github.com/Glavin001/atom-beautify/issues/1638). Update TypeScript Formatter dependency
|
||||||
- Fix [#1833] `os.tmpDir` deprecation warning
|
- Fix [#1833](https://github.com/Glavin001/atom-beautify/issues/1833) `os.tmpDir` deprecation warning
|
||||||
|
|
||||||
# v0.30.5 (2017-08-11)
|
# 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
|
- Fix for [#1721](https://github.com/Glavin001/atom-beautify/issues/1721). Changes required due to TextBuffer.save becoming async in Atom 1.19
|
||||||
|
|
|
@ -1,14 +1,22 @@
|
||||||
# :lipstick: [{{package.name}}](https://github.com/Glavin001/atom-beautify)
|
# :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)
|
[![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 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)
|
[![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)
|
[![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¤cy_code=CAD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)
|
[![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¤cy_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)**
|
**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)**
|
**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`
|
Or Settings/Preferences ➔ Install ➔ Search for `atom-beautify`
|
||||||
|
|
||||||
|
[:tada: **Install Unibeautify CI for GitHub** :tada:](https://github.com/apps/unibeautify-ci)
|
||||||
|
|
||||||
### Important Notice: Analytics
|
### Important Notice: Analytics
|
||||||
|
|
||||||
[Atom-Beautify respects the `core.telemetryConsent` configuration option from Atom editor.](https://github.com/Glavin001/atom-beautify/issues/1179)
|
[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!
|
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).
|
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
|
### 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).
|
Many users are experiencing issues when installing third party beautifiers (e.g. Uncrustify, PHP-CS-Fixer, and many more).
|
||||||
|
|
27
README.md
27
README.md
|
@ -1,14 +1,22 @@
|
||||||
# :lipstick: [atom-beautify](https://github.com/Glavin001/atom-beautify)
|
# :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)
|
[![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 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)
|
[![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)
|
[![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¤cy_code=CAD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)
|
[![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¤cy_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)**
|
**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)**
|
**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`
|
Or Settings/Preferences ➔ Install ➔ Search for `atom-beautify`
|
||||||
|
|
||||||
|
[:tada: **Install Unibeautify CI for GitHub** :tada:](https://github.com/apps/unibeautify-ci)
|
||||||
|
|
||||||
### Important Notice: Analytics
|
### Important Notice: Analytics
|
||||||
|
|
||||||
[Atom-Beautify respects the `core.telemetryConsent` configuration option from Atom editor.](https://github.com/Glavin001/atom-beautify/issues/1179)
|
[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!
|
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).
|
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
|
### 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).
|
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! |
|
| 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/> |
|
| 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/> |
|
| 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. |
|
| 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/> |
|
| 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! |
|
| 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! |
|
| Lua beautifier | :white_check_mark: | :ok_hand: Not necessary | :smiley: Nothing! |
|
||||||
| Marko 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! |
|
| 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/> |
|
| 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. |
|
| 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/> |
|
| 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/> |
|
| 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. |
|
| 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! |
|
| 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. |
|
| 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. |
|
| 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/> |
|
| 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)** |
|
| Apex | `Apex` |`.cls`, `.trigger` | **[`Uncrustify`](https://github.com/uncrustify/uncrustify)** |
|
||||||
| Arduino | `Arduino` |`.ino`, `.pde` | **[`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)** |
|
| 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) |
|
| 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)** |
|
| Coldfusion | `html` |`.cfm`, `.cfml`, `.cfc` | **[`Pretty Diff`](https://github.com/prettydiff/prettydiff)** |
|
||||||
| Clojure | `Clojure` |`.clj`, `.cljs`, `.edn` | **[`cljfmt`](https://github.com/snoe/node-cljfmt)** |
|
| 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)** |
|
| 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)** |
|
| 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) |
|
| 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)** |
|
| Pawn | `Pawn` | | **[`Uncrustify`](https://github.com/uncrustify/uncrustify)** |
|
||||||
| Perl | `Perl`, `Perl 6` |`.pl`, `.PL`, `.pm`, `.pod`, `.t` | **[`Perltidy`](http://perltidy.sourceforge.net/)** |
|
| 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/) |
|
| 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/)** |
|
| 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)** |
|
| 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)** |
|
| 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) |
|
| Ruby | `Ruby`, `Ruby on Rails` |`.rb` | **[`Rubocop`](https://github.com/bbatsov/rubocop)**, [`Ruby Beautify`](https://github.com/erniebrodeur/ruby-beautify) |
|
||||||
|
|
|
@ -25,6 +25,9 @@ install:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
|
|
||||||
# Gemfile Install
|
# Gemfile Install
|
||||||
|
- set PATH=C:\Ruby24-x64\bin;%PATH%
|
||||||
|
- ruby -v
|
||||||
|
- gem update --system
|
||||||
- bundle install
|
- bundle install
|
||||||
|
|
||||||
# PHP
|
# PHP
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
language-marko
|
|
||||||
language-html-swig
|
language-html-swig
|
||||||
language-svg
|
language-svg
|
||||||
language-d
|
language-d
|
||||||
|
@ -8,3 +7,4 @@ language-elm
|
||||||
language-puppet
|
language-puppet
|
||||||
fuse
|
fuse
|
||||||
react
|
react
|
||||||
|
language-blade
|
||||||
|
|
2866
docs/options.md
2866
docs/options.md
File diff suppressed because it is too large
Load Diff
|
@ -13,7 +13,7 @@ def example1():
|
||||||
|
|
||||||
|
|
||||||
def example2(): return {'has_key() is deprecated': True}.has_key(
|
def example2(): return {'has_key() is deprecated': True}.has_key(
|
||||||
{'f': 2}.has_key(''));
|
{'f': 2}.has_key(''))
|
||||||
|
|
||||||
|
|
||||||
class Example3(object):
|
class Example3(object):
|
||||||
|
|
|
@ -15,6 +15,6 @@ hash = { hosts: [
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
logger: mylog, # This enables callback logging!
|
logger: mylog, # This enables callback logging!
|
||||||
|
|
||||||
max_reconnect_attempts: 5 }
|
max_reconnect_attempts: 5 }
|
||||||
|
|
|
@ -18,7 +18,7 @@ hash = { :hosts => [
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
:logger => mylog, # This enables callback logging!
|
:logger => mylog, # This enables callback logging!
|
||||||
|
|
||||||
:max_reconnect_attempts => 5,
|
:max_reconnect_attempts => 5,
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h1>My Webpage</h1> {{ a_variable }}
|
<h1>My Webpage</h1>
|
||||||
|
{{ a_variable }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -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>
|
|
@ -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>
|
|
@ -19,7 +19,7 @@ function aaa(a, b, c)
|
||||||
-- comment 2 1231
|
-- comment 2 1231
|
||||||
-- comment 1 123 123 123123 12
|
-- comment 1 123 123 123123 12
|
||||||
-- [[ comment 1 ]]
|
-- [[ comment 1 ]]
|
||||||
--[[
|
--[[
|
||||||
muli comments
|
muli comments
|
||||||
ssss
|
ssss
|
||||||
@asdasd sad
|
@asdasd sad
|
||||||
|
|
|
@ -3,7 +3,7 @@ SELECT ca.proj_id AS proj_id,
|
||||||
ca.ca_date_start AS proj_start,
|
ca.ca_date_start AS proj_start,
|
||||||
ca.ca_date_end AS proj_end,
|
ca.ca_date_end AS proj_end,
|
||||||
|
|
||||||
(SELECT count(*)
|
(SELECT COUNT(*)
|
||||||
FROM rotations r
|
FROM rotations r
|
||||||
WHERE r.proj_id = proj_id
|
WHERE r.proj_id = proj_id
|
||||||
AND r.r_status = 'R'
|
AND r.r_status = 'R'
|
||||||
|
@ -12,7 +12,7 @@ SELECT ca.proj_id AS proj_id,
|
||||||
(SELECT count(*)
|
(SELECT count(*)
|
||||||
FROM rotations r
|
FROM rotations r
|
||||||
WHERE r.proj_id = proj_id
|
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,
|
FROM projs ca,
|
||||||
clients c,
|
clients c,
|
||||||
proj_auth caa
|
proj_auth caa
|
||||||
|
@ -20,6 +20,6 @@ WHERE ca.client_id = 12345
|
||||||
AND ca.client_id = c.client_id
|
AND ca.client_id = c.client_id
|
||||||
AND ca_type = 'zzz'
|
AND ca_type = 'zzz'
|
||||||
AND c.agency_id = 0
|
AND c.agency_id = 0
|
||||||
AND ca.client_id = nvl(caa.client_id, ca.client_id)
|
AND ca.client_id = NVL(caa.client_id, ca.client_id)
|
||||||
AND proj_id = nvl(caa.proj_id, proj_id)
|
AND proj_id = NVL(caa.proj_id, proj_id)
|
||||||
AND caa.contact_id = 7890
|
AND caa.contact_id = 7890
|
|
@ -4,21 +4,30 @@ VALUES('hallpclnx',
|
||||||
CURRENT_TIMESTAMP);
|
CURRENT_TIMESTAMP);
|
||||||
|
|
||||||
|
|
||||||
INSERT INTO thread (thread, description, created_at, client_id)
|
INSERT INTO THREAD (THREAD,
|
||||||
|
description,
|
||||||
|
created_at,
|
||||||
|
client_id)
|
||||||
VALUES(1,
|
VALUES(1,
|
||||||
'Living room camera',
|
'Living room camera',
|
||||||
CURRENT_TIMESTAMP,
|
CURRENT_TIMESTAMP,
|
||||||
1);
|
1);
|
||||||
|
|
||||||
|
|
||||||
INSERT INTO thread (thread, description, created_at, client_id)
|
INSERT INTO THREAD (THREAD,
|
||||||
|
description,
|
||||||
|
created_at,
|
||||||
|
client_id)
|
||||||
VALUES(2,
|
VALUES(2,
|
||||||
'Porch camera',
|
'Porch camera',
|
||||||
CURRENT_TIMESTAMP,
|
CURRENT_TIMESTAMP,
|
||||||
1);
|
1);
|
||||||
|
|
||||||
|
|
||||||
INSERT INTO thread (thread, description, created_at, client_id)
|
INSERT INTO THREAD (THREAD,
|
||||||
|
description,
|
||||||
|
created_at,
|
||||||
|
client_id)
|
||||||
VALUES(2,
|
VALUES(2,
|
||||||
'Garden camera',
|
'Garden camera',
|
||||||
CURRENT_TIMESTAMP,
|
CURRENT_TIMESTAMP,
|
||||||
|
@ -28,5 +37,4 @@ VALUES(2,
|
||||||
INSERT INTO client (HOST, description, created_at)
|
INSERT INTO client (HOST, description, created_at)
|
||||||
VALUES('shedpclnx',
|
VALUES('shedpclnx',
|
||||||
'My shed linux machine',
|
'My shed linux machine',
|
||||||
CURRENT_TIMESTAMP);
|
CURRENT_TIMESTAMP);
|
||||||
|
|
|
@ -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
|
|
@ -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(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, 'Porch camera', CURRENT_TIMESTAMP, 1);
|
||||||
INSERT INTO thread (thread, description, created_at, client_id) VALUES(2, 'Garden 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);
|
File diff suppressed because it is too large
Load Diff
39
package.json
39
package.json
|
@ -1,13 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "atom-beautify",
|
"name": "atom-beautify",
|
||||||
"main": "./src/beautify",
|
"main": "./src/beautify",
|
||||||
"version": "0.32.0",
|
"version": "0.33.4",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom",
|
"description": "Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom",
|
||||||
"repository": {
|
"repository": "https://github.com/Glavin001/atom-beautify.git",
|
||||||
"type": "git",
|
|
||||||
"url": "git@github.com:Glavin001/atom-beautify.git"
|
|
||||||
},
|
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/Glavin001/atom-beautify/issues"
|
"url": "https://github.com/Glavin001/atom-beautify/issues"
|
||||||
},
|
},
|
||||||
|
@ -171,6 +168,14 @@
|
||||||
{
|
{
|
||||||
"name": "Kohei Hiraga",
|
"name": "Kohei Hiraga",
|
||||||
"url": "https://github.com/range3"
|
"url": "https://github.com/range3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Arlo Shallit",
|
||||||
|
"url": "https://github.com/arl-o"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Liam Newman",
|
||||||
|
"url": "https://github.com/bitwiseman"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -191,19 +196,18 @@
|
||||||
"eslint": "^4.16.0",
|
"eslint": "^4.16.0",
|
||||||
"event-kit": "^2.4.0",
|
"event-kit": "^2.4.0",
|
||||||
"expand-home-dir": "0.0.3",
|
"expand-home-dir": "0.0.3",
|
||||||
"extend": "^3.0.1",
|
"extend": "^3.0.2",
|
||||||
"gherkin": "^2.12.2",
|
"gherkin": "^2.12.2",
|
||||||
"handlebars": "^4.0.11",
|
"handlebars": "^4.1.2",
|
||||||
"js-beautify": "^1.7.5",
|
"js-beautify": "^1.8.1",
|
||||||
"jscs": "^3.0.7",
|
"jscs": "^3.0.7",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.13",
|
||||||
"loophole": "^1.1.0",
|
"loophole": "^1.1.0",
|
||||||
"marko-prettyprint": "^1.4.0",
|
|
||||||
"nginxbeautify": "^2.0.1",
|
"nginxbeautify": "^2.0.1",
|
||||||
"node-cljfmt": "0.5.3",
|
"node-cljfmt": "0.5.3",
|
||||||
"node-dir": "0.1.17",
|
"node-dir": "0.1.17",
|
||||||
"open": "0.0.5",
|
"open": "6.0.0",
|
||||||
"prettier": "^1.10.2",
|
"prettier": "^1.11.1",
|
||||||
"prettydiff2": "^2.2.7",
|
"prettydiff2": "^2.2.7",
|
||||||
"pug-beautify": "^0.1.1",
|
"pug-beautify": "^0.1.1",
|
||||||
"remark": "6.0.1",
|
"remark": "6.0.1",
|
||||||
|
@ -217,8 +221,8 @@
|
||||||
"typescript": "^2.6.2",
|
"typescript": "^2.6.2",
|
||||||
"typescript-formatter": "^7.0.0",
|
"typescript-formatter": "^7.0.0",
|
||||||
"underscore-plus": "^1.6.6",
|
"underscore-plus": "^1.6.6",
|
||||||
"uuid": "^3.1.0",
|
|
||||||
"universal-analytics": "^0.4.16",
|
"universal-analytics": "^0.4.16",
|
||||||
|
"uuid": "^3.1.0",
|
||||||
"which": "^1.3.0",
|
"which": "^1.3.0",
|
||||||
"winston": "^2.4.0",
|
"winston": "^2.4.0",
|
||||||
"yaml-front-matter": "3.4.1"
|
"yaml-front-matter": "3.4.1"
|
||||||
|
@ -303,7 +307,8 @@
|
||||||
"atom-beautify:beautify-language-tsx",
|
"atom-beautify:beautify-language-tsx",
|
||||||
"atom-beautify:beautify-language-verilog",
|
"atom-beautify:beautify-language-verilog",
|
||||||
"atom-beautify:beautify-language-vhdl",
|
"atom-beautify:beautify-language-vhdl",
|
||||||
"atom-beautify:beautify-language-gn"
|
"atom-beautify:beautify-language-gn",
|
||||||
|
"atom-beautify:beautify-language-blade"
|
||||||
],
|
],
|
||||||
".tree-view .file .name": [
|
".tree-view .file .name": [
|
||||||
"atom-beautify:beautify-file"
|
"atom-beautify:beautify-file"
|
||||||
|
@ -447,7 +452,10 @@
|
||||||
"emacs verilog mode",
|
"emacs verilog mode",
|
||||||
"vhdl",
|
"vhdl",
|
||||||
"vhdl beautifier",
|
"vhdl beautifier",
|
||||||
"gn"
|
"gn",
|
||||||
|
"blade",
|
||||||
|
"black",
|
||||||
|
"ocamlformat"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"codo": "^2.1.2",
|
"codo": "^2.1.2",
|
||||||
|
@ -459,6 +467,7 @@
|
||||||
"prepare": "npm run docs",
|
"prepare": "npm run docs",
|
||||||
"lint": "coffeelint src/ spec/",
|
"lint": "coffeelint src/ spec/",
|
||||||
"code-docs": "codo && open docs/code/index.html",
|
"code-docs": "codo && open docs/code/index.html",
|
||||||
|
"pretest": "npm run lint",
|
||||||
"test": "atom --test spec"
|
"test": "atom --test spec"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="atom" />
|
<package id="atom" />
|
||||||
<package id="emacs" />
|
<package id="emacs64" version="24.5" />
|
||||||
<package id="terraform" />
|
<package id="terraform" />
|
||||||
<package id="composer" />
|
<package id="composer" />
|
||||||
<!--package id="uncrustify" /-->
|
<!--package id="uncrustify" /-->
|
||||||
|
|
|
@ -44,9 +44,9 @@ describe "BeautifyLanguages", ->
|
||||||
|
|
||||||
# Activate all of the languages
|
# Activate all of the languages
|
||||||
allLanguages = [
|
allLanguages = [
|
||||||
"c", "clojure", "coffee-script", "css", "csharp", "d",
|
"blade", "c", "clojure", "coffee-script", "css", "csharp", "d",
|
||||||
"gfm", "go", "html", "html-swig", "java", "javascript",
|
"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",
|
"perl", "php", "python", "ruby", "sass", "sql",
|
||||||
"svg", "xml"
|
"svg", "xml"
|
||||||
]
|
]
|
||||||
|
|
|
@ -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
|
||||||
|
})
|
|
@ -49,6 +49,7 @@ class Executable
|
||||||
.then(() => @)
|
.then(() => @)
|
||||||
.catch((error) =>
|
.catch((error) =>
|
||||||
if not @.required
|
if not @.required
|
||||||
|
@verbose("Not required")
|
||||||
@
|
@
|
||||||
else
|
else
|
||||||
Promise.reject(error)
|
Promise.reject(error)
|
||||||
|
@ -366,6 +367,7 @@ class HybridExecutable extends Executable
|
||||||
|
|
||||||
constructor: (options) ->
|
constructor: (options) ->
|
||||||
super(options)
|
super(options)
|
||||||
|
@verbose("HybridExecutable Options", options)
|
||||||
if options.docker?
|
if options.docker?
|
||||||
@dockerOptions = Object.assign({}, @dockerOptions, options.docker)
|
@dockerOptions = Object.assign({}, @dockerOptions, options.docker)
|
||||||
@docker = @constructor.dockerExecutable()
|
@docker = @constructor.dockerExecutable()
|
||||||
|
@ -387,20 +389,44 @@ class HybridExecutable extends Executable
|
||||||
installedWithDocker: false
|
installedWithDocker: false
|
||||||
init: () ->
|
init: () ->
|
||||||
super()
|
super()
|
||||||
|
.then(() =>
|
||||||
|
return @
|
||||||
|
)
|
||||||
.catch((error) =>
|
.catch((error) =>
|
||||||
return Promise.reject(error) if not @docker?
|
return Promise.reject(error) if not @docker?
|
||||||
@docker.init()
|
return Promise.resolve(error)
|
||||||
.then(=> @runImage(@versionArgs, @versionRunOptions))
|
)
|
||||||
.then((text) => @saveVersion(text))
|
.then((errorOrThis) =>
|
||||||
.then(() => @installedWithDocker = true)
|
shouldTryWithDocker = not @isInstalled and @docker?
|
||||||
.then(=> @)
|
@verbose("Executable shouldTryWithDocker", shouldTryWithDocker, @isInstalled, @docker?)
|
||||||
.catch((dockerError) =>
|
if shouldTryWithDocker
|
||||||
@debug(dockerError)
|
return @initDocker().catch(() -> Promise.reject(errorOrThis))
|
||||||
Promise.reject(error)
|
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 = {}) ->
|
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
|
if @installedWithDocker and @docker and @docker.isInstalled
|
||||||
return @runImage(args, options)
|
return @runImage(args, options)
|
||||||
super(args, options)
|
super(args, options)
|
||||||
|
@ -424,15 +450,15 @@ class HybridExecutable extends Executable
|
||||||
|
|
||||||
@docker.run([
|
@docker.run([
|
||||||
"run",
|
"run",
|
||||||
|
"--rm",
|
||||||
"--volume", "#{pwd}:#{workingDir}",
|
"--volume", "#{pwd}:#{workingDir}",
|
||||||
"--volume", "#{path.resolve('/')}:#{rootPath}",
|
"--volume", "#{path.resolve('/')}:#{rootPath}",
|
||||||
"--workdir", workingDir,
|
"--workdir", workingDir,
|
||||||
image,
|
image,
|
||||||
newArgs
|
newArgs
|
||||||
],
|
],
|
||||||
options
|
Object.assign({}, options, { cmd: undefined })
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
module.exports = HybridExecutable
|
module.exports = HybridExecutable
|
||||||
|
|
|
@ -43,6 +43,7 @@ module.exports = class Beautifiers extends EventEmitter
|
||||||
'cljfmt'
|
'cljfmt'
|
||||||
'clang-format'
|
'clang-format'
|
||||||
'crystal'
|
'crystal'
|
||||||
|
'black'
|
||||||
'dfmt'
|
'dfmt'
|
||||||
'elm-format'
|
'elm-format'
|
||||||
'hh_format'
|
'hh_format'
|
||||||
|
@ -87,6 +88,7 @@ module.exports = class Beautifiers extends EventEmitter
|
||||||
'beautysh'
|
'beautysh'
|
||||||
'terraformfmt'
|
'terraformfmt'
|
||||||
'verilog-mode'
|
'verilog-mode'
|
||||||
|
'ocamlformat'
|
||||||
]
|
]
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
|
@ -6,6 +6,7 @@ module.exports = class JSBeautify extends Beautifier
|
||||||
link: "https://github.com/beautify-web/js-beautify"
|
link: "https://github.com/beautify-web/js-beautify"
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
|
Blade: true
|
||||||
HTML: true
|
HTML: true
|
||||||
XML: true
|
XML: true
|
||||||
Handlebars: true
|
Handlebars: true
|
||||||
|
@ -51,6 +52,16 @@ module.exports = class JSBeautify extends Beautifier
|
||||||
beautifyCSS = require("js-beautify").css
|
beautifyCSS = require("js-beautify").css
|
||||||
text = beautifyCSS(text, options)
|
text = beautifyCSS(text, options)
|
||||||
resolve text
|
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
|
else
|
||||||
reject(new Error("Unknown language for JS Beautify: "+language))
|
reject(new Error("Unknown language for JS Beautify: "+language))
|
||||||
catch err
|
catch err
|
||||||
|
|
|
@ -53,7 +53,7 @@ module.exports = (str, indent, warn_fn, opts = {}) ->
|
||||||
else
|
else
|
||||||
return line
|
return line
|
||||||
res1 = line.match(/\[(=*)\[/)
|
res1 = line.match(/\[(=*)\[/)
|
||||||
if res1
|
if res1 and (not new RegExp("\\]#{'='.repeat res1[1].length}\\]").test line)
|
||||||
$template = res1[1].length + 1
|
$template = res1[1].length + 1
|
||||||
if !$template_flag
|
if !$template_flag
|
||||||
line = line.trim()
|
line = line.trim()
|
||||||
|
@ -62,9 +62,9 @@ module.exports = (str, indent, warn_fn, opts = {}) ->
|
||||||
if !line.length
|
if !line.length
|
||||||
return ''
|
return ''
|
||||||
raw_line = line
|
raw_line = line
|
||||||
line = line.replace(/(['"])[^\1]*?\1/, '')
|
line = line.replace(/(['"])[^\1]*?\1/g, '')
|
||||||
# remove all quoted fragments for proper bracket processing
|
# 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
|
# 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)
|
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
|
$nextIndent = $currIndent + 1
|
||||||
|
@ -102,4 +102,4 @@ module.exports = (str, indent, warn_fn, opts = {}) ->
|
||||||
new_line or undefined
|
new_line or undefined
|
||||||
|
|
||||||
warn_fn 'positive indentation at the end' if $currIndent > 0
|
warn_fn 'positive indentation at the end' if $currIndent > 0
|
||||||
new_code.join eol
|
new_code.join eol
|
|
@ -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"
|
||||||
|
}
|
||||||
|
})
|
|
@ -67,7 +67,8 @@ module.exports = class PHPCSFixer extends Beautifier
|
||||||
phpCsFixerOptions = [
|
phpCsFixerOptions = [
|
||||||
"fix"
|
"fix"
|
||||||
"--rules=#{options.rules}" if options.rules
|
"--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
|
"--allow-risky=#{options.allow_risky}" if options.allow_risky
|
||||||
"--using-cache=no"
|
"--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)
|
isPhpScript = (finalPhpCsFixerPath.indexOf(".phar") isnt -1) or (finalPhpCsFixerPath.indexOf(".php") isnt -1)
|
||||||
@verbose('isPhpScript', isPhpScript)
|
@verbose('isPhpScript', isPhpScript)
|
||||||
|
|
||||||
if finalPhpCsFixerPath and isPhpScript
|
if not phpCsFixer.isInstalled and finalPhpCsFixerPath and isPhpScript
|
||||||
php.run([finalPhpCsFixerPath, phpCsFixerOptions, tempFile], runOptions)
|
php.run([finalPhpCsFixerPath, phpCsFixerOptions, tempFile], runOptions)
|
||||||
.then(=>
|
.then(=>
|
||||||
@readFile(tempFile)
|
@readFile(tempFile)
|
||||||
|
|
|
@ -4,6 +4,7 @@ Requires https://github.com/FriendsOfPHP/phpcbf
|
||||||
|
|
||||||
"use strict"
|
"use strict"
|
||||||
Beautifier = require('./beautifier')
|
Beautifier = require('./beautifier')
|
||||||
|
path = require('path')
|
||||||
|
|
||||||
module.exports = class PHPCBF extends Beautifier
|
module.exports = class PHPCBF extends Beautifier
|
||||||
name: "PHPCBF"
|
name: "PHPCBF"
|
||||||
|
@ -23,6 +24,7 @@ module.exports = class PHPCBF extends Beautifier
|
||||||
cmd: "phpcbf"
|
cmd: "phpcbf"
|
||||||
homepage: "https://github.com/squizlabs/PHP_CodeSniffer"
|
homepage: "https://github.com/squizlabs/PHP_CodeSniffer"
|
||||||
installation: "https://github.com/squizlabs/PHP_CodeSniffer#installation"
|
installation: "https://github.com/squizlabs/PHP_CodeSniffer#installation"
|
||||||
|
optional: true
|
||||||
version: {
|
version: {
|
||||||
parse: (text) -> text.match(/version (\d+\.\d+\.\d+)/)[1]
|
parse: (text) -> text.match(/version (\d+\.\d+\.\d+)/)[1]
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@ module.exports = class Prettier extends Beautifier
|
||||||
prettierLanguage = _.find(prettier.getSupportInfo().languages, 'name': language)
|
prettierLanguage = _.find(prettier.getSupportInfo().languages, 'name': language)
|
||||||
if prettierLanguage
|
if prettierLanguage
|
||||||
parser = prettierLanguage.parsers[0]
|
parser = prettierLanguage.parsers[0]
|
||||||
|
options.parser = parser
|
||||||
else
|
else
|
||||||
reject(new Error("Unknown language for Prettier"))
|
reject(new Error("Unknown language for Prettier"))
|
||||||
|
|
||||||
|
@ -38,7 +39,7 @@ module.exports = class Prettier extends Beautifier
|
||||||
|
|
||||||
try
|
try
|
||||||
prettier.resolveConfig(filePath).then((configOptions) ->
|
prettier.resolveConfig(filePath).then((configOptions) ->
|
||||||
result = prettier.format(text, configOptions or options, parser)
|
result = prettier.format(text, configOptions or options)
|
||||||
prettier.clearConfigCache()
|
prettier.clearConfigCache()
|
||||||
resolve result
|
resolve result
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,10 +17,26 @@ module.exports = class Rubocop extends Beautifier
|
||||||
rubocop_path: true
|
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) ->
|
beautify: (text, language, options, context) ->
|
||||||
fullPath = context.filePath or ""
|
fullPath = context.filePath or ""
|
||||||
[projectPath, _relativePath] = atom.project.relativizePath(fullPath)
|
[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
|
# Find the rubocop path
|
||||||
@Promise.all([
|
@Promise.all([
|
||||||
@which(options.rubocop_path) if options.rubocop_path
|
@which(options.rubocop_path) if options.rubocop_path
|
||||||
|
@ -46,21 +62,27 @@ module.exports = class Rubocop extends Beautifier
|
||||||
rubocopArguments = [
|
rubocopArguments = [
|
||||||
"--auto-correct"
|
"--auto-correct"
|
||||||
"--force-exclusion"
|
"--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?
|
rubocopArguments.push("--config", tempConfig) if tempConfig?
|
||||||
@debug("rubocop arguments", rubocopArguments)
|
@debug("rubocop arguments", rubocopArguments)
|
||||||
|
|
||||||
@run(rubocopPath, rubocopArguments, {
|
(if options.rubocop_path then \
|
||||||
ignoreReturnCode: true,
|
@run(rubocopPath, rubocopArguments, exeOptions) else \
|
||||||
cwd: projectPath,
|
@exe("rubocop").run(rubocopArguments, exeOptions)
|
||||||
onStdin: (stdin) -> stdin.end text
|
).then((stdout) =>
|
||||||
}).then((stdout) =>
|
|
||||||
@debug("rubocop output", stdout)
|
@debug("rubocop output", stdout)
|
||||||
# Rubocop output an error if stdout is empty
|
# Rubocop output an error if stdout is empty
|
||||||
return text if stdout.length == 0
|
return text if stdout.length == 0
|
||||||
|
|
||||||
result = stdout.split("====================\n")
|
result = stdout.split("====================\n")
|
||||||
|
result = stdout.split("====================\r\n") if result.length == 1
|
||||||
|
|
||||||
result[result.length - 1]
|
result[result.length - 1]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,7 +17,7 @@ module.exports = class Sqlformat extends Beautifier
|
||||||
beautify: (text, language, options) ->
|
beautify: (text, language, options) ->
|
||||||
@run("sqlformat", [
|
@run("sqlformat", [
|
||||||
@tempFile("input", text)
|
@tempFile("input", text)
|
||||||
"--reindent=#{options.reindent}" if options.reindent?
|
"--reindent" if options.reindent is true
|
||||||
"--indent_width=#{options.indent_size}" if options.indent_size?
|
"--indent_width=#{options.indent_size}" if options.indent_size?
|
||||||
"--keywords=#{options.keywords}" if (options.keywords? && options.keywords != 'unchanged')
|
"--keywords=#{options.keywords}" if (options.keywords? && options.keywords != 'unchanged')
|
||||||
"--identifiers=#{options.identifiers}" if (options.identifiers? && options.identifiers != 'unchanged')
|
"--identifiers=#{options.identifiers}" if (options.identifiers? && options.identifiers != 'unchanged')
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
module.exports = {
|
||||||
|
|
||||||
|
name: "Blade"
|
||||||
|
namespace: "blade"
|
||||||
|
fallback: ["html"]
|
||||||
|
|
||||||
|
###
|
||||||
|
Supported Grammars
|
||||||
|
###
|
||||||
|
grammars: [
|
||||||
|
"Blade"
|
||||||
|
]
|
||||||
|
|
||||||
|
###
|
||||||
|
Supported extensions
|
||||||
|
###
|
||||||
|
extensions: [
|
||||||
|
"blade.php"
|
||||||
|
]
|
||||||
|
|
||||||
|
options: []
|
||||||
|
}
|
|
@ -49,8 +49,8 @@ module.exports = {
|
||||||
wrap_attributes:
|
wrap_attributes:
|
||||||
type: 'string'
|
type: 'string'
|
||||||
default: "auto"
|
default: "auto"
|
||||||
enum: ["auto", "force", "force-aligned", "force-expand-multiline"]
|
enum: ["auto", "aligned-multiple", "force", "force-aligned", "force-expand-multiline"]
|
||||||
description: "Wrap attributes to new lines [auto|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:
|
wrap_attributes_indent_size:
|
||||||
type: 'integer'
|
type: 'integer'
|
||||||
default: null
|
default: null
|
||||||
|
@ -65,6 +65,12 @@ module.exports = {
|
||||||
default: 10
|
default: 10
|
||||||
description: "Number of line-breaks to be preserved in one chunk"
|
description: "Number of line-breaks to be preserved in one chunk"
|
||||||
unformatted:
|
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'
|
type: 'array'
|
||||||
default: [
|
default: [
|
||||||
'a', 'abbr', 'area', 'audio', 'b', 'bdi', 'bdo', 'br', 'button', 'canvas', 'cite',
|
'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',
|
'object', 'output', 'progress', 'q', 'ruby', 's', 'samp', 'select', 'small',
|
||||||
'span', 'strong', 'sub', 'sup', 'svg', 'template', 'textarea', 'time', 'u', 'var',
|
'span', 'strong', 'sub', 'sup', 'svg', 'template', 'textarea', 'time', 'u', 'var',
|
||||||
'video', 'wbr', 'text',
|
'video', 'wbr', 'text',
|
||||||
'acronym', 'address', 'big', 'dt', 'ins', 'small', 'strike', 'tt',
|
'acronym', 'address', 'big', 'dt', 'ins', 'strike', 'tt'
|
||||||
'pre',
|
|
||||||
'h1', 'h2', 'h3', 'h4', 'h5', 'h6'
|
|
||||||
]
|
]
|
||||||
items:
|
items:
|
||||||
type: 'string'
|
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:
|
end_with_newline:
|
||||||
type: 'boolean'
|
type: 'boolean'
|
||||||
default: false
|
default: false
|
||||||
|
|
|
@ -15,6 +15,7 @@ module.exports = class Languages
|
||||||
"apex"
|
"apex"
|
||||||
"arduino"
|
"arduino"
|
||||||
"bash"
|
"bash"
|
||||||
|
"blade"
|
||||||
"c-sharp"
|
"c-sharp"
|
||||||
"c"
|
"c"
|
||||||
"clojure"
|
"clojure"
|
||||||
|
|
798
src/options.json
798
src/options.json
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue