|
3 | 3 |
|
4 | 4 | <description>A coding standard for projects in the PHP Parallel Lint organisation.</description>
|
5 | 5 |
|
6 |
| - <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/> |
| 6 | + <!-- |
| 7 | + ############################################################################# |
| 8 | + CHECK CODE STYLE AGAINST PSR12 |
| 9 | + https://www.php-fig.org/psr/psr-12/ |
| 10 | + ############################################################################# |
| 11 | + --> |
| 12 | + <rule ref="PSR12"> |
| 13 | + <!-- Constant visibility is a PHP 7.1 feature and cannot (yet) be used. --> |
| 14 | + <exclude name="PSR12.Properties.ConstantVisibility"/> |
| 15 | + </rule> |
| 16 | + |
| 17 | + <!-- ## Sniff specific configuration for sniffs included in PSR12 ## --> |
| 18 | + |
| 19 | + <rule ref="Generic.Files.LineLength"> |
| 20 | + <properties> |
| 21 | + <property name="lineLimit" value="125"/> |
| 22 | + <property name="absoluteLineLimit" value="200"/> |
| 23 | + </properties> |
| 24 | + </rule> |
| 25 | + |
| 26 | + |
| 27 | + <!-- |
| 28 | + ############################################################################# |
| 29 | + MISCELLANEOUS ADDITIONAL RULES |
| 30 | + ############################################################################# |
| 31 | + --> |
| 32 | + |
7 | 33 | <rule ref="PEAR.Functions.FunctionDeclaration"/>
|
8 | 34 | <rule ref="PEAR.Functions.FunctionCallSignature"/>
|
9 | 35 | <rule ref="PEAR.Functions.FunctionCallSignature.Indent">
|
|
15 | 41 | <rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket">
|
16 | 42 | <severity>0</severity>
|
17 | 43 | </rule>
|
18 |
| - <rule ref="PEAR.Functions.ValidDefaultValue"/> |
19 | 44 |
|
20 |
| - <rule ref="Generic.PHP.DisallowShortOpenTag"/> |
21 |
| - <rule ref="Generic.PHP.LowerCaseConstant"/> |
22 | 45 | <rule ref="Generic.PHP.NoSilencedErrors"/>
|
23 | 46 | <rule ref="Squiz.PHP.GlobalKeyword"/>
|
24 | 47 | <rule ref="Squiz.PHP.LowercasePHPFunctions"/>
|
25 | 48 | <rule ref="Squiz.PHP.NonExecutableCode"/>
|
26 | 49 |
|
27 | 50 | <rule ref="Generic.Strings.UnnecessaryStringConcat"/>
|
28 | 51 |
|
29 |
| - <rule ref="Generic.WhiteSpace.DisallowTabIndent"/> |
30 | 52 | <rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
|
31 | 53 |
|
32 | 54 | <rule ref="PEAR.Classes.ClassDeclaration"/>
|
33 | 55 |
|
34 |
| - <rule ref="Generic.ControlStructures.InlineControlStructure"/> |
35 | 56 | <rule ref="PEAR.ControlStructures.ControlSignature"/>
|
36 | 57 |
|
37 |
| - <rule ref="Generic.Files.LineLength"> |
38 |
| - <properties> |
39 |
| - <property name="lineLimit" value="125"/> |
40 |
| - <property name="absoluteLineLimit" value="200"/> |
41 |
| - </properties> |
42 |
| - </rule> |
43 | 58 | <rule ref="Zend.Files.ClosingTag"/>
|
44 | 59 |
|
45 | 60 | <rule ref="Generic.NamingConventions.ConstructorName"/>
|
46 |
| - <rule ref="Generic.NamingConventions.UpperCaseConstantName"/> |
47 | 61 |
|
48 | 62 | <rule ref="Generic.Metrics.NestingLevel"/>
|
49 | 63 | <rule ref="Generic.Metrics.CyclomaticComplexity"/>
|
|
0 commit comments