-
Notifications
You must be signed in to change notification settings - Fork 1
/
ruleset.xml
29 lines (25 loc) · 1.31 KB
/
ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0"?>
<ruleset name="PSR12-WordPress">
<description>PSR-12 coding standard with some WordPress flavour.</description>
<!-- Include the whole PSR12 standard -->
<rule ref="PSR12" />
<!-- Include some rules I want to enforce -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="Generic.Commenting.DocComment.ShortNotCapital" />
<rule ref="Generic.Formatting.MultipleStatementAlignment.IncorrectWarning" />
<rule ref="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
<rule ref="NormalizedArrays.Arrays.ArrayBraceSpacing" />
<rule ref="NormalizedArrays.Arrays.CommaAfterLast" />
<rule ref="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<rule ref="Universal.Operators.StrictComparisons" />
<rule ref="Universal.WhiteSpace.CommaSpacing" />
<rule ref="WordPress.Arrays.ArrayDeclarationSpacing" />
<rule ref="WordPress.Arrays.ArrayIndentation.ItemNotAligned" />
<rule ref="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
<rule ref="WordPress.PHP.YodaConditions.NotYoda" />
<!-- Exclude some rules -->
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength.TooLong" />
</rule>
</ruleset>