Closed Heart1010 closed 10 years ago
I just installed your sublime-phpcs plugin (ST3) and the default php-cs-fixer setting shows
"php_cs_fixer_additional_args": { "--level": "all" },
...is this --level parameter still valid? I got the following in console (debug set to on) The level "all" is not defined.
The level "all" is not defined.
The usage doc from php-cs-fixer shows this:
The fix command tries to fix as much coding standards problems as possible on a given file or directory:
fix
php php-cs-fixer.phar fix /path/to/dir php php-cs-fixer.phar fix /path/to/file
The --level option limits the fixers to apply on the project:
--level
php php-cs-fixer.phar fix /path/to/project --level=psr0 php php-cs-fixer.phar fix /path/to/project --level=psr1 php php-cs-fixer.phar fix /path/to/project --level=psr2 php php-cs-fixer.phar fix /path/to/project --level=symfony
By default, all PSR-2 fixers and some additional ones are run. The "contrib level" fixers cannot be enabled via this option; you should instead set them manually by their name via the --fixers option.
Thanks for raising this. This functionality has changed in the newly released version 1.0 of php-cs-fixer. Updated the default settings.
I just installed your sublime-phpcs plugin (ST3) and the default php-cs-fixer setting shows
...is this --level parameter still valid? I got the following in console (debug set to on)
The level "all" is not defined.
The usage doc from php-cs-fixer shows this:
The
fix
command tries to fix as much coding standards problems as possible on a given file or directory:The
--level
option limits the fixers to apply on the project:By default, all PSR-2 fixers and some additional ones are run. The "contrib level" fixers cannot be enabled via this option; you should instead set them manually by their name via the --fixers option.