-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from jpwhite4/update_rules
Update rules to exclude restrictions on control structure indentation.
- Loading branch information
Showing
1 changed file
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,29 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="XDMoD Standard"> | ||
<description>XDMoD PHP coding standard</description> | ||
<rule ref="PSR1"/> | ||
<rule ref="PSR2"/> | ||
<rule ref="PSR1">? | ||
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" /> | ||
</rule> | ||
<rule ref="PSR2"> | ||
<exclude name="PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket" /> | ||
<exclude name="PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose" /> | ||
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace" /> | ||
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace" /> | ||
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" /> | ||
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" /> | ||
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis" /> | ||
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword" /> | ||
<exclude name="Squiz.ControlStructures.ForEachLoopDeclaration.SpaceAfterOpen" /> | ||
<exclude name="Squiz.ControlStructures.ForEachLoopDeclaration.SpaceBeforeClose" /> | ||
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose" /> | ||
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen" /> | ||
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpenBrace" /> | ||
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps" /> | ||
</rule> | ||
<rule ref="Generic.Files.LineLength"> | ||
<properties> | ||
<property name="lineLimit" value="512"/> | ||
<property name="absoluteLineLimit" value="0"/> | ||
</properties> | ||
</rule> | ||
</ruleset> |