Create ruleset.xml
This commit is contained in:
parent
37d55c5c87
commit
c1b0cf337d
1 changed files with 23 additions and 0 deletions
23
ruleset.xml
Normal file
23
ruleset.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<ruleset name="wishthis">
|
||||
<description>PSR-12 conding 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.DisallowShortArraySyntax.Found' />
|
||||
<rule ref='Generic.Formatting.MultipleStatementAlignment.IncorrectWarning' />
|
||||
<rule ref='Generic.Formatting.MultipleStatementAlignment.NotSameWarning' />
|
||||
<rule ref='PEAR.Functions.FunctionCallSignature.CloseBracketLine' />
|
||||
<rule ref='PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket' />
|
||||
<rule ref='WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned' />
|
||||
<rule ref='WordPress.PHP.StrictComparisons.LooseComparison' />
|
||||
<rule ref='WordPress.PHP.YodaConditions.NotYoda' />
|
||||
|
||||
<!-- Exclude some rules -->
|
||||
<rule ref="PSR12">
|
||||
<exclude name="Generic.Files.LineLength.TooLong" />
|
||||
</rule>
|
||||
</ruleset>
|
Loading…
Reference in a new issue