wishthis/ruleset.xml

30 lines
1.3 KiB
XML
Raw Normal View History

2022-05-03 15:14:08 +00:00
<?xml version="1.0"?>
2023-01-28 13:26:01 +00:00
<ruleset name="PSR12-WordPress">
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
2024-01-16 15:38:05 +00:00
<!-- Include the whole PSR12 standard -->
2022-05-03 15:14:08 +00:00
<rule ref="PSR12" />
<!-- Include some rules I want to enforce -->
2024-01-16 15:38:05 +00:00
<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" />
2022-05-03 15:14:08 +00:00
<!-- Exclude some rules -->
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength.TooLong" />
</rule>
</ruleset>