|
9 | 9 | <exclude-pattern>*/vendor/*</exclude-pattern> |
10 | 10 | <exclude-pattern>*/node_modules/*</exclude-pattern> |
11 | 11 | <exclude-pattern>*/tests/*</exclude-pattern> |
12 | | - <exclude-pattern>*/assets/*</exclude-pattern> |
13 | | - <exclude-pattern>*/languages/*</exclude-pattern> |
14 | 12 | <exclude-pattern>*/.git/*</exclude-pattern> |
15 | 13 | <exclude-pattern>*/.github/*</exclude-pattern> |
| 14 | + <exclude-pattern>*/build/*</exclude-pattern> |
| 15 | + <exclude-pattern>*/dist/*</exclude-pattern> |
16 | 16 |
|
17 | | - <!-- Use WordPress coding standards --> |
18 | | - <rule ref="WordPress"> |
| 17 | + <!-- Use WordPress-Extra coding standards (includes WordPress-Core) --> |
| 18 | + <rule ref="WordPress-Extra"> |
19 | 19 | <!-- Allow short array syntax [] instead of array() --> |
20 | 20 | <exclude name="Generic.Arrays.DisallowShortArraySyntax"/> |
21 | 21 |
|
|
26 | 26 | <exclude name="WordPress.DB.DirectDatabaseQuery"/> |
27 | 27 | </rule> |
28 | 28 |
|
| 29 | + <!-- WordPress documentation standards --> |
| 30 | + <rule ref="WordPress-Docs"/> |
| 31 | + |
29 | 32 | <!-- COMMENTED OUT: These rules enforce spaces instead of tabs, which conflicts with WordPress standards --> |
30 | 33 | <!-- WordPress standards actually require TABS for indentation, not spaces --> |
31 | 34 | <!-- |
|
85 | 88 |
|
86 | 89 | <!-- WordPress security and best practices --> |
87 | 90 | <rule ref="WordPress.Security"/> |
| 91 | + |
| 92 | + <!-- WordPress internationalization configuration --> |
88 | 93 | <rule ref="WordPress.WP.I18n"> |
89 | 94 | <properties> |
90 | 95 | <!-- Set the text domain for internationalization --> |
|
103 | 108 | <rule ref="PHPCompatibilityWP"> |
104 | 109 | <include-pattern>*\.php$</include-pattern> |
105 | 110 | </rule> |
106 | | - <config name="minimum_supported_wp_version" value="6.5"/> |
| 111 | + |
| 112 | + <!-- PHPCSExtra rules for additional code quality checks --> |
| 113 | + <rule ref="PHPCSExtra"> |
| 114 | + <exclude name="Modernize.FunctionCalls.Dirname.Nested"/> |
| 115 | + </rule> |
| 116 | + |
| 117 | + <!-- Set minimum WordPress version for deprecated function checks --> |
| 118 | + <config name="minimum_wp_version" value="6.6"/> |
107 | 119 | <config name="testVersion" value="7.4-"/> |
108 | 120 |
|
109 | 121 | <!-- Show progress --> |
|
0 commit comments