WordPress / plugin-check

A repository for the new Plugin Check plugin from the WordPress Performance and Plugins Team.
https://wordpress.org/plugins/plugin-check/
GNU General Public License v2.0
198 stars 39 forks source link

Add Categories and Checks CLI commands #339

Closed ernilambar closed 6 months ago

ernilambar commented 6 months ago

Fixes #303

Command: wp plugin list-check-categories

Output: Screen Shot 2023-12-14 at 4 01 54 PM

Command: wp plugin list-checks

Output: Screen Shot 2023-12-14 at 4 01 39 PM

ernilambar commented 6 months ago

Code is updated as per the comments. New commands will be:

Behat tests implementation for new commands is remaining.

@swissspidy Is it possible to run behat tests in local environment? Or is it implemented now in GitHub actions only?

swissspidy commented 6 months ago

Use composer behat to run the Behat tests.

You may need to run composer prepare-behat-tests once first to create the test database

ernilambar commented 6 months ago

PR ready for review.

ernilambar commented 6 months ago

PR has been update as per the review comments.

Note:

mukeshpanchal27 commented 6 months ago

In the follow-up PR, it's essential to update the documentation to reflect the changes made by this pull request. Specifically, we removed the Abstract_Check_Runner::register_checks() method. cc. @felixarntz

The affected documentation files that need updating are:

ernilambar commented 6 months ago

PR updated as per the comments. Fixed spacing issues and improved function docs.