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

Hi @jrfnl! :wave: I hope you do not mind me suggesting this. I had to wait for Aprils Fools day to pass before posting this, as I was afraid people...

### History Originally, the changelog was maintained in a `package.xml` file, which was a requirement for releasing to PEAR. With the move from the squizlabs repo to this repo and...

Status: good first issue
Type: chores/QA
Type: documentation
Status: help wanted

## Description This PR adds the XML documentation for the Generic.Arrays.ArrayIndent sniff. I left some inline comments below highlighting decisions I made while creating this documentation that I'm not sure...

Type: documentation
Standard: Generic
Status: triage

### Premise A standard should be able to be used without leading to fixer conflicts. Now, as code can be written in lots of different ways, it is not always...

Type: chores/QA
Focus: Fixer Conflicts
Status: needs investigation
Status: help wanted

## Is your feature request related to a problem? Currently, when a user tries to change a PHP ini option which cannot be changed at runtime, it would be silently...

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

## Is your feature request related to a problem? Not really. It's more of a "nice to have". I'd like phpcbf to format my arrow functions from this: ```php $ids...

Type: enhancement
Status: triage

## Describe the bug The `'scope_condition'` key doesn't always get set correctly in the `$tokens` array. Consequently, tokens within the curlies do not get the `'conditions'` array set correctly either....

Type: bug
Core Component: Tokenizer

Repost from https://github.com/squizlabs/PHP_CodeSniffer/issues/3161 by @gsherwood: > The colon after a goto label does not have to be the very next token; there can be whitespace and comments between them. PHP_CodeSniffer...

Type: breaking change
Core Component: Tokenizer

## Describe the bug I have two identical files `app/Models/Locale.php` and `app/Models/.Locale.php` phpcs only reports the errors on the first one and phpcbf only fixes the first one. ### Code...

Type: enhancement
Status: close candidate
Status: triage
Status: waiting for opinions

## Is your feature request related to a problem? Searching for proper sniffs/sniffs explanations was always a complicated thing when using `phpcs`, at least for me, especially as a newcomer....

Type: documentation
Type: enhancement
Core Component: Other
Status: triage
Status: waiting for opinions