insane docker dev environment updates to support alpine 3.10 updates (#2533)
[openemr.git] / ci / phpcs.xml
blobe41d974febeafd82d94a6ba6dd86f577a43f4a06
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">
23         <element value="T_COMMENT"/>
24         <element value="T_DOC_COMMENT_OPEN_TAG" />
25       </property>
26     </properties>
27   </rule>
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>
37 </ruleset>