Skip to content

Commit 8239d00

Browse files
Update wp-coding-standards/wpcs requirement from 2.3.0 to 3.0.1 (#231)
* Update wp-coding-standards/wpcs requirement from 2.3.0 to 3.0.1 Updates the requirements on [wp-coding-standards/wpcs](https://github.com/WordPress/WordPress-Coding-Standards) to permit the latest version. - [Release notes](https://github.com/WordPress/WordPress-Coding-Standards/releases) - [Changelog](https://github.com/WordPress/WordPress-Coding-Standards/blob/develop/CHANGELOG.md) - [Commits](WordPress/WordPress-Coding-Standards@2.3.0...3.0.1) --- updated-dependencies: - dependency-name: wp-coding-standards/wpcs dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Use renamed PHP sniffs * Update list of allowed filesystem functions * Exclude Universal.Operators.DisallowStandalonePostIncrementDecrement to allow both variants --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dominik Schilling <[email protected]>
1 parent c4d8af1 commit 8239d00

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Required/ruleset.xml

+6-3
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
<rule ref="WordPress-Core">
2929
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
3030
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
31-
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
32-
<exclude name="WordPress.PHP.DisallowShortTernary"/>
31+
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
32+
<exclude name="Universal.Operators.DisallowShortTernary"/>
33+
<exclude name="Universal.Operators.DisallowStandalonePostIncrementDecrement"/>
3334
</rule>
3435

3536
<rule ref="WordPress-Docs">
@@ -90,7 +91,9 @@
9091
<property name="exclude" type="array">
9192
<!-- Allow the use of filesystem functions. -->
9293
<element value="file_get_contents"/>
93-
<element value="file_system_read"/>
94+
<element value="file_system_operations"/>
95+
<element value="unlink"/>
96+
<element value="rename"/>
9497
<!-- wp_json_encode() is nowadays only a simple wrapper for json_encode(). -->
9598
<element value="json_encode"/>
9699
</property>

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"phpcompatibility/phpcompatibility-wp": "2.1.4",
1717
"sirbrillig/phpcs-variable-analysis": "2.11.17",
1818
"slevomat/coding-standard": "8.13.4",
19-
"wp-coding-standards/wpcs": "2.3.0"
19+
"wp-coding-standards/wpcs": "3.0.1"
2020
},
2121
"suggest": {
2222
"dealerdirect/phpcodesniffer-composer-installer": "Automatically adds this package's ruleset to the installed_paths option of PHP_CodeSniffer"

0 commit comments

Comments
 (0)