nuth.ch/.phpcs.xml

34 lines
1.5 KiB
XML
Raw Normal View History

2019-03-27 07:55:08 +00:00
<?xml version="1.0"?>
2019-04-13 14:51:46 +00:00
<ruleset name="Custom">
<description>A custom coding standard</description>
2019-03-27 07:55:08 +00:00
<!-- Don't sniff third party libraries -->
<exclude-pattern>*/themes/simple/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/thirdparty/*</exclude-pattern>
<!-- Show progress and output sniff names on violation, and add colours -->
<arg value="sp"/>
<arg name="colors"/>
2019-04-13 14:51:46 +00:00
<arg name="report" value="csv"/>
<arg name="extensions" value="php/php,inc/php"/>
2019-03-27 07:55:08 +00:00
<!-- Use PSR-2 as a base standard -->
<rule ref="PSR2">
2019-04-13 14:51:46 +00:00
<!-- Allow Windows-like EOL-characters -->
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/>
2019-03-27 07:55:08 +00:00
<!-- Allow classes to not declare a namespace -->
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
2019-04-13 14:51:46 +00:00
<!-- Allow namespaces without a following EOL-character -->
<exclude name="PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter"/>
<!-- Allow files to have no EOL-character at the end of the file -->
<exclude name="PSR2.Files.EndFileNewline.NoneFound"/>
2019-03-27 07:55:08 +00:00
<!-- Allow underscores in class names -->
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<!-- Allow non camel cased method names -->
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
</rule>
2019-04-13 14:51:46 +00:00
<!-- Force files to have no EOL-character at the end of file -->
<rule ref="Generic.Files.EndFileNoNewline.Found"/>
2019-03-27 07:55:08 +00:00
</ruleset>