2 <ruleset name="OpenEMR Standard">
3 <description>PSR2 (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 -->
16 <!-- Checks that the opening PHP tag is the first content in a file. -->
17 <rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" />
19 <!-- Code MUST use an indent of 4 spaces, and MUST NOT use tabs for indenting. -->
20 <rule ref="Generic.WhiteSpace.ScopeIndent">
22 <property name="ignoreIndentationTokens" type="array" value="T_COMMENT,T_DOC_COMMENT_OPEN_TAG" />
26 <exclude-pattern>*/vendor/*</exclude-pattern>
27 <exclude-pattern>*/gacl/*</exclude-pattern>
28 <exclude-pattern>*/bower_components/*</exclude-pattern>
29 <exclude-pattern>*/node_modules/*</exclude-pattern>
30 <exclude-pattern>*/public/assets/*</exclude-pattern>
31 <exclude-pattern>*/Documentation/*</exclude-pattern>
32 <exclude-pattern>*/tests/*</exclude-pattern>
33 <exclude-pattern>*/images/*</exclude-pattern>
34 <exclude-pattern>*/library/html2pdf/*</exclude-pattern>
35 <exclude-pattern>*/library/classes/fpdf/*</exclude-pattern>
36 <exclude-pattern>*/library/classes/smtp/*</exclude-pattern>
37 <exclude-pattern>*/library/classes/PDF_Label.php</exclude-pattern>
38 <exclude-pattern>*/library/custom_template/*</exclude-pattern>
39 <exclude-pattern>*/library/fonts/*</exclude-pattern>