Skip to content
Permalink
Browse files

style: Update icingaweb2.ruleset.xml

So allow common style in our code base.
  • Loading branch information...
lazyfrosch authored and lippserd committed Sep 19, 2017
1 parent cf4c830 commit 4bffcf1ba5c094c4362c6adb75868066149e3d7e
Showing with 21 additions and 1 deletion.
  1. +21 −1 icingaweb2.ruleset.xml
@@ -3,8 +3,27 @@
<ruleset name="icingaweb2">
<description>The default PSR-2 standard with specifically excluded non-critical sniffs</description>
<!-- Include the whole PSR-2 standard -->
<rule ref="PSR2" />
<rule ref="PSR2"/>
<!-- Exclude patterns for PSR-2 Sniffs -->
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<severity>0</severity>
</rule>
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<severity>0</severity>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<severity>0</severity>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>library/Icinga/Application/Cli.php</exclude-pattern>
<exclude-pattern>library/Icinga/Application/EmbeddedWeb.php</exclude-pattern>
<exclude-pattern>library/Icinga/Application/functions.php</exclude-pattern>
<exclude-pattern>library/Icinga/Application/LegacyWeb.php</exclude-pattern>
<exclude-pattern>library/Icinga/Application/Web.php</exclude-pattern>
<exclude-pattern>library/Icinga/File/Pdf.php</exclude-pattern>
<exclude-pattern>modules/doc/library/Doc/Renderer/DocSectionRenderer.php</exclude-pattern>
<exclude-pattern>modules/monitoring/library/Monitoring/Plugin.php</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>*/test/php/*</exclude-pattern>
</rule>
@@ -25,5 +44,6 @@
</rule>
<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>*/modules/monitoring/library/Monitoring/Backend/Ido/Query/*</exclude-pattern>
<exclude-pattern>*/modules/monitoring/library/Monitoring/Backend/Livestatus/Query/*</exclude-pattern>
</rule>
</ruleset>

0 comments on commit 4bffcf1

Please sign in to comment.
You can’t perform that action at this time.