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

chore: update wpcs package

parent df7154e3
No related branches found
No related tags found
No related merge requests found
# Changelog # Changelog
## [1.2.7] - 2023-08-28
### Changed
- Updated WPCS upstream version to 3.0
## [1.2.6] - 2023-05-30 ## [1.2.6] - 2023-05-30
### Fixed ### Fixed
- Changed excluded ruleset reference according to upstream update - Changed excluded ruleset reference according to upstream update
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<exclude name="WordPress.Files.FileName"/> <exclude name="WordPress.Files.FileName"/>
<!-- WPCS demands long arrays. WPDeskCS demands short arrays. --> <!-- WPCS demands long arrays. WPDeskCS demands short arrays. -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/> <exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
<!-- Demanding Yoda conditions is stupid. --> <!-- Demanding Yoda conditions is stupid. -->
<exclude name="WordPress.PHP.YodaConditions"/> <exclude name="WordPress.PHP.YodaConditions"/>
...@@ -96,9 +96,6 @@ ...@@ -96,9 +96,6 @@
These may make it into WPCS at some point. If so, they can be removed here. 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. --> <!-- CS: ensure exactly one blank line before each property declaration. -->
<rule ref="Squiz.WhiteSpace.MemberVarSpacing"/> <rule ref="Squiz.WhiteSpace.MemberVarSpacing"/>
...@@ -112,27 +109,6 @@ ...@@ -112,27 +109,6 @@
</properties> </properties>
</rule> </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. --> <!-- 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. --> <!-- 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"/> <rule ref="PSR12.Files.ImportStatement"/>
......
...@@ -14,9 +14,8 @@ ...@@ -14,9 +14,8 @@
], ],
"require": { "require": {
"php": ">=7.0", "php": ">=7.0",
"dealerdirect/phpcodesniffer-composer-installer": "^1",
"squizlabs/php_codesniffer": "^3.6", "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" "phpcompatibility/phpcompatibility-wp": "^2.1.1"
}, },
"require-dev": { "require-dev": {
......
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
<config name="text_domain" value="enter-plugin-text-domain-here"/> <config name="text_domain" value="enter-plugin-text-domain-here"/>
<!-- This value should be aligned with WordPress support version declared in plugin header --> <!-- 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. --> <!-- 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"/> <rule ref="WPDeskPlugin"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment