Skip to content
Snippets Groups Projects
Verified Commit 89d7b4e5 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

chore: update wpcs package


Signed-off-by: default avatarBart Jaskulski <bjaskulski@protonmail.com>
parent df7154e3
No related branches found
No related tags found
No related merge requests found
# Changelog
## [1.2.7] - 2023-08-28
### Changed
- Updated WPCS upstream version to 3.0
## [1.2.6] - 2023-05-30
### Fixed
- Changed excluded ruleset reference according to upstream update
......
......@@ -21,11 +21,11 @@
<exclude name="WordPress.Files.FileName"/>
<!-- WPCS demands long arrays. WPDeskCS demands short arrays. -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
<!-- Demanding Yoda conditions is stupid. -->
<exclude name="WordPress.PHP.YodaConditions"/>
<!-- The only required comments are for the classes. -->
<exclude name="Squiz.Commenting.FunctionComment"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
......@@ -96,9 +96,6 @@
These may make it into WPCS at some point. If so, they can be removed here.
#############################################################################
-->
<!-- CS: no blank line between the content of a function and a function close brace.-->
<rule ref="PSR2.Methods.FunctionClosingBrace"/>
<!-- CS: ensure exactly one blank line before each property declaration. -->
<rule ref="Squiz.WhiteSpace.MemberVarSpacing"/>
......@@ -112,27 +109,6 @@
</properties>
</rule>
<!-- Error prevention: Ensure no git conflicts make it into the code base. -->
<!-- PHPCS 3.4.0: This sniff will be added to WPCS in due time and can then be removed from this ruleset.
Related: https://github.com/WordPress/WordPress-Coding-Standards/issues/1500 -->
<rule ref="Generic.VersionControl.GitMergeConflict"/>
<!-- CS: no space between an increment/decrement operator and the variable it applies to. -->
<!-- PHPCS 3.4.0: This sniff will be added to WPCS in due time and can then be removed from this ruleset.
Related: https://github.com/WordPress/WordPress-Coding-Standards/issues/1511 -->
<rule ref="Generic.WhiteSpace.IncrementDecrementSpacing"/>
<!-- QA: Function declarations should not contain parameters which will never be used. -->
<!-- PHPCS 3.4.0: This sniff will be added to WPCS in due time and can then be removed from this ruleset.
Related: https://github.com/WordPress/WordPress-Coding-Standards/issues/1510 -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter.Found"/>
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed"/>
<!-- CS: Ensure consistent whitespace around spread operators. -->
<!-- PHPCS 3.5.0: This sniff will be added to WPCS in due time and can then be removed from this ruleset.
Related: https://github.com/WordPress/WordPress-Coding-Standards/issues/1762 -->
<rule ref="Generic.WhiteSpace.SpreadOperatorSpacingAfter"/>
<!-- CS: Disallow a leading backslash at the start of an import use statement. -->
<!-- PHPCS 3.5.0: This sniff may be added to WPCS in due time and can then be removed from this ruleset. -->
<rule ref="PSR12.Files.ImportStatement"/>
......
......@@ -14,9 +14,8 @@
],
"require": {
"php": ">=7.0",
"dealerdirect/phpcodesniffer-composer-installer": "^1",
"squizlabs/php_codesniffer": "^3.6",
"wp-coding-standards/wpcs": "dev-develop as 2.4.x-dev",
"wp-coding-standards/wpcs": "^3",
"phpcompatibility/phpcompatibility-wp": "^2.1.1"
},
"require-dev": {
......
......@@ -34,10 +34,10 @@
<config name="text_domain" value="enter-plugin-text-domain-here"/>
<!-- This value should be aligned with WordPress support version declared in plugin header -->
<config name="minimum_supported_wp_version" value="5.0"/>
<config name="minimum_wp_version" value="5.5"/>
<!-- Set value aligned with supported PHP Version for PHPCompatibilityWP check. -->
<config name="testVersion" value="7.0-"/>
<config name="testVersion" value="7.2-"/>
<rule ref="WPDeskPlugin"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment