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">
23 <element value="T_COMMENT"/>
24 <element value="T_DOC_COMMENT_OPEN_TAG" />
29 <exclude-pattern>*/vendor/*</exclude-pattern>
30 <exclude-pattern>*/bower_components/*</exclude-pattern>
31 <exclude-pattern>*/node_modules/*</exclude-pattern>
32 <exclude-pattern>*/public/assets/*</exclude-pattern>
33 <exclude-pattern>*/gacl/*</exclude-pattern>
34 <exclude-pattern>*/library/classes/fpdf/*</exclude-pattern>
35 <exclude-pattern>*/library/classes/smtp/*</exclude-pattern>
36 <exclude-pattern>*/library/classes/PDF_Label.php</exclude-pattern>