-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathphpcs.xml
29 lines (25 loc) · 1.21 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
<?xml version="1.0" ?>
<ruleset name="Project-specific Coding Standards Overrides">
<!--
Use the WordPress.org Meta Coding Standards for the project (from wporg-repo-tools),
but override a few specific rules in a few directories. This will let us keep using phpcs
on those directories without flagging known non-issues from generated or forked code.
-->
<!-- Import the shared PHPCS settings. -->
<rule ref="./phpcs.xml.dist" />
<!-- Allow unescaped content in patterns. -->
<rule ref="WordPress.Security.EscapeOutput.UnsafePrintingFunction">
<exclude-pattern>source/wp-content/themes/wporg-showcase-2022/patterns/*</exclude-pattern>
</rule>
<!-- Allow php tags to be on same line as HTML. -->
<rule ref="Squiz.PHP.EmbeddedPhp.ContentBeforeOpen">
<exclude-pattern>source/wp-content/themes/wporg-showcase-2022/patterns/*</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.EmbeddedPhp.ContentAfterEnd">
<exclude-pattern>source/wp-content/themes/wporg-showcase-2022/patterns/*</exclude-pattern>
</rule>
<!-- Don't enforce file names on patterns to support partials. -->
<rule ref="WordPress.Files.FileName">
<exclude-pattern>source/wp-content/themes/wporg-showcase-2022/patterns/*</exclude-pattern>
</rule>
</ruleset>