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

Refactoring and Code Duplication Reduction for Plugin_Readme_Check and Trademarks_Check #295

Merged
merged 5 commits into from
Oct 23, 2023

Conversation

mukeshpanchal27
Copy link
Member

Closes #286

This pull request introduces two trait classes, which enable us to eliminate code duplications and reuse them throughout the codebase:

  1. Amend_Check_Result
  2. Find_Readme

Checklist:

@mukeshpanchal27 mukeshpanchal27 marked this pull request as ready for review October 18, 2023 09:24
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mukeshpanchal27 Thank you for the PR. It looks great, my only feedback relates to @swissspidy's existing feedback, I think we can reduce a bit of duplicate code.

includes/Checker/Checks/Abstract_PHP_CodeSniffer_Check.php Outdated Show resolved Hide resolved
includes/Checker/Checks/Abstract_PHP_CodeSniffer_Check.php Outdated Show resolved Hide resolved
includes/Traits/Amend_Check_Result.php Show resolved Hide resolved
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mukeshpanchal27 Thank you for the updates, LGTM!

A few minor nit-picks below, if you can take a look, but not strictly blockers.

includes/Checker/Checks/Code_Obfuscation_Check.php Outdated Show resolved Hide resolved
includes/Checker/Checks/File_Type_Check.php Outdated Show resolved Hide resolved
includes/Traits/Amend_Check_Result.php Outdated Show resolved Hide resolved
@mukeshpanchal27 mukeshpanchal27 merged commit cc51eb5 into trunk Oct 23, 2023
11 checks passed
@mukeshpanchal27 mukeshpanchal27 deleted the fix/286-code-duplication-reduction branch October 23, 2023 06:19
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.

Refactoring and Code Duplication Reduction for Plugin_Readme_Check and Trademarks_Check
3 participants