Skip to content

Commit

Permalink
update WPCS to v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed Nov 11, 2023
1 parent 28783df commit 5144b2b
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"matthiasmullie/minify": "^1.3",
"squizlabs/php_codesniffer": "^3.7",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"wp-coding-standards/wpcs": "^2.3"
"wp-coding-standards/wpcs": "^3.0"
},
"scripts": {
"post-install-cmd": [
Expand Down
171 changes: 161 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

<!-- WordPress coding standards -->
<config name="minimum_supported_wp_version" value="3.8" />
<rule ref="WordPress" />
<rule ref="WordPress">
<exclude name="Modernize.FunctionCalls.Dirname.FileConstant"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="snitch" />
Expand Down

0 comments on commit 5144b2b

Please sign in to comment.