mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-27 18:10:42 +00:00
add config for phpcs
This commit is contained in:
parent
1bd8f9fcea
commit
399bf4d383
34
phpcs.xml
Normal file
34
phpcs.xml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset name="SeedDmsStandard" namespace="SeedDMS\PHPCS">
|
||||
<description>Coding standards for SeedDMS.</description>
|
||||
<file>inc</file>
|
||||
<file>out</file>
|
||||
<file>op</file>
|
||||
<file>controllers</file>
|
||||
<exclude-pattern>SeedDMS_Core/[^/]+/oldtests/*</exclude-pattern>
|
||||
<exclude-pattern>SeedDMS_Core/[^/]+/tests/*</exclude-pattern>
|
||||
<arg name="extensions" value="php"/>
|
||||
<arg name="tab-width" value="2"/>
|
||||
<rule ref="PSR2">
|
||||
<exclude name="Generic.WhiteSpace.DisallowTabIndent" />
|
||||
<exclude name="Generic.Files.LineLength"/>
|
||||
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine"/>
|
||||
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace"/>
|
||||
<exclude name="Squiz.Classes.ValidClassName.NotPascalCase"/>
|
||||
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore"/>
|
||||
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
|
||||
<exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
|
||||
<exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
|
||||
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
|
||||
<exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine"/>
|
||||
<exclude name="Generic.ControlStructures.InlineControlStructure.NotAllowed"/>
|
||||
<exclude name="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase"/>
|
||||
</rule>
|
||||
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent" />
|
||||
<rule ref="Generic.WhiteSpace.ScopeIndent">
|
||||
<properties>
|
||||
<property name="indent" value="2"/>
|
||||
<property name="tabIndent" value="true"/>
|
||||
</properties>
|
||||
</rule>
|
||||
</ruleset>
|
||||
Loading…
Reference in New Issue
Block a user