slevomat/coding-standard
Slevomat Coding Standard for PHP_CodeSniffer provides many useful sniffs
PHPMIT
Issues
- 1
SlevomatCodingStandard.PHP.UselessParentheses.UselessParentheses - false positive with modulo operator
#1678 opened by rvock - 1
SlevomatCodingStandard.PHP.UselessParentheses.UselessParentheses - false positive
#1674 opened by bkdotcom - 1
UnionTypeHintFormatSniff Intersection Types
#1677 opened by earthiverse - 3
PHPStan type-aliases are converted to FQCN
#1676 opened by mxr576 - 0
Allow ignoring JumpStatementsSpacing after T_OPEN_TAG
#1675 opened by MatzeKitt - 0
- 2
AlphabeticallySortedUses disagrees with VSCode on alphabetical order of '\' and '_' characters
#1667 opened by joachim-n - 0
SlevomatCodingStandard.PHP.UselessParentheses.UselessParentheses false positive producing invalid syntax
#1672 opened by whitefang57 - 0
`SlevomatCodingStandard.Namespaces.UnusedUses` not supporting docblocks or inline comments
#1671 opened by n8-dev - 0
Add Disallow assignment in arrays sniff
#1670 opened by rrehbein - 0
`SlevomatCodingStandard.Classes.RequireAbstractOrFinal` should exclude classes with `@final` annotation
#1669 opened by asispts - 4
`SlevomatCodingStandard\Helpers\TokenHelper#findPrevious()` is very expensive, and chokes on files with many `use` statements
#1657 opened by Ocramius - 3
TypeHints.UnionTypeHintFormat seems to crash
#1664 opened by ghnp5 - 1
Some actions are outdated
#1668 opened by szepeviktor - 1
- 0
Multiline attribute arguments
#1644 opened by mstrelan - 2
False positive SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch.NonCapturingCatchRequired
#1647 opened by Chi-teck - 1
Better detection of unused variable
#1633 opened by AlexKratky - 1
- 1
`SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse` marks `Psl\Type\null` as unused
#1631 opened by simPod - 1
False negative SlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperator
#1650 opened by rmikalkenas - 1
SlevomatCodingStandard.Functions.RequireTrailingCommaInCall doesn't report missing commas if the last param is array function
#1652 opened by sampsasaarela - 1
Type mismatch in `EmptyCommentSniff::getCommentContent()`
#1655 opened by roslov - 1
SlevomatCodingStandard.Commenting.UselessFunctionDocComment not working with array param
#1663 opened by sampsasaarela - 0
Enum case casing sniff
#1649 opened by dereuromark - 1
False positive and false fix for `DisallowYodaComparison` via `<?=` echo short tag
#1658 opened by herndlm - 1
How to pass empty array for property?
#1659 opened by darius-v - 3
Can't document the return of a function with `@var`
#1660 opened by devnix - 2
- 2
Feature request: Forbidden classes
#1653 opened by michnovka - 3
- 5
Useless parentheses in new class
#1662 opened by farhadsakhaei - 3
possible false positive-> newlinesCountBetweenOpenTagAndDeclare for SlevomatCodingStandard.TypeHints.DeclareStrictTypes
#1648 opened by Pionell - 2
PHP CodeSniffer alternative
#1645 opened by alexandr-macovchin - 5
`squizlabs/PHP_CodeSniffer` is abandoned
#1640 opened by LordSimal - 3
PHP_Codesniffer has been abandoned - new repo is PHPCSStandards/PHP_CodeSniffer
#1642 opened by bkdotcom - 5
- 2
- 0
SlevomatCodingStandard.Commenting.DocCommentSpacing crashes when using annotation groups and double quotes in text before annotations
#1643 opened by kkmuffme - 1
`SlevomatCodingStandard.Namespaces.UnusedUses` cannot handle properties with (nullable) intersection types
#1639 opened by kapersoft - 3
New Sniff Idea: Remove useless cast in return
#1634 opened by finn-matti - 2
[Feature] Consistent foreach style
#1638 opened by dereuromark - 3
ConstantSpacingSniff warning
#1620 opened by enumag - 0
- 6
- 3
Unable to annotate class constant with `@var`
#1615 opened by janedbal - 0
Require non-whitelisted namespaces to use an alias
#1619 opened by TravisCarden - 0
Arbitrary error messages for SlevomatCodingStandard.PHP.ForbiddenClasses.forbiddenClasses
#1618 opened by TravisCarden - 0
- 0
VSCode PR diffs
#1614 opened by mikebronner