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
<!-- Include the whole PSR12 standard -->
<rule ref="PSR12" />
<!-- Include some rules I want to enforce -->
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' />
2023-08-31 09:29:21 +00:00
<rule ref='NormalizedArrays.Arrays.ArrayBraceSpacing' />
<rule ref='NormalizedArrays.Arrays.CommaAfterLast' />
2022-05-03 15:14:08 +00:00
<rule ref='PEAR.Functions.FunctionCallSignature.CloseBracketLine' />
<rule ref='PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket' />
2023-08-31 09:29:21 +00:00
<rule ref='Universal.Arrays.DisallowShortArraySyntax' />
<rule ref='Universal.Operators.StrictComparisons' />
<rule ref='Universal.WhiteSpace.CommaSpacing' />
<rule ref='WordPress.Arrays.ArrayDeclarationSpacing' />
2023-01-28 13:26:01 +00:00
<rule ref='WordPress.Arrays.ArrayIndentation.ItemNotAligned' />
2022-05-03 15:14:08 +00:00
<rule ref='WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned' />
<rule ref='WordPress.PHP.YodaConditions.NotYoda' />
<!-- Exclude some rules -->
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength.TooLong" />
</rule>
</ruleset>