wishthis/ruleset.xml
2023-01-28 14:26:01 +01:00

26 lines
1.2 KiB
XML

<?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.DisallowShortArraySyntax.Found' />
<rule ref='Generic.Commenting.DocComment.ShortNotCapital' />
<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.ArrayIndentation.ItemNotAligned' />
<rule ref='WordPress.Arrays.CommaAfterArrayItem.NoComma' />
<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>