Skip to content

PHPCS fixes and Actions adjusments#7

Open
trepmal wants to merge 2 commits into
masterfrom
phpcs-fixes
Open

PHPCS fixes and Actions adjusments#7
trepmal wants to merge 2 commits into
masterfrom
phpcs-fixes

Conversation

@trepmal
Copy link
Copy Markdown
Contributor

@trepmal trepmal commented Jun 26, 2021

This PR also removes the PHPUnit setup since I do not expect it will be added in the future.

As the VIP infrastructure no longer relies on Batcache, this is unlikely to be maintained. The aim here is just to leave the plugin in a clean state.

Comment thread cheeztest.php
return static::get_group_for( $name ) == $group;
}
} No newline at end of file
if ( ! class_exists( 'CheezTest' ) ) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried avoiding the class_exists check, but without it I get stuck with the "Missing file doc comment (Squiz.Commenting.FileComment.Missing)" PHPCS feedback. Not sure if a bug in the sniff.

@trepmal trepmal requested a review from GaryJones June 26, 2021 02:22
Copy link
Copy Markdown

@GaryJones GaryJones left a comment

Choose a reason for hiding this comment

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

Approved, but with one optional suggestion.

# continue-on-error: true
# run: vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml
- name: Check PHP code style
continue-on-error: true
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

As this solves all CS violations, then I would remove this line, so that any changes (either from adjusted code, or fresher versions of PHPCS-related dependencies) get highlighted.

Suggested change
continue-on-error: true

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants