Updating PHPCS ruleset to match a better style guideline (blank lines for opening/closing braces)
ci/woodpecker/manual/woodpecker Pipeline failed

This commit is contained in:
2026-07-21 13:26:12 -04:00
parent 936cf80ceb
commit 61900e22c6
8 changed files with 38 additions and 27 deletions
+13 -1
View File
@@ -16,13 +16,25 @@
<exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine"/>
<exclude name="PSR12.Classes.OpeningBraceSpace.Found"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnNewLine"/>
<exclude name="Generic.Files.LineLength"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine"/>
</rule>
<!-- Require opening braces to be on the same line (1TBS / K&R style) -->
<rule ref="Generic.Classes.OpeningBraceSameLine"/>
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"/>
<!-- Enforce exactly 1 blank line before/after a class closing/opening brace -->
<rule ref="Squiz.WhiteSpace.ClassOpeningSpacing">
<properties>
<property name="spacing" value="1"/>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.ClassClosingSpacing">
<properties>
<property name="spacing" value="1"/>
</properties>
</rule>
<!-- Enforce 2-space indentation instead of 4 -->
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>