PHP_CodeSniffer icon indicating copy to clipboard operation
PHP_CodeSniffer copied to clipboard

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

Results 100 PHP_CodeSniffer issues
Sort by recently updated
recently updated
newest added

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...

Type: chores/QA
Type: meta
Status: waiting for opinions

## 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...

Type: enhancement
Focus: Performance
Status: triage
Status: waiting for opinions

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...

Type: breaking change
Type: bug
Core Component: File
Status: waiting for opinions

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...

Type: enhancement
Core Component: Utils
Status: waiting for opinions

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...

Type: enhancement
Focus: Ignore Annotations/Excludes
Status: needs investigation
Status: waiting for opinions

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...

Type: enhancement
Core Component: Config & Ruleset & CLI options
Status: waiting for opinions

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...

Type: enhancement
Core Component: Config & Ruleset & CLI options
Status: triage
Status: waiting for opinions

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)_ >...

Type: enhancement
Core Component: Config & Ruleset & CLI options
Status: waiting for opinions

## 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...

Type: enhancement
Status: triage
Status: waiting for opinions

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...

Type: documentation
Type: enhancement
Status: help wanted