Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boils down to PHPCS #89

Closed
szepeviktor opened this issue May 13, 2024 · 4 comments
Closed

boils down to PHPCS #89

szepeviktor opened this issue May 13, 2024 · 4 comments
Labels
question Further information is requested

Comments

@szepeviktor
Copy link

@swissspidy Could it be that

  • this action runs a plugin
  • that plugin run PHPCS
  • So I just need a ruleset??
@swissspidy
Copy link
Member

Hehe almost! :)

There are two types of checks:

  • Static checks
    • Contains both PHPCS checks and other types of manual checks (e.g. for checking the readme)
  • Runtime checks
    • Actually activates the plugin and does some more tests

Plugin developers are of course encouraged to use PHPCS/WPCS in their development workflow, as usual. Plugin Check is then a small addition to that.

Hope that explains it.

FWIW the current setup isn't ideal, for example the core functionality should be extracted into a WP-CLI command or so (see WordPress/plugin-check#153). And there are still many more runtime checks that have yet to be added. I recommend filing any suggestions on the main Plugin Check repo.

@swissspidy swissspidy added the question Further information is requested label May 14, 2024
@szepeviktor
Copy link
Author

  • and other types of manual checks
  • and does some more tests

Thank you for your answer!
Could you give me two examples?

@szepeviktor
Copy link
Author

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants