This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 122
/
phpcs.xml
33 lines (28 loc) · 1.1 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
<?xml version="1.0"?>
<ruleset name="Twitter plugin">
<description>Twitter plugin for WordPress rules for PHP_CodeSniffer</description>
<file>src/Twitter/WordPress</file>
<file>twitter.php</file>
<file>compatibility-notice.php</file>
<file>uninstall.php</file>
<rule ref="PEAR.Commenting.FunctionComment.MissingParamTag" />
<rule ref="PEAR.Commenting.FunctionComment.ParamNameNoMatch" />
<rule ref="Squiz">
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
<exclude name="Squiz.Commenting.InlineComment.NotCapital" />
<exclude name="Squiz.Commenting.FileComment.WrongStyle" />
</rule>
<rule ref="WordPress">
<exclude-pattern type="relative">^/src/Twitter/Cards/*</exclude-pattern>
<!-- Prefer PSR-1 method naming standard of camelCase over WordPress under_scores -->
<exclude name="WordPress.NamingConventions.ValidFunctionName" />
</rule>
<rule ref="WordPress.PHP.YodaConditions">
<!-- downgrade Yoda conditions -->
<type>warning</type>
</rule>
<rule ref="WordPress.XSS.EscapeOutput">
<!-- warns about output already escaped -->
<type>warning</type>
</rule>
</ruleset>