|
1 | 1 | <?xml version="1.0"?> |
2 | | -<ruleset name="WordPress Coding Standards for WPGraphQL for Gravity Forms" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> |
| 2 | +<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPress Coding Standards for WPGraphQL for Gravity Forms" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> |
3 | 3 | <description>Sniffs for the WPGraphQL plugin ecosystem.</description> |
4 | 4 |
|
5 | 5 | <!-- What to scan: include any root-level PHP files, and the /src folder --> |
|
28 | 28 | <!-- Enables parallel processing when available for faster results. --> |
29 | 29 | <arg name="parallel" value="20"/> |
30 | 30 | <!-- Set severity to 1 to see everything that isn't effectively turned off. --> |
31 | | - <arg name="severity" value="1"/> |
| 31 | + <arg name="severity" value="1" /> |
32 | 32 |
|
33 | 33 | <!-- Ruleset Config: set these to match your project constraints--> |
34 | 34 |
|
|
42 | 42 | Tests for WordPress version compatibility. |
43 | 43 | https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties |
44 | 44 | --> |
45 | | - <config name="minimum_supported_wp_version" value="6.0"/> |
| 45 | + <config name="minimum_wp_version" value="6.2"/> |
46 | 46 |
|
47 | 47 | <!-- Rules: WPGraphQL Coding Standards --> |
48 | 48 | <!-- https://github.com/AxeWP/WPGraphQL-Coding-Standards/WPGraphQL/ruleset.xml --> |
49 | 49 | <rule ref="WPGraphQL"> |
50 | 50 | <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification" /> |
51 | 51 | <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" /> |
52 | 52 | <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" /> |
| 53 | + <!-- @todo remove after PHPCS v4--> |
| 54 | + <exclude name="WordPressVIPMinimum.JS" /> |
| 55 | + <exclude name="Generic.Functions.CallTimePassByReference" /> |
53 | 56 | </rule> |
54 | 57 |
|
55 | 58 | <!-- Individual rule configuration --> |
56 | 59 | <rule ref="WordPress.WP.Capabilities"> |
57 | 60 | <properties> |
58 | | - <!-- Value: replace the capabilities used. Separate multiple capabilities with a comma. --> |
59 | | - <property name="custom_capabilities" type="array" value="gravityforms_view_entries, gform_full_access" /> |
| 61 | + <property name="custom_capabilities" type="array"> |
| 62 | + <element value="gravityforms_view_entries" /> |
| 63 | + <element value="gform_full_access" /> |
| 64 | + </property> |
60 | 65 | </properties> |
61 | 66 | </rule> |
62 | 67 | <rule ref="WordPress.NamingConventions.PrefixAllGlobals"> |
63 | 68 | <properties> |
64 | 69 | <!-- Value: replace the function, class, and variable prefixes used. Separate multiple prefixes with a comma. --> |
65 | | - <property name="prefixes" type="array" value="WPGraphQL\GF, wp_graphql, graphql_gf, _gf, WPGRAPHQL_GF" /> |
| 70 | + <property name="prefixes" type="array"> |
| 71 | + <element value="graphql_gf"/> |
| 72 | + <element value="WPGRAPHQL_GF"/> |
| 73 | + <element value="_gf"/> |
| 74 | + <element value="wp_graphql"/> |
| 75 | + <element value="WPGraphQL\GF" /> |
| 76 | + </property> |
66 | 77 | </properties> |
67 | 78 | </rule> |
68 | 79 | <rule ref="WordPress.WP.I18n"> |
69 | 80 | <properties> |
70 | | - <!-- Value: replace the text domain used. --> |
71 | | - <property name="text_domain" type="array" value="wp-graphql-gravity-forms"/> |
| 81 | + <property name="text_domain" type="array"> |
| 82 | + <element value="wp-graphql-gravity-forms" /> |
| 83 | + </property> |
72 | 84 | </properties> |
73 | 85 | </rule> |
74 | 86 |
|
|
0 commit comments