-
Notifications
You must be signed in to change notification settings - Fork 10
/
phpcs.xml
92 lines (86 loc) · 4.81 KB
/
phpcs.xml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0"?>
<ruleset name="DD Trace PHP">
<description>Sniffs for DD Trace PHP</description>
<file>./</file>
<exclude-pattern>build/packages/*</exclude-pattern>
<rule ref="PSR12"/>
<rule ref="PSR12.Properties.ConstantVisibility.NotFound">
<severity>0</severity>
</rule>
<!-- class preloader does not work otherwise -->
<rule ref="PSR12.Files.FileHeader.IncorrectOrder">
<severity>0</severity>
</rule>
<rule ref="Generic.Commenting.Todo"/>
<rule ref="Generic.Commenting.Fixme"/>
<rule ref="Generic.Commenting.DocComment.MissingShort">
<severity>0</severity>
</rule>
<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>tests/Integration/ErrorReporting/ErrorReportingTest.php</exclude-pattern>
<exclude-pattern>tests/Integrations/*</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>tests/Composer/app/custom_autoloaders.php</exclude-pattern>
<exclude-pattern>tests/Integration/ErrorReporting/*</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>*/Span.php</exclude-pattern>
<exclude-pattern>src/Integrations/Integrations/MongoDB/MongoDBIntegration.php</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>bridge/autoload.php</exclude-pattern>
<exclude-pattern>build/packages/*</exclude-pattern>
<exclude-pattern>ext/*</exclude-pattern>
<exclude-pattern>datadog-setup.php</exclude-pattern>
<exclude-pattern>examples/long-running/long-running-script.php</exclude-pattern>
<exclude-pattern>signalfx-setup.php</exclude-pattern>
<exclude-pattern>src/api/GlobalTracer.php</exclude-pattern>
<exclude-pattern>src/DDTrace/Tracer.php</exclude-pattern>
<exclude-pattern>tests/api/bootstrap.php</exclude-pattern>
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
<exclude-pattern>tests/Composer/app/preload.ddtrace.php</exclude-pattern>
<exclude-pattern>tests/Integration/CurrentContextAccess/</exclude-pattern>
<exclude-pattern>tests/Integration/ErrorReporting/scripts/</exclude-pattern>
<exclude-pattern>tests/Integration/LongRunning/long_running_script_manual.php</exclude-pattern>
<exclude-pattern>tests/Integration/LongRunning/long_running_script_manual.php</exclude-pattern>
<exclude-pattern>tests/Integration/LongRunning/long_running_script_with_trace_function.php</exclude-pattern>
<exclude-pattern>tests/Integrations/PHPRedis/V3/*Test.php</exclude-pattern>
<exclude-pattern>tests/Integrations/PHPRedis/V4/*Test.php</exclude-pattern>
<exclude-pattern>tests/Integrations/PHPRedis/V5/*Test.php</exclude-pattern>
<exclude-pattern>tests/internal-api-stress-test.php</exclude-pattern>
<exclude-pattern>tests/randomized/analyze-results.php</exclude-pattern>
<exclude-pattern>tests/randomized/app/public/long_running_script.php</exclude-pattern>
<exclude-pattern>tests/randomized/generate-scenarios.php</exclude-pattern>
<exclude-pattern>tests/randomized/lib/RequestTargetsGenerator.php</exclude-pattern>
</rule>
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore">
<exclude-pattern>*.stub.php</exclude-pattern>
</rule>
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine">
<exclude-pattern>*.stub.php</exclude-pattern>
</rule>
<rule ref="PSR2.Classes.ClassDeclaration.OpenBraceNewLine">
<exclude-pattern>*.stub.php</exclude-pattern>
</rule>
<!-- PHP compatibility checks -->
<config name="testVersion" value="5.4-7.3"/>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tests/stubs/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>bridge/_generated_api.php</exclude-pattern>
<exclude-pattern>bridge/_generated_integrations.php</exclude-pattern>
<exclude-pattern>bridge/_generated_tracer.php</exclude-pattern>
<exclude-pattern>bridge/_generated_tracer_api.php</exclude-pattern>
<exclude-pattern>bridge/dd_register_optional_deps_autoloader.php</exclude-pattern>
<exclude-pattern>dockerfiles/*</exclude-pattern>
<exclude-pattern>playground*.php</exclude-pattern>
<exclude-pattern>run-tests.php</exclude-pattern>
<exclude-pattern>tests/AutoInstrumentation</exclude-pattern>
<exclude-pattern>tests/ext/*</exclude-pattern>
<exclude-pattern>tests/Frameworks/*/Version_*/*</exclude-pattern>
<exclude-pattern>tests/Integrations/PCNTL/scripts/</exclude-pattern>
<exclude-pattern>tests/overhead/*</exclude-pattern>
<exclude-pattern>tmp</exclude-pattern>
</ruleset>