This repository was archived by the owner on Nov 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
48 lines (40 loc) · 1.76 KB
/
phpcs.xml.dist
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
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="phok-platform">
<description>PHP CodeSniffer configuration for Drupal 8 site projects.</description>
<file>./src</file>
<file>./tests</file>
<file>./web/modules</file>
<file>./web/themes</file>
<file>./web/profiles</file>
<file>./drush</file>
<arg name="extensions" value="inc,install,module,php,profile,test,theme"/>
<exclude-pattern>./web/core/*</exclude-pattern>
<exclude-pattern>./web/modules/contrib/*</exclude-pattern>
<exclude-pattern>./web/themes/contrib/*</exclude-pattern>
<exclude-pattern>./web/profiles/contrib/*</exclude-pattern>
<exclude-pattern>./drush/contrib/*</exclude-pattern>
<!-- Only include specific sniffs that pass. This ensures that, if new sniffs are added, HEAD does not fail.-->
<!-- Drupal sniffs -->
<rule ref="./web/modules/contrib/coder/coder_sniffer/Drupal/ruleset.xml" />
<rule ref="./web/modules/contrib/coder/coder_sniffer/DrupalPractice/ruleset.xml"/>
<!-- Generic sniffs -->
<rule ref="Generic.Files.LineEndings"/>
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.PHP.UpperCaseConstant"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<!-- PSR-2 sniffs -->
<rule ref="PSR2.Classes.PropertyDeclaration">
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
</rule>
<!-- Squiz sniffs -->
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="spacing" value="1"/>
<property name="ignoreNewlines" value="true"/>
</properties>
</rule>
</ruleset>