forked from Zaita/SDLT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
executable file
·39 lines (34 loc) · 1.83 KB
/
phpcs.xml.dist
File metadata and controls
executable file
·39 lines (34 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<!--
To find all installed phpcs rulesets:
./vendor/bin/phpcs -i
To list all sniffs for a given ruleset (e.g. PSR2)
./vendor/bin/phpcs \-\-standard=PSR2 -e
-->
<ruleset name="Catalyst SilverStripe">
<!-- Modified from the ruleset taken from silverstripe/framework @4.3.0 -->
<description>CodeSniffer ruleset for SilverStripe coding conventions.</description>
<!-- base rules are PSR-2 -->
<rule ref="PSR2">
<!-- Current exclusions -->
<exclude name="PSR1.Methods.CamelCapsMethodName" />
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
<exclude name="PSR2.Classes.PropertyDeclaration" />
<exclude name="PSR2.ControlStructures.SwitchDeclaration.TerminatingComment" />
<exclude name="PSR2.Methods.MethodDeclaration.Underscore" />
<!-- Exclude the need to declare a "PHP Version" at the top of each .php file -->
<exclude name="PEAR.Commenting.FileComment.MissingVersion" />
<exclude name="PEAR.Commenting.FileComment.MissingCategoryTag" />
<exclude name="PEAR.Commenting.FileComment.MissingPackageTag" />
<exclude name="PEAR.Commenting.FileComment.MissingLicenseTag" />
<exclude name="PEAR.Commenting.FileComment.MissingLinkTag" />
</rule>
<rule ref="PEAR.Commenting.FunctionComment" />
<rule ref="Squiz.Commenting.FunctionCommentThrowTag.Missing" />
<rule ref="Squiz.Commenting.ClassComment" />
<rule ref="PEAR.Commenting.FileComment" />
<rule ref="Squiz.Commenting.VariableComment" />
<!-- include php files only -->
<arg name="extensions" value="php"/>
<exclude-pattern>*/fixtures/*</exclude-pattern>
</ruleset>