Create ruleset.xml

This commit is contained in:
grandeljay 2022-05-03 17:14:08 +02:00
parent 37d55c5c87
commit c1b0cf337d

23
ruleset.xml Normal file
View 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>