Skip to content

Update to WPCS v3#176

Merged
danielbachhuber merged 8 commits into
mainfrom
update-wpcs-3
Aug 30, 2023
Merged

Update to WPCS v3#176
danielbachhuber merged 8 commits into
mainfrom
update-wpcs-3

Conversation

@danielbachhuber
Copy link
Copy Markdown
Member

@danielbachhuber danielbachhuber commented Aug 29, 2023

Comment thread WP_CLI_CS/ruleset.xml
<!-- Allow filesystem operations because WordPress APIs may not be available -->
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_mkdir" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_rmdir" />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's also add is_writable()

Comment thread composer.json
"wp-cli/eval-command": "^1 || ^2",
"wp-cli/wp-cli": "^2.5.1",
"wp-coding-standards/wpcs": "^2.3.0",
"wp-coding-standards/wpcs": "^3",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Recommended: remove the explicit dealerdirect/phpcodesniffer-composer-installer require. That now comes with WPCS and removing it will prevent potential future version conflicts.

Comment on lines 1098 to 1099
$error = error_get_last();
throw new RuntimeException( sprintf( "Failed to copy '%s' to '%s': %s. " . __FILE__ . ':' . __LINE__, $upd_file, $cop_file, $error['message'] ) );
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like the indent here didn't get fixed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests failing with default composer install

3 participants