-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathphpcs.xml
More file actions
26 lines (20 loc) · 1.2 KB
/
Copy pathphpcs.xml
File metadata and controls
26 lines (20 loc) · 1.2 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Siteimprove WordPress Plugin" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<!-- Node/Playwright tooling is validated by the test workflows. -->
<file>siteimprove</file>
<description>Custom set of rules for Siteimprove WordPress Plugin based on WPCS and extended to match the project needs</description>
<exclude-pattern>/siteimprove/admin/css/*</exclude-pattern>
<exclude-pattern>/siteimprove/admin/js/*</exclude-pattern>
<!-- Test and tooling code. Only /siteimprove is published to WordPress.org,
so WPCS is scoped to the code that actually ships. -->
<exclude-pattern>/tests/*</exclude-pattern>
<exclude-pattern>/scripts/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<rule ref="WordPress">
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment"/>
</rule>
<!-- For Windows users that may have problems with EOL. If you are not using Windows please comment out the code below -->
<rule ref="Generic.Files.LineEndings">
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/>
</rule>
</ruleset>