-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
55 lines (48 loc) · 2.65 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
55 lines (48 loc) · 2.65 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
<?xml version="1.0"?>
<ruleset name="Migration MU Plugin">
<description>
WordPress and security-focused coding standard audit for the migration MU plugin.
Auto-formatting stays in PHP CS Fixer; PHPCS enforces the SymPress standard.
</description>
<arg name="colors"/>
<arg value="sp"/>
<arg name="basepath" value="."/>
<config name="testVersion" value="8.5-"/>
<config name="text_domain" value="migration"/>
<file>migration.php</file>
<file>src</file>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>.phpunit.cache/*</exclude-pattern>
<exclude-pattern>.hooktest.php</exclude-pattern>
<!--
PHPCS does not reliably parse PHP 8.5 property hooks yet.
These value objects remain covered by PHP CS Fixer, PHPStan and PHPUnit.
-->
<exclude-pattern>src/Value/PluginSlug.php</exclude-pattern>
<exclude-pattern>src/Value/MigrationRecord.php</exclude-pattern>
<exclude-pattern>src/Value/MigrationExecution.php</exclude-pattern>
<rule ref="SymPress-WordPress">
<!-- PHP 8.5 property hooks are not parsed reliably by PHPCS yet. -->
<exclude name="SymPress.Classes.AccessorNaming"/>
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_trigger_error"/>
<exclude name="WordPress.PHP.POSIXFunctions"/>
<exclude name="SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectLinesCountBetweenDifferentAnnotationsTypes" />
<exclude name="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable" />
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment" />
<exclude name="SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter" />
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName" />
<exclude name="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable.DisallowedSuperGlobalVariable" />
<exclude name="SymPress.Arrays.ArrayDoubleArrowAlignment.AssignmentsNotAligned" />
<exclude name="SymPress.Variables.RedundantAssignment.Found" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_fclose" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_fopen" />
<exclude name="WordPress.WP.AlternativeFunctions.json_encode_json_encode" />
</rule>
<rule ref="SymPress.Namespaces.Psr4">
<properties>
<property name="psr4" type="array">
<element key="SymPress\WordPress\Migration" value="src"/>
</property>
</properties>
</rule>
</ruleset>