-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathruleset.xml
More file actions
41 lines (36 loc) · 1.66 KB
/
ruleset.xml
File metadata and controls
41 lines (36 loc) · 1.66 KB
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
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/contributte/qa/ruleset-8.2.xml"/>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Contributte\NewRelic"/>
<element key="tests" value="Tests"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Classes.SuperfluousTraitNaming.SuperfluousSuffix">
<exclude-pattern>/src/RUM/RUMControlTrait.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint">
<exclude-pattern>/src/Tracy/Logger.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable.DisallowedSuperGlobalVariable">
<exclude-pattern>/src/Environment.php</exclude-pattern>
</rule>
<!-- RUM is an abbreviation (Real User Monitoring) -->
<rule ref="Generic.NamingConventions.CamelCapsFunctionName.ScopeNotCamelCaps">
<exclude-pattern>/src/RUM/RUMControlTrait.php</exclude-pattern>
<exclude-pattern>/src/DI/NewRelicExtension.php</exclude-pattern>
</rule>
<!-- NewRelic API uses generic array types -->
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification">
<exclude-pattern>/src/Agent/Agent.php</exclude-pattern>
<exclude-pattern>/src/Agent/ProductionAgent.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification">
<exclude-pattern>/src/Agent/Agent.php</exclude-pattern>
<exclude-pattern>/src/Agent/ProductionAgent.php</exclude-pattern>
</rule>
<exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>