2 <ruleset name="OpenEMR Standard">
3 <description>PSR-12 (permissive)</description>
4 <arg name="tab-width" value="4" />
6 <exclude name="PSR1.Classes.ClassDeclaration"/>
7 <exclude name="Squiz.Classes.ValidClassName"/>
8 <exclude name="PSR1.Methods.CamelCapsMethodName"/>
9 <exclude name="Squiz.Scope.MethodScope"/>
10 <exclude name="PEAR.Functions.ValidDefaultValue"/>
11 <exclude name="PSR2.Classes.PropertyDeclaration"/>
12 <exclude name="Generic.NamingConventions.UpperCaseConstantName"/>
13 <exclude name="Squiz.WhiteSpace.ScopeClosingBrace"/> <!-- ~100 files need fixing from this -->
14 <exclude name="PSR12.Classes.ClosingBrace"/> <!-- similar to above comment -->
15 <exclude name="PSR2.Methods.MethodDeclaration.Underscore"/> <!-- added until ~94 methods are cleaned -->
18 <!-- Checks that the opening PHP tag is the first content in a file. -->
19 <rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" />
22 <!-- Code MUST use an indent of 4 spaces, and MUST NOT use tabs for indenting. -->
23 <rule ref="Generic.WhiteSpace.ScopeIndent">
25 <property name="ignoreIndentationTokens" type="array">
26 <element value="T_COMMENT"/>
27 <element value="T_DOC_COMMENT_OPEN_TAG" />
32 <exclude-pattern>*/sites/default/sqlconf.php</exclude-pattern>
33 <exclude-pattern>*/sites/default/documents/*</exclude-pattern>
34 <exclude-pattern>*/vendor/*</exclude-pattern>
35 <exclude-pattern>*/node_modules/*</exclude-pattern>
36 <exclude-pattern>*/public/assets/*</exclude-pattern>
37 <exclude-pattern>*/gacl/*</exclude-pattern>
38 <exclude-pattern>*/library/classes/fpdf/*</exclude-pattern>
39 <exclude-pattern>*/library/classes/smtp/*</exclude-pattern>
40 <exclude-pattern>*/library/classes/PDF_Label.php</exclude-pattern>
41 <exclude-pattern>*/src/Cqm/Qdm/*</exclude-pattern>