get rid of most of the checkstyle warnings

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-24 13:50:45 +01:00
parent 30f5902b88
commit 7416a41a42
41 changed files with 129 additions and 119 deletions

View File

@@ -9,10 +9,26 @@
<rule ref="PSR2">
<exclude name="Generic.WhiteSpace.DisallowTabIndent" />
<exclude name="Generic.Files.LineLength" />
<exclude name="Generic.ControlStructures.InlineControlStructure.Discouraged" />
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
<exclude
name="Generic.ControlStructures.InlineControlStructure" />
<exclude
name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen" />
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine" />
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>lib/Froxlor/Settings.php</exclude-pattern>
<exclude-pattern>lib/Froxlor/FileDir.php</exclude-pattern>
<exclude-pattern>lib/Froxlor/Validate/Validate.php</exclude-pattern>
<exclude-pattern>lib/Froxlor/Database/Database.php</exclude-pattern>
<exclude-pattern>lib/Froxlor/UI/Response.php</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
</rule>
</ruleset>