PHP_CodeSniffer
PHP_CodeSniffer copied to clipboard
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
Repost from https://github.com/squizlabs/PHP_CodeSniffer/issues/1732: > I've just been looking into the `parallel` running option a bit more and am left with some questions. > * When should you use this option...
## Description As of PHPCS 4.0, the tests will no longer ship in a packaged version of the repo :tada: However, while this removes a lot of friction, it can...
## Is your feature request related to a problem? There are a number of command-line options which will not run a scan, but will show different output. When processing the...
## Description Recreation of upstream PR https://github.com/squizlabs/PHP_CodeSniffer/pull/3915 + rebased against the 4.0 branch: > ### ErrorSuppressionTest: prevent Internal errors > > ... about a mismatch in line endings when the...
## Description Recreation of upstream PR https://github.com/squizlabs/PHP_CodeSniffer/pull/3802: > I have the impression that the Zend Code Analyzer tool as stand-alone tool is no longer available. Please correct me if I'm...
## Description Recreation of upstream PR https://github.com/squizlabs/PHP_CodeSniffer/pull/3636 + rebase for the 4.0 branch: > The function call spacing for anonymous class instantiations was so far not checked by these ~~or...
## Description Recreation of upstream PR https://github.com/squizlabs/PHP_CodeSniffer/pull/3344. ## Suggested changelog entry _N/A_
## Description Recreation of upstream PR https://github.com/squizlabs/PHP_CodeSniffer/pull/3338: > Commit 08824f327ce5e20d7528c5e838dd7fade3dcd11c added support for `T_USE` tokens for closures being parentheses owners and PR squizlabs/PHP_CodeSniffer#3104 fixed this up for non-closure use. >...
## Description Recreation of upstream PR https://github.com/squizlabs/PHP_CodeSniffer/pull/3121: > Implementation of the proposal outlined in issue squizlabs/PHP_CodeSniffer#3115. > > 1. Removes the Tokenizer/PHP code which made an exception for `instanceof static`....
## Description Recreation of upstream PR https://github.com/squizlabs/PHP_CodeSniffer/pull/2729: > This changes the error codes for the `SpacingAfterBlock` and `SpacingInsideBlock` errors to modular error codes which include a reference to the type...