diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:39:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:39:39 +0000 |
commit | 8ca6cc32b2c789a3149861159ad258f2cb9491e3 (patch) | |
tree | 2492de6f1528dd44eaa169a5c1555026d9cb75ec /icingaweb2.ruleset.xml | |
parent | Initial commit. (diff) | |
download | icingaweb2-8ca6cc32b2c789a3149861159ad258f2cb9491e3.tar.xz icingaweb2-8ca6cc32b2c789a3149861159ad258f2cb9491e3.zip |
Adding upstream version 2.11.4.upstream/2.11.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'icingaweb2.ruleset.xml')
-rw-r--r-- | icingaweb2.ruleset.xml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/icingaweb2.ruleset.xml b/icingaweb2.ruleset.xml new file mode 100644 index 0000000..537a6be --- /dev/null +++ b/icingaweb2.ruleset.xml @@ -0,0 +1,51 @@ +<?xml version="1.0"?> +<!-- PHP Codesniffer ruleset configuration --> +<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"/> + <!-- 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/StaticWeb.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>library/Icinga/Util/LessParser.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> + <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> + <exclude-pattern>*/modules/monitoring/library/Monitoring/Backend/Livestatus/Query/*</exclude-pattern> + </rule> +</ruleset> |