1+ <?xml version =" 1.0" ?>
2+ <ruleset name =" Strictest Coding Standards" >
3+
4+ <!-- Description -->
5+ <description >
6+ Enforces strict coding standards by combining multiple standards and custom rules.
7+ </description >
8+
9+ <!-- Directories and file patterns to ignore -->
10+ <exclude-pattern >vendor/*</exclude-pattern >
11+ <exclude-pattern >node_modules/*</exclude-pattern >
12+ <exclude-pattern >storage/*</exclude-pattern >
13+ <exclude-pattern >cache/*</exclude-pattern >
14+ <exclude-pattern >*.min.js</exclude-pattern >
15+
16+ <!-- Rulesets to use (add/remove as needed) -->
17+ <rule ref =" PSR12" />
18+ <rule ref =" Squiz" />
19+ <rule ref =" Generic" />
20+ <rule ref =" PEAR" />
21+ <rule ref =" Zend" />
22+ <rule ref =" MySource" />
23+ <rule ref =" PSR1" />
24+
25+ <!-- Optionally enable some stricter rules -->
26+ <rule ref =" Generic.Arrays.DisallowLongArraySyntax" />
27+ <rule ref =" Generic.Formatting.SpaceAfterNot" />
28+ <rule ref =" Squiz.Functions.GlobalFunction" />
29+ <rule ref =" Squiz.Functions.FunctionDuplicateArgument" />
30+ <rule ref =" Squiz.Scope.MethodScope" />
31+ <rule ref =" Squiz.WhiteSpace.SuperfluousWhitespace" />
32+ <rule ref =" Generic.PHP.ForbiddenFunctions" />
33+ <rule ref =" Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" />
34+
35+ <!-- Report errors as warnings for visibility, or adjust as needed -->
36+ <arg name =" report" value =" full" />
37+ <arg name =" colors" />
38+ <arg name =" encoding" value =" utf-8" />
39+
40+ <!-- Extensions to check -->
41+ <fileExtensions >
42+ <extension >php</extension >
43+ <extension >inc</extension >
44+ <extension >phtml</extension >
45+ </fileExtensions >
46+
47+ </ruleset >
0 commit comments