Closed ernilambar closed 5 months ago
cc: @swissspidy @felixarntz @mukeshpanchal27
Updates:
get_checks()
will return stable checks only by default. If --include-experimental
is given, it will include experimental checks along with stable checks.--categories
- Existing Check_Categories::filter_checks_by_categories()
is used for filtering checks based on categories.--stability
is removed and implemented --include-experimental
flag.Those Behat failures are unrelated and fixed in #381
Refactor list-checks command with improvements.
get_checks()
ofDefault_Check_Repository
by default does not return experimental checks. This PR fix that issue for returing all checks with parameterDefault_Check_Repository::TYPE_ALL | Default_Check_Repository::INCLUDE_EXPERIMENTAL
.--categories
argument is added to filter checks by categories.--stability
argument is added to filter checks by stability. Takes eitherstable
orexperimental
.Output:
wp plugin list-checks --stability=stable
- Currently all checks will be displayed as we dont have experimental checks yet.wp plugin list-checks --categories=performance
wp plugin list-checks --categories=performance,general