|
1 | 1 | <?xml version="1.0"?>
|
2 | 2 | <ruleset name="Inpsyde Coding Standard">
|
3 | 3 |
|
4 |
| - <description>PHP 7+ coding standards for Inpsyde WordPress projects.</description> |
| 4 | + <description>PHP 7+ coding standards for Inpsyde WordPress projects.</description> |
5 | 5 |
|
6 | 6 | <autoload>./PhpcsHelpers.php</autoload>
|
7 | 7 | <autoload>./PHPCSAliases.php</autoload>
|
8 | 8 |
|
9 |
| - <!-- |
10 |
| - PHP 7.0 and higher. |
11 |
| - --> |
12 |
| - <config name="testVersion" value="7.0-"/> |
| 9 | + <!-- |
| 10 | + PHP 7.0 and higher. |
| 11 | + --> |
| 12 | + <config name="testVersion" value="7.0-"/> |
13 | 13 |
|
14 | 14 | <!--
|
15 | 15 | Arguments: colors, show progress and show sniff name.
|
16 | 16 | -->
|
17 | 17 | <arg name="colors"/>
|
18 | 18 | <arg value="sp"/>
|
19 | 19 |
|
20 |
| - <!-- |
21 |
| - PSR 2 Code style. |
22 |
| - See http://www.php-fig.org/psr/psr-2/ |
23 |
| - --> |
| 20 | + <!-- |
| 21 | + PSR 2 Code style. |
| 22 | + See http://www.php-fig.org/psr/psr-2/ |
| 23 | + --> |
24 | 24 | <rule ref="PSR2">
|
25 | 25 | <exclude name="Generic.Files.LineLength.TooLong"/>
|
26 | 26 | </rule>
|
27 | 27 |
|
28 |
| - <!-- |
29 |
| - Neutron standard are quality tools for PHP7 development from Automattic. |
30 |
| - See https://github.com/Automattic/phpcs-neutron-standard |
31 |
| - --> |
| 28 | + <!-- |
| 29 | + Neutron standard are quality tools for PHP7 development from Automattic. |
| 30 | + See https://github.com/Automattic/phpcs-neutron-standard |
| 31 | + --> |
32 | 32 | <rule ref="NeutronStandard.Arrays.DisallowLongformArray">
|
33 | 33 | <type>warning</type>
|
34 | 34 | </rule>
|
|
64 | 64 | <rule ref="WordPress.VIP.SessionVariableUsage"/>
|
65 | 65 | <rule ref="WordPress.VIP.SessionFunctionsUsage"/>
|
66 | 66 | <rule ref="WordPress.VIP.SuperGlobalInputUsage"/>
|
67 |
| - <rule ref="WordPress.Security.ValidatedSanitizedInput"/> |
68 |
| - <rule ref="WordPress.Security.EscapeOutput"/> |
69 |
| - <rule ref="WordPress.Security.NonceVerification"/> |
| 67 | + <rule ref="WordPress.VIP.ValidatedSanitizedInput"/> |
| 68 | + <rule ref="WordPress.XSS.EscapeOutput"/> |
| 69 | + <rule ref="WordPress.CSRF.NonceVerification"/> |
70 | 70 | <rule ref="WordPress.WP.AlternativeFunctions.curl"/>
|
71 | 71 | <rule ref="WordPress.WP.DiscouragedConstants"/>
|
72 | 72 | <rule ref="WordPress.WP.I18n"/>
|
|
93 | 93 | <type>error</type>
|
94 | 94 | </rule>
|
95 | 95 |
|
96 |
| - <!-- |
97 |
| - Generic |
98 |
| - --> |
| 96 | + <!-- |
| 97 | + Generic |
| 98 | + --> |
99 | 99 | <rule ref="Generic.Metrics.CyclomaticComplexity">
|
100 | 100 | <properties>
|
101 | 101 | <property name="absoluteComplexity" value="50"/>
|
|
0 commit comments