-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
35 lines (32 loc) · 1.81 KB
/
Copy pathphpcs.xml
File metadata and controls
35 lines (32 loc) · 1.81 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
<?xml version="1.0"?>
<ruleset name="mg">
<description>
mg style gate: PSR-12, reached incrementally (see git history) and kept
green via phpcbf. The excludes below are PSR-12 sniffs mg does not yet
satisfy AND phpcbf cannot auto-fix (they need manual code changes).
Remove an exclude once its violations are cleaned up.
</description>
<file>classes</file>
<file>wwwroot</file>
<file>prepend.php</file>
<file>Tests</file>
<file>tools</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/Tests/_output/*</exclude-pattern>
<exclude-pattern>*/Tests/Support/_generated/*</exclude-pattern>
<!-- Codeception calls _before() and _after() by those exact names. -->
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern>*/Tests/*</exclude-pattern>
</rule>
<rule ref="PSR12">
<!-- Pending manual cleanup (violation counts at adoption, 2026-07-20): -->
<exclude name="Generic.Files.LineLength"/> <!-- 83: long lines (SQL, etc.) -->
<exclude name="PSR1.Classes.ClassDeclaration"/> <!-- 9: missing namespace / multiple classes per file -->
<exclude name="Squiz.Scope.MethodScope"/> <!-- 7: methods missing visibility -->
<exclude name="PSR1.Files.SideEffects"/> <!-- 6: declaration + side effects in one file -->
<exclude name="PSR12.Classes.ClosingBrace"/> <!-- 5 -->
<exclude name="Squiz.ControlStructures.ControlSignature"/> <!-- 2 -->
<exclude name="PSR12.Properties.ConstantVisibility"/> <!-- 1: constant missing visibility -->
<exclude name="Generic.NamingConventions.UpperCaseConstantName"/> <!-- 1 -->
</rule>
</ruleset>