|
5 | 5 | <file>src</file> |
6 | 6 | <file>tests</file> |
7 | 7 |
|
| 8 | + <!-- Show progress and output sniff names on violation, and add colours --> |
| 9 | + <arg value="p" /> |
| 10 | + <arg name="colors" /> |
| 11 | + <arg value="s" /> |
| 12 | + |
8 | 13 | <rule ref="PSR2"> |
9 | 14 | <!-- Allow non camel cased method names - some base SS method names are PascalCase or snake_case --> |
10 | 15 | <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/> |
|
75 | 80 | <exclude name="SlevomatCodingStandard.ControlStructures.DisallowShortTernaryOperator.DisallowedShortTernaryOperator"/> |
76 | 81 | <!-- You are not making me go \PHP_EOL --> |
77 | 82 | <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants.NonFullyQualified"/> |
| 83 | + <!-- We can't declare classes as abstract/final because that would remove the ability for devs to extend our --> |
| 84 | + <!-- classes as they see fit --> |
| 85 | + <exclude name="SlevomatCodingStandard.Classes.RequireAbstractOrFinal.ClassNeitherAbstractNorFinal"/> |
| 86 | + <!-- We do not require trailing commas on multiline methods. Both rules disabled, as we'll allow folks to --> |
| 87 | + <!-- add them if they want them, but we don't enforce either way --> |
| 88 | + <exclude name="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall.MissingTrailingComma"/> |
| 89 | + <exclude name="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall.DisallowedTrailingComma"/> |
| 90 | + <exclude name="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration.MissingTrailingComma"/> |
| 91 | + <exclude name="SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration.DisallowedTrailingComma"/> |
| 92 | + <exclude name="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse.MissingTrailingComma"/> |
| 93 | + <exclude name="SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse.DisallowedTrailingComma"/> |
| 94 | + <!-- Length does not determine complexity. We do not care if methods or files are long --> |
| 95 | + <exclude name="SlevomatCodingStandard.Functions.FunctionLength.FunctionLength"/> |
| 96 | + <exclude name="SlevomatCodingStandard.Files.FunctionLength.FunctionLength"/> |
| 97 | + <exclude name="SlevomatCodingStandard.Files.FileLength.FileTooLong"/> |
| 98 | + <exclude name="SlevomatCodingStandard.Classes.ClassLength.ClassTooLong"/> |
| 99 | + <!-- We'll decide what is complex --> |
| 100 | + <exclude name="SlevomatCodingStandard.Complexity.Cognitive.ComplexityTooHigh"/> |
| 101 | + <!-- We require property promotion --> |
| 102 | + <exclude name="SlevomatCodingStandard.Classes.DisallowConstructorPropertyPromotion.DisallowedConstructorPropertyPromotion"/> |
78 | 103 | </rule> |
79 | 104 |
|
80 | 105 | <rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"> |
|
0 commit comments