2017-01-27 14:53:54 +01:00
|
|
|
<?xml version="1.0"?>
|
2017-02-08 15:59:12 +01:00
|
|
|
<!-- PHP Codesniffer ruleset configuration -->
|
2017-01-27 14:53:54 +01:00
|
|
|
<ruleset name="icingaweb2">
|
|
|
|
<description>The default PSR-2 standard with specifically excluded non-critical sniffs</description>
|
|
|
|
<!-- Include the whole PSR-2 standard -->
|
2017-09-19 14:43:09 +02:00
|
|
|
<rule ref="PSR2"/>
|
2017-01-27 14:53:54 +01:00
|
|
|
<!-- Exclude patterns for PSR-2 Sniffs -->
|
2017-09-19 14:43:09 +02:00
|
|
|
<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>
|
2023-07-04 16:41:22 +02:00
|
|
|
<exclude-pattern>library/Icinga/Application/Test.php</exclude-pattern>
|
2020-11-12 09:38:50 +01:00
|
|
|
<exclude-pattern>library/Icinga/Application/StaticWeb.php</exclude-pattern>
|
2017-09-19 14:43:09 +02:00
|
|
|
<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>
|
2021-01-15 16:32:06 +01:00
|
|
|
<exclude-pattern>library/Icinga/Util/LessParser.php</exclude-pattern>
|
2017-09-19 14:43:09 +02:00
|
|
|
<exclude-pattern>modules/doc/library/Doc/Renderer/DocSectionRenderer.php</exclude-pattern>
|
|
|
|
<exclude-pattern>modules/monitoring/library/Monitoring/Plugin.php</exclude-pattern>
|
|
|
|
</rule>
|
2017-01-27 14:53:54 +01:00
|
|
|
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
|
|
|
|
<exclude-pattern>*/test/php/*</exclude-pattern>
|
|
|
|
</rule>
|
|
|
|
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
|
|
|
|
<exclude-pattern>*/test/php/*</exclude-pattern>
|
|
|
|
</rule>
|
|
|
|
<rule ref="PSR2.Namespaces.UseDeclaration.UseAfterNamespace">
|
|
|
|
<exclude-pattern>*/test/php/*</exclude-pattern>
|
|
|
|
<exclude-pattern>*/library/Icinga/Test/BaseTestCase.php</exclude-pattern>
|
|
|
|
</rule>
|
|
|
|
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
|
|
|
|
<exclude-pattern>*/application/views/helpers/*</exclude-pattern>
|
|
|
|
<exclude-pattern>*/library/Icinga/Web/Paginator/ScrollingStyle/SlidingWithBorder.php</exclude-pattern>
|
|
|
|
</rule>
|
|
|
|
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
|
|
|
|
<exclude-pattern>*/application/views/helpers/*</exclude-pattern>
|
|
|
|
<exclude-pattern>*/library/Icinga/Web/Paginator/ScrollingStyle/SlidingWithBorder.php</exclude-pattern>
|
|
|
|
</rule>
|
|
|
|
<rule ref="Generic.Files.LineLength.TooLong">
|
|
|
|
<exclude-pattern>*/modules/monitoring/library/Monitoring/Backend/Ido/Query/*</exclude-pattern>
|
2017-09-19 14:43:09 +02:00
|
|
|
<exclude-pattern>*/modules/monitoring/library/Monitoring/Backend/Livestatus/Query/*</exclude-pattern>
|
2017-01-27 14:53:54 +01:00
|
|
|
</rule>
|
|
|
|
</ruleset>
|