-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
62 lines (51 loc) · 2.25 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
62 lines (51 loc) · 2.25 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="Starmus Audio Recorder - Code Standards"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
<description>
Coding standards for Starmus Audio Recorder plugin.
Auto-fixable rules only to prevent phpcbf conflicts.
</description>
<!-- Scan plugin source -->
<file>starmus-audio-recorder.php</file>
<file>uninstall.php</file>
<file>src/</file>
<!-- Exclude patterns -->
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>wp-admin/*</exclude-pattern>
<exclude-pattern>wp-content/*</exclude-pattern>
<exclude-pattern>wordpress-installer/*</exclude-pattern>
<!-- PHPCS runtime args -->
<arg value="sp"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="8"/>
<arg name="basepath" value="./"/>
<!-- Installed standards -->
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs,vendor/automattic/vipwpcs,vendor/phpcompatibility/php-compatibility,vendor/phpcompatibility/phpcompatibility-wp,vendor/phpcompatibility/phpcompatibility-paragonie,vendor/phpcsstandards/phpcsextra,vendor/phpcsstandards/phpcsutils,vendor/sirbrillig/phpcs-variable-analysis"/>
<!-- Target PHP version -->
<config name="testVersion" value="8.2-"/>
<!-- Auto-fixable whitespace rules only -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Basic indentation only -->
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="tabIndent" value="false"/>
</properties>
</rule>
<!-- WordPress specific auto-fixable rules -->
<rule ref="WordPress.WhiteSpace.OperatorSpacing"/>
<!-- Text domain enforcement (auto-fixable only) -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="starmus-audio-recorder"/>
</property>
</properties>
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralText"/>
</rule>
</ruleset>