wishthis/ruleset.xml

25 lines
1 KiB
XML
Raw Normal View History

2022-05-03 15:14:08 +00:00
<?xml version="1.0"?>
<ruleset name="wishthis">
2022-05-29 09:15:37 +00:00
<description>PSR-12 coding standard with some WordPress flavour.</description>
2022-05-03 15:14:08 +00:00
<!-- Include the whole PSR12 standard -->
<rule ref="PSR12" />
<!-- Include some rules I want to enforce -->
<rule ref='Generic.Arrays.DisallowShortArraySyntax.Found' />
2022-05-29 09:15:37 +00:00
<rule ref='Generic.Commenting.DocComment.ShortNotCapital' />
2022-05-03 15:14:08 +00:00
<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>