Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ When you introduce new `public` sniff properties, or your sniff extends a class
* WordPress-Coding-Standards
* PHP_CodeSniffer 3.13.4 or higher
* PHPCSUtils 1.1.0 or higher
* PHPCSExtra 1.4.0 or higher
* PHPCSExtra 1.5.0 or higher
* PHPUnit 8.x - 9.x

The WordPress Coding Standards use the `PHP_CodeSniffer` native unit test framework for unit testing the sniffs.
Expand Down
6 changes: 6 additions & 0 deletions WordPress-Extra/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,10 @@
<!-- Check for single blank line after namespace declaration. -->
<rule ref="PSR2.Namespaces.NamespaceDeclaration"/>

<!-- Do not allow spacing inside the brackets for attributes. -->
<rule ref="Universal.Attributes.BracketSpacing"/>

<!-- Forbid parentheses for attribute instantiations without parameters. -->
<rule ref="Universal.Attributes.DisallowAttributeParentheses"/>

</ruleset>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"ext-xmlreader": "*",
"squizlabs/php_codesniffer": "^3.13.4",
"phpcsstandards/phpcsutils": "^1.1.0",
"phpcsstandards/phpcsextra": "^1.4.0"
"phpcsstandards/phpcsextra": "^1.5.0"
},
"require-dev": {
"phpcompatibility/php-compatibility": "^9.0",
Expand Down
Loading