From dba558293bc3d0bf1af90d528936e3192e45ae17 Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Tue, 23 Jul 2024 11:03:51 +0545 Subject: [PATCH] Update architecture to adapt package structure --- bin/readme/installing-body.md | 13 --------- command.php | 27 ------------------- composer.json | 7 +++-- doctor-command.php | 13 +++++++++ features/check-autoload-options-size.feature | 2 +- features/check-constant-definition.feature | 6 ++--- features/check-plugin-active-count.feature | 2 +- features/check-plugin-deactivated.feature | 2 +- features/check-plugin-status.feature | 8 +++--- features/config.feature | 4 +-- phpcs.xml.dist | 2 +- inc/checks/class-check.php => src/Check.php | 2 +- .../Check/Autoload_Options_Size.php | 3 ++- .../Check/Cache_Flush.php | 6 +++-- .../Check/Constant_Definition.php | 3 ++- .../Check/Core_Update.php | 3 ++- .../Check/Core_Verify_Checksums.php | 3 ++- .../class-cron.php => src/Check/Cron.php | 3 ++- .../Check/Cron_Count.php | 3 ++- .../Check/Cron_Duplicates.php | 2 +- .../class-file.php => src/Check/File.php | 4 ++- .../Check/File_Contents.php | 4 ++- .../Check/File_Type.php | 4 ++- .../Check/Language_Update.php | 3 ++- .../Check/Option_Value.php | 3 ++- .../Check/PHP_In_Upload.php | 3 ++- .../class-plugin.php => src/Check/Plugin.php | 3 ++- .../Check/Plugin_Active_Count.php | 4 +-- .../Check/Plugin_Deactivated.php | 3 ++- .../Check/Plugin_Status.php | 3 ++- .../Check/Plugin_Update.php | 3 ++- .../Check/Theme_Update.php | 3 ++- inc/class-checks.php => src/Checks.php | 15 ++++++----- inc/class-command.php => src/Command.php | 4 +-- inc/class-exception.php => src/Exception.php | 2 +- wp-cli.yml | 2 +- 36 files changed, 87 insertions(+), 90 deletions(-) delete mode 100644 bin/readme/installing-body.md delete mode 100644 command.php create mode 100644 doctor-command.php rename inc/checks/class-check.php => src/Check.php (97%) rename inc/checks/class-autoload-options-size.php => src/Check/Autoload_Options_Size.php (95%) rename inc/checks/class-cache-flush.php => src/Check/Cache_Flush.php (90%) rename inc/checks/class-constant-definition.php => src/Check/Constant_Definition.php (98%) rename inc/checks/class-core-update.php => src/Check/Core_Update.php (94%) rename inc/checks/class-core-verify-checksums.php => src/Check/Core_Verify_Checksums.php (92%) rename inc/checks/class-cron.php => src/Check/Cron.php (88%) rename inc/checks/class-cron-count.php => src/Check/Cron_Count.php (92%) rename inc/checks/class-cron-duplicates.php => src/Check/Cron_Duplicates.php (96%) rename inc/checks/class-file.php => src/Check/File.php (94%) rename inc/checks/class-file-contents.php => src/Check/File_Contents.php (96%) rename inc/checks/class-file-type.php => src/Check/File_Type.php (94%) rename inc/checks/class-language-update.php => src/Check/Language_Update.php (95%) rename inc/checks/class-option-value.php => src/Check/Option_Value.php (97%) rename inc/checks/class-php-in-upload.php => src/Check/PHP_In_Upload.php (94%) rename inc/checks/class-plugin.php => src/Check/Plugin.php (88%) rename inc/checks/class-plugin-active-count.php => src/Check/Plugin_Active_Count.php (92%) rename inc/checks/class-plugin-deactivated.php => src/Check/Plugin_Deactivated.php (94%) rename inc/checks/class-plugin-status.php => src/Check/Plugin_Status.php (96%) rename inc/checks/class-plugin-update.php => src/Check/Plugin_Update.php (92%) rename inc/checks/class-theme-update.php => src/Check/Theme_Update.php (93%) rename inc/class-checks.php => src/Checks.php (89%) rename inc/class-command.php => src/Command.php (99%) rename inc/class-exception.php => src/Exception.php (61%) diff --git a/bin/readme/installing-body.md b/bin/readme/installing-body.md deleted file mode 100644 index 6da5f40..0000000 --- a/bin/readme/installing-body.md +++ /dev/null @@ -1,13 +0,0 @@ -`wp doctor` is available to [runcommand gold and silver subscribers](https://runcommand.io/pricing/). - -Once you've signed up, you can [download the latest version](https://runcommand.memberful.com/account/downloads) from your account dashboard. Then, install `wp doctor` with: - -``` -$ wp package install doctor.zip -``` - -If you have a Github developer seat, you can also run: - -``` -$ wp package install git@github.com:runcommand/doctor.git -``` diff --git a/command.php b/command.php deleted file mode 100644 index 87070d6..0000000 --- a/command.php +++ /dev/null @@ -1,27 +0,0 @@ - - + Custom ruleset for WP-CLI doctor-command