Merge pull request #1416 from bradymiller/date-time-format_1
[openemr.git] / ci / phpcs.xml
blobfa7a2e9d6536c46aa51af409ee9e3272b6a0022d
1 <?xml version="1.0"?>
2 <ruleset name="OpenEMR Standard">
3   <description>PSR2 (permissive)</description>
4   <arg name="tab-width" value="4" />
5   <rule ref="PSR2">
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   </rule>
16   <!-- Checks that the opening PHP tag is the first content in a file. -->
17   <rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" />
18   <!-- Indenting -->
19   <!-- Code MUST use an indent of 4 spaces, and MUST NOT use tabs for indenting. -->
20   <rule ref="Generic.WhiteSpace.ScopeIndent">
21     <properties>
22       <property name="ignoreIndentationTokens" type="array" value="T_COMMENT,T_DOC_COMMENT_OPEN_TAG" />
23     </properties>
24   </rule>
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>
40 </ruleset>