PHP_CodeSniffer
PHP_CodeSniffer copied to clipboard
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
The 4.0 branch was branched off in January 2020 (just after the `3.5.4` release) and aside from 4.x specific changes, (nearly) all changes which have gone into the 3.x branch...
## Is your feature request related to a problem? Some standards, like, for instance, PHPCompatibility contain a lot of sniff (150+), but barely any fixers. Another example is the VariableAnalysis...
Repost from https://github.com/squizlabs/PHP_CodeSniffer/issues/1319: > I've been tripped up by this a number of times already, so putting this out here for consideration. > > If the `$start` and `$end` token...
Repost from https://github.com/squizlabs/PHP_CodeSniffer/issues/1699: > ### Proposal: add `list()` to the `Tokens::$functionNameTokens` property > > While `list` is a language construct, for the purpose of formatting, it is normally treated as...
Repost from https://github.com/squizlabs/PHP_CodeSniffer/issues/1826: > The new error suppression system ignores all notices for lines which only contain the new PHPCS native whitelist comments `// phpcs:....`. > > While this is...
Repost from https://github.com/squizlabs/PHP_CodeSniffer/issues/2188: > PR #1433 added an XML schema file to the repo and while people can use it with external tools to validate their custom rulesets/external standards, I...
Repost from https://github.com/squizlabs/PHP_CodeSniffer/issues/2760: > Use-case: sniffs in generic sniff collections - like the `Generic` set in PHPCS - can be freely used by other standards, but shouldn't ever be included...
Repost from https://github.com/squizlabs/PHP_CodeSniffer/issues/2600: > _(I seem to remember seeing a discussion about something like this before, but can't find it anymore, so hoping I'm not opening a duplicate issue)_ >...
## Is your feature request related to a problem? It's difficult to write and maintain XML configuration rules to apply different subdirectories, as the existing configuration file syntax is oriented...
The PHAR files get published with each release on the releases page, but they also are available via a permanent address: https://phars.phpcodesniffer.com/ with historic phars available for download in the...