|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<ruleset name="pcsg-generated-ruleset"> |
3 | | - <description>Created with the PHP Coding Standard Generator. http://edorian.github.com/php-coding-standard-generator/ |
4 | | - </description> |
| 2 | +<ruleset name="Project Standard"> |
| 3 | + <description>PSR-12 + focused Generic/Squiz rules</description> |
| 4 | + |
| 5 | + <arg name="colors" value="1"/> |
| 6 | + <arg name="parallel" value="80"/> |
| 7 | + |
| 8 | + <fileExtensions> |
| 9 | + <extension>php</extension> |
| 10 | + </fileExtensions> |
| 11 | + <exclude-pattern>vendor/*</exclude-pattern> |
| 12 | + <exclude-pattern>var/*</exclude-pattern> |
| 13 | + <exclude-pattern>build/*</exclude-pattern> |
| 14 | + <exclude-pattern>coverage/*</exclude-pattern> |
| 15 | + |
| 16 | + <rule ref="PSR12"/> |
5 | 17 | <rule ref="Generic.Classes.DuplicateClassName"/> |
6 | 18 | <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/> |
7 | 19 | <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/> |
|
19 | 31 | </properties> |
20 | 32 | </rule> |
21 | 33 | <rule ref="Generic.Formatting.DisallowMultipleStatements"/> |
22 | | - <rule ref="Generic.Formatting.MultipleStatementAlignment"> |
23 | | - <properties> |
24 | | - <property name="ignoreMultiLine" value="true"/> |
25 | | - </properties> |
26 | | - </rule> |
27 | 34 | <rule ref="Generic.Formatting.SpaceAfterCast"/> |
28 | 35 | <rule ref="Generic.Metrics.CyclomaticComplexity"/> |
29 | 36 | <rule ref="Generic.Metrics.NestingLevel"> |
|
40 | 47 | <rule ref="Generic.Strings.UnnecessaryStringConcat"/> |
41 | 48 | <rule ref="Generic.WhiteSpace.DisallowTabIndent"/> |
42 | 49 | <rule ref="Generic.WhiteSpace.ScopeIndent"/> |
43 | | - <rule ref="MySource.PHP.EvalObjectFactory"/> |
44 | | - <rule ref="PEAR.Commenting.InlineComment"/> |
45 | | - <rule ref="PEAR.ControlStructures.ControlSignature"/> |
46 | | - <rule ref="PEAR.NamingConventions.ValidClassName"/> |
47 | | - <rule ref="PEAR.WhiteSpace.ObjectOperatorIndent"/> |
48 | | - <rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/> |
49 | | - <rule ref="PSR1.Classes.ClassDeclaration"/> |
50 | | - <rule ref="PSR1.Files.SideEffects"/> |
51 | | - <rule ref="PSR2.Classes.ClassDeclaration"/> |
52 | | - <rule ref="PSR2.Classes.PropertyDeclaration"/> |
53 | | - <rule ref="PSR2.ControlStructures.ElseIfDeclaration"/> |
54 | | - <rule ref="PSR2.ControlStructures.SwitchDeclaration"/> |
55 | | - <rule ref="PSR2.Files.EndFileNewline"/> |
56 | | - <rule ref="PSR2.Methods.MethodDeclaration"/> |
57 | | - <rule ref="PSR2.Namespaces.NamespaceDeclaration"/> |
58 | | - <rule ref="PSR2.Namespaces.UseDeclaration"/> |
59 | 50 | <rule ref="Squiz.PHP.DisallowMultipleAssignments"/> |
60 | 51 | <rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops"/> |
61 | 52 | <rule ref="Squiz.PHP.Eval"/> |
|
0 commit comments