Skip to content

Update to WPCS v3#110

Merged
danielbachhuber merged 8 commits intomainfrom
fix/wpcs-3.0-issues
Aug 30, 2023
Merged

Update to WPCS v3#110
danielbachhuber merged 8 commits intomainfrom
fix/wpcs-3.0-issues

Conversation

@schlessera
Copy link
Copy Markdown
Member

@schlessera schlessera commented Aug 30, 2023

Auto-generated PR that updates WPCS to the latest v3 and then fixes all automatically fixable issues.

See wp-cli/wp-cli-tests#175

Copy link
Copy Markdown

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ruleset still needs an update:

<rule ref="WordPress.WP.CapitalPDangit.Misspelled">
<exclude-pattern>*/src/Export_Command\.php$</exclude-pattern>
</rule>

I suspect changing the error code to WordPress.WP.CapitalPDangit.MisspelledInComment should work for you.

Copy link
Copy Markdown

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also looks like you still need to update a few inline ignore annotations for sniffs which have been swopped out for other sniffs.

Most notably WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition has become Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition.

@danielbachhuber
Copy link
Copy Markdown
Member

Unrelated build failure

@danielbachhuber danielbachhuber merged commit c0dec81 into main Aug 30, 2023
@danielbachhuber danielbachhuber deleted the fix/wpcs-3.0-issues branch August 30, 2023 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants