|
9 | 9 | <!-- exclude sniffs that are extended by this standard -->
|
10 | 10 | <exclude name="PEAR.Functions.FunctionCallSignature"/>
|
11 | 11 | <exclude name="PSR2.Namespaces.UseDeclaration"/>
|
| 12 | + <!-- SlevomatCodingStandard.Classes.DisallowMultiPropertyDefinition supports autofixing --> |
| 13 | + <exclude name="PSR2.Classes.PropertyDeclaration.Multiple"/> |
12 | 14 | <!-- exclude sniffs that are disabled on purpose by this standard -->
|
13 | 15 | <exclude name="Symfony.Commenting.ClassComment.Missing"/>
|
14 | 16 | <exclude name="Symfony.Commenting.License"/>
|
|
66 | 68 |
|
67 | 69 | <!-- Require presence of constant visibility -->
|
68 | 70 | <rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility"/>
|
| 71 | + <!-- Forbid multi constant definition --> |
| 72 | + <rule ref="SlevomatCodingStandard.Classes.DisallowMultiConstantDefinition" /> |
| 73 | + <!-- Forbid multi property definition --> |
| 74 | + <rule ref="SlevomatCodingStandard.Classes.DisallowMultiPropertyDefinition" /> |
69 | 75 | <!-- Forbid empty lines after class/interface/trait opening and before closing braces -->
|
70 | 76 | <rule ref="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces">
|
71 | 77 | <properties>
|
|
77 | 83 | <rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
|
78 | 84 | <!-- report invalid format of inline phpDocs with @var -->
|
79 | 85 | <rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"/>
|
| 86 | + <!-- Forbid useless @inheritDoc comments --> |
| 87 | + <rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment"/> |
80 | 88 | <!-- Forbid assignments in conditions -->
|
81 | 89 | <rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
|
82 | 90 | <!-- Require consistent spacing for control structures -->
|
|
110 | 118 | </rule>
|
111 | 119 | <!-- Require global functions to be referenced via a fully qualified name -->
|
112 | 120 | <rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions"/>
|
| 121 | + <!-- Require static closures for microoptimization --> |
| 122 | + <rule ref="SlevomatCodingStandard.Functions.StaticClosure"/> |
113 | 123 | <!-- Forbid multiple use statements on same line -->
|
114 | 124 | <rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine"/>
|
115 | 125 | <!-- Require one newline around namespace declaration -->
|
|
0 commit comments