Updating PHPCS ruleset to match a better style guideline (blank lines for opening/closing braces)
ci/woodpecker/manual/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline failed
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user