PHPCSStandards/PHP_CodeSniffer
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
PHPBSD-3-Clause
Pinned issues
Issues
- 1
Squiz.CSS.SemicolonSpacing.NotAtEnd false positive on classes with numbers
#605 opened by abarker-gravity - 5
Squiz.Commenting.PostStatementComment should allow trailing annotations from popular PHP tools
#560 opened by rodrigoprimo - 10
Reminder: revisit `yield from` tokenization
#529 opened by jrfnl - 1
PSR2.ControlStructures.SwitchDeclaration.TerminatingComment false positive with never returning function call
#657 opened by anthonyryan1 - 7
- 2
Proposal: Language Server
#640 opened by ObliviousHarmony - 1
Test files mess with code completition
#636 opened by mabar - 2
- 1
error for multiple empty line in php file.
#622 opened by Mohammad-Ravand - 3
Class bracing sniffs with PER 2.0
#566 opened by rikvdh - 5
- 5
Terminal comma to indicate discarded items in array destructuring fails Squiz.Arrays.ArrayDeclaration.CommaAfterLast
#528 opened by joachim-n - 2
DisallowMultipleAssignments false positive when assigning to variable property of an object in an array
#598 opened by GaryJones - 2
Add Fixer method to remove a line
#517 opened by andrewnicols - 3
Array destructuring in foreach - conflict between SpaceBeforeComma & NoSpaceAfterComma
#527 opened by VladaHejda - 3
Squiz.Functions.MultiLineFunctionDeclaration reports error if php attributes are declared
#608 opened by vincent-paqt - 0
Newline Spacing Around Control Structures Not Working
#606 opened by ShaneOH - 6
- 1
- 3
error in Annotated Ruleset docs
#601 opened by joachim-n - 4
Generic/InlineControlStructure: small bug when fixing a control structure without body
#599 opened by rodrigoprimo - 0
- 2
Match Expressions alignments
#590 opened by jacobcassidy - 0
Squiz.Classes.SelfMemberReference: false negative if file contains namespace operator
#553 opened by jrfnl - 2
PSR2/PSR12 SwitchDeclarationSniff fatal error
#589 opened by franss22 - 3
- 0
Review use of `T_SEMICOLON` in sniffs
#552 opened by jrfnl - 5
Issue with PSR-12 behavior not according specification with spacing for anonymous classes
#569 opened by rikvdh - 1
`phpcs-only` attribute is not always respected
#577 opened by fredden - 7
- 5
Modifier keyword order for PER 2.0
#567 opened by rikvdh - 4
Anonymous Class parentheses check for PER 2.0
#568 opened by rikvdh - 1
`Squiz.Commenting.PostStatementComment` should flag all types of trailing comments
#562 opened by rodrigoprimo - 2
Squiz/DisallowMultipleAssignments: false positive when checking for default values and function is missing the closing parenthesis
#551 opened by rodrigoprimo - 3
- 3
Should documents be hosted in a repository instead of a wiki, so that everyone can easily write contributing documents?
#546 opened by ajiho - 1
Squiz.PHP.DisallowMultipleAssignments false positive for list assignments after embedded PHP without semicolon
#537 opened by biinari - 4
Explicitly say that CLI --exclude option disables only 3-part codes, entire sniffs, not 4-part ones
#536 opened by arsel-5lvxa7b1 - 2
- 0
4.0 | Refactor the requirements check
#530 opened by jrfnl - 5
`<file>` should be scan also for exact match, not only with configured endings
#526 opened by mvorisek - 2
Explicitly passing paths/files to command should still honour the configured exclusions
#498 opened by claudiu-cristea - 3
4.0 | Proposal: introduce class constants to (eventually) replace the static Tokens arrays
#500 opened by jrfnl - 0
QA: review stray variables after loops
#521 opened by jrfnl - 1
option --p not known
#516 opened by CollectionAgency - 4
- 5
Squiz.NamingConventions.ValidVariableName.NotCamelCaps + property promotion = false positive
#512 opened by sampsasaarela - 6
Named arg + Constant = "Type Constant is not used in this file" (phpcs v3.10.0)
#504 opened by LastDragon-ru - 1
3.10.0 added a bug with line identation
#505 opened by momala454 - 2