Skip to content

Conversation

@BrianHenryIE
Copy link
Contributor

The main way to get PHPCS annotations on PRs is by using cs2pr.

The use of composer-patches isn't great. I didn't know at the time of my earlier PR, but all packages that require this package (wp-namespace-autoloader) attempt to apply the patches specified here. Not ideal.

cs2pr actually references work I did on the report type approach, which is nice! I don't understand why phpcs haven't merged the PR that was being applied here by composer-patches.

  • No changes to PHP
  • Also removed phpunit dependency and the autoload key for the tests (because there are none)
  • Added a 🤖 icon for GitHub Actions commits
  • Changes squizlabs/php_codesniffer requirement from * to ^3.6 (current)

There's another way to get PHPCS annotations on PRs, by using cs2pr.
The use of composer-patches isn't great. I didn't know at the time, but all packages that require this package attempt to apply the patches specified here. Not ideal.
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.

1 participant