generated from figuren-theater/new-ft-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
71 lines (57 loc) · 2.69 KB
/
.phpcs.xml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0"?>
<ruleset name="ft-platform">
<description>Coding standards for ft-platform</description>
<file>.</file>
<arg name="basepath" value="./"/><!-- Strip the file paths down to the relevant bit -->
<!--
Exclude everything, that is created during composer install,
when package is tested and developed.
-->
<exclude-pattern>content/mu-plugins/mu-per-*</exclude-pattern>
<exclude-pattern>content/mu-plugins/Figuren_Theater/*</exclude-pattern>
<exclude-pattern>content/mu-plugins/FT/*</exclude-pattern>
<exclude-pattern>content/plugins/*/</exclude-pattern>
<exclude-pattern>content/themes/*/</exclude-pattern>
<exclude-pattern>content/install\.php</exclude-pattern>
<exclude-pattern>content/k\.php</exclude-pattern>
<exclude-pattern>content/php-error\.php</exclude-pattern>
<exclude-pattern>content/sunrise\.php</exclude-pattern>
<exclude-pattern>lib/dotenv/class-dotenv\.php</exclude-pattern>
<!-- Use figuren.theater Coding Standards -->
<rule ref="figurentheater" />
<!-- Allmost impossible to do wp-configs another way -->
<rule ref="WordPress.WP.GlobalVariablesOverride.Prohibited">
<exclude-pattern>wp-config.default\.php</exclude-pattern>
</rule>
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable">
<exclude-pattern>wp-config.default\.php</exclude-pattern>
</rule>
<!-- Allmost impossible to do wp-configs another way -->
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>wp-config\.php</exclude-pattern>
<exclude-pattern>wp-config\.(.*)\.php</exclude-pattern>
</rule>
<!-- Allmost impossible to do wp-configs another way -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound">
<exclude-pattern>wp-config\.php</exclude-pattern>
<exclude-pattern>wp-config\.(.*)\.php</exclude-pattern>
</rule>
<!-- Allmost impossible to do wp-configs another way -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound">
<exclude-pattern>index\.php</exclude-pattern>
<exclude-pattern>wp-config\.php</exclude-pattern>
<exclude-pattern>wp-config\.(.*)\.php</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>wp-config\.(.*)\.php</exclude-pattern>
</rule>
<!-- Silence files dont need package infos -->
<rule ref="Squiz.Commenting.FileComment.MissingPackageTag">
<exclude-pattern>content/*/index\.php</exclude-pattern>
<exclude-pattern>content/index\.php</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>content/mu-plugins/00-ft-platform-constants\.php</exclude-pattern>
<exclude-pattern>content/mu-plugins/01-ft-platform-mu-loader\.php</exclude-pattern>
</rule>
</ruleset>