File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 16
16
<exclude name =" Symfony.Commenting.License" />
17
17
</rule >
18
18
19
+ <!-- Also include PSR12 -->
20
+ <rule ref =" PSR12" >
21
+ <!-- exclude sniffs that are disabled on purpose by this standard -->
22
+ <exclude name =" Generic.Files.LineLength.TooLong" />
23
+ <!-- not compatible with other rules we have later on -->
24
+ <exclude name =" PSR12.Classes.AnonClassDeclaration.SpaceAfterKeyword" />
25
+ <exclude name =" PSR12.ControlStructures.ControlStructureSpacing" />
26
+ <exclude name =" PSR12.Files.DeclareStatement" />
27
+ <exclude name =" PSR12.Operators.OperatorSpacing" />
28
+ </rule >
29
+
19
30
<!-- Forbid strings in `"` unless necessary -->
20
31
<rule ref =" Squiz.Strings.DoubleQuoteUsage.NotRequired" />
21
32
<!-- There must be at least one space around operators -->
140
151
</rule >
141
152
<!-- Forbid useless alias for classes, constants and functions -->
142
153
<rule ref =" SlevomatCodingStandard.Namespaces.UselessAlias" />
154
+ <!-- Require empty newlines before and after uses -->
155
+ <rule ref =" SlevomatCodingStandard.Namespaces.UseSpacing" >
156
+ <properties >
157
+ <property name =" linesCountBeforeFirstUse" value =" 1" />
158
+ <property name =" linesCountBetweenUseTypes" value =" 0" />
159
+ <property name =" linesCountAfterLastUse" value =" 1" />
160
+ </properties >
161
+ </rule >
143
162
<!-- Require the usage of assignment operators, eg `+=`, `.=` when possible -->
144
163
<rule ref =" SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator" />
145
164
<!-- Report ++ and minus-minus operators not used standalone -->
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ The MO4 Coding Standard is an extension of the [Symfony Coding Standard](http://
30
30
* doc blocks of class properties must be multiline and have exactly one ` @var ` annotation
31
31
32
32
### MO4.Formatting.AlphabeticalUseStatements
33
- * ` use ` statements must be sorted lexicographically, grouped by empty lines . The order function can be configured.
33
+ * ` use ` statements must be sorted lexicographically. The order function can be configured.
34
34
35
35
#### Configuration
36
36
The ` order ` property of the ` MO4.Formatting.AlphabeticalUseStatements ` sniff defines
You can’t perform that action at this time.
0 commit comments