Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop support for slevomat/coding-standard v6 #385

Merged
merged 2 commits into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions CakePHP/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@
<property name="linesCountBeforeDeclare" value="0"/>
<property name="linesCountAfterDeclare" value="1"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
<!-- Property names used in slevomat/coding-standard v6 -->
<property name="newlinesCountAfterDeclare" value="2"/>
<property name="newlinesCountBetweenOpenTagAndDeclare" value="1"/>
</properties>
<exclude-pattern>*/config/*</exclude-pattern>
<exclude-pattern>*/templates/*</exclude-pattern>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"require": {
"php": ">=7.2.0",
"slevomat/coding-standard": "^6.3.6 || ^7.0 || ^8.0",
"slevomat/coding-standard": "^7.0 || ^8.0",
"squizlabs/php_codesniffer": "^3.6"
},
"require-dev": {
Expand Down
11 changes: 5 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CakePHP ruleset

The CakePHP standard contains 136 sniffs
The CakePHP standard contains 135 sniffs

CakePHP (19 sniffs)
-------------------
Expand Down Expand Up @@ -52,22 +52,22 @@ Generic (25 sniffs)
- Generic.WhiteSpace.IncrementDecrementSpacing
- Generic.WhiteSpace.ScopeIndent

PEAR (2 sniffs)
PEAR (1 sniff)
---------------
- PEAR.Functions.ValidDefaultValue
- PEAR.NamingConventions.ValidFunctionName

PSR1 (3 sniffs)
---------------
- PSR1.Classes.ClassDeclaration
- PSR1.Files.SideEffects
- PSR1.Methods.CamelCapsMethodName

PSR12 (16 sniffs)
PSR12 (17 sniffs)
-----------------
- PSR12.Classes.AnonClassDeclaration
- PSR12.Classes.ClassInstantiation
- PSR12.Classes.ClosingBrace
- PSR12.Classes.OpeningBraceSpace
- PSR12.ControlStructures.BooleanOperatorPlacement
- PSR12.ControlStructures.ControlStructureSpacing
- PSR12.Files.DeclareStatement
Expand Down Expand Up @@ -129,7 +129,7 @@ SlevomatCodingStandard (32 sniffs)
- SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing
- SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable

Squiz (29 sniffs)
Squiz (28 sniffs)
-----------------
- Squiz.Arrays.ArrayBracketSpacing
- Squiz.Classes.ClassFileName
Expand All @@ -144,7 +144,6 @@ Squiz (29 sniffs)
- Squiz.Functions.FunctionDeclarationArgumentSpacing
- Squiz.Functions.LowercaseFunctionKeywords
- Squiz.Functions.MultiLineFunctionDeclaration
- Squiz.NamingConventions.ValidFunctionName
- Squiz.Operators.ValidLogicalOperators
- Squiz.PHP.DisallowSizeFunctionsInLoops
- Squiz.PHP.Eval
Expand Down