File: icingaweb2.ruleset.xml

package info (click to toggle)
icingaweb2 2.6.2-3~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 32,380 kB
  • sloc: php: 194,226; sql: 200; sh: 186; xml: 163; makefile: 54
file content (49 lines) | stat: -rw-r--r-- 2,644 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?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/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>
    <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>