|
30 | 30 |
|
31 | 31 | <!-- |
32 | 32 | ############################################################################# |
33 | | - USE THE PHPCSDev, VariableAnalysis RULESETS |
| 33 | + USE THE PSR12, VariableAnalysis RULESETS |
34 | 34 | ############################################################################# |
35 | 35 | --> |
36 | 36 |
|
37 | 37 | <!-- Set minimum PHP version supported to PHP 5.4. --> |
38 | 38 | <config name="testVersion" value="5.4-"/> |
39 | 39 |
|
40 | | - <rule ref="PHPCSDev"> |
| 40 | + <rule ref="PSR12"> |
41 | 41 | <!-- This code base uses tab indentation instead of spaces. --> |
42 | 42 | <exclude name="Generic.WhiteSpace.DisallowTabIndent"/> |
43 | 43 |
|
44 | | - <!-- Don't enforce lining up the assignment operators in assignment blocks. --> |
45 | | - <exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning"/> |
46 | | - |
47 | | - <!-- Don't enforce lining up the double arrows in array declarations. |
48 | | - Possibly enforce this later once the sniff has been replaced by a better, more configurable version. --> |
49 | | - <exclude name="Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned"/> |
50 | | - |
51 | | - <!-- Don't enforce documentation (yet). --> |
52 | | - <exclude name="Generic.Commenting.DocComment"/> |
53 | | - <exclude name="PEAR.Commenting.ClassComment"/> |
54 | | - <exclude name="PEAR.Commenting.FileComment"/> |
55 | | - <exclude name="PEAR.Commenting.InlineComment"/> |
56 | | - |
57 | 44 | <!-- WIP: This is part of PSR12 and should probably be enforced, |
58 | 45 | but the codebase needs work before it can be enabled. --> |
59 | | - <exclude name="Generic.Files.LineLength.TooLong" /> |
| 46 | + <exclude name="Generic.Files.LineLength"/> |
| 47 | + |
| 48 | + <!-- Disable excessive function spacing requirements --> |
| 49 | + <exclude name="Squiz.WhiteSpace.FunctionSpacing"/> |
| 50 | + |
| 51 | + <!-- Project supports PHP 5.4+ which doesn't have constant visibility --> |
| 52 | + <exclude name="PSR12.Properties.ConstantVisibility"/> |
60 | 53 | </rule> |
61 | 54 |
|
62 | 55 | <rule ref="VariableAnalysis"/> |
|
0 commit comments