|
1 | 1 | <?xml version="1.0"?> |
2 | | -<ruleset name="Coding Standards for WPGraphQL Plugin Boilerplate" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> |
| 2 | +<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Coding Standards for WPGraphQL Plugin Boilerplate" 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 --> |
|
44 | 44 |
|
45 | 45 | <!-- Rules: WPGraphQL Coding Standards --> |
46 | 46 | <!-- https://github.com/AxeWP/WPGraphQL-Coding-Standards/WPGraphQL/ruleset.xml --> |
47 | | - <rule ref="WPGraphQL" /> |
| 47 | + <rule ref="WPGraphQL"> |
| 48 | + <!-- Deprecated: @todo remove in WPCS v4 --> |
| 49 | + <exclude name="WordPressVIPMinimum.JS"/> |
| 50 | + <exclude name="Generic.Functions.CallTimePassByReference" /> |
| 51 | + </rule> |
48 | 52 |
|
49 | 53 | <!-- Individual rule configuration --> |
50 | 54 | <rule ref="WordPress.NamingConventions.PrefixAllGlobals"> |
51 | 55 | <properties> |
52 | | - <!-- Value: replace the function, class, and variable prefixes used. Separate multiple prefixes with a comma. --> |
53 | | - <property name="prefixes" type="array" value=" AxeWP\GraphQL, wp_graphql, WPGraphQL\PluginName, graphql_pb, WPGRAPHQL_PB, AXEWP_PB" /> |
| 56 | + <property name="prefixes" type="array"> |
| 57 | + <!-- Value: replace the function, class, and variable prefixes used.--> |
| 58 | + <element value="AxeWP\GraphQL" /> |
| 59 | + <element value="wp_graphql" /> |
| 60 | + <element value="WPGraphQL\PluginName" /> |
| 61 | + <element value="graphql_pb" /> |
| 62 | + <element value="WPGRAPHQL_PB" /> |
| 63 | + <element value="AXEWP_PB" /> |
| 64 | + </property> |
54 | 65 | </properties> |
55 | 66 | </rule> |
56 | 67 | <rule ref="WordPress.WP.I18n"> |
57 | 68 | <properties> |
58 | | - <!-- Value: replace the text domain used. --> |
59 | | - <property name="text_domain" type="array" value="wp-graphql-plugin-name"/> |
| 69 | + <property name="text_domain" type="array"> |
| 70 | + <!-- Value: replace the text domain used. --> |
| 71 | + <element value="wp-graphql-plugin-name" /> |
| 72 | + </property> |
60 | 73 | </properties> |
61 | 74 | </rule> |
62 | 75 | </ruleset> |
0 commit comments