Conversation
❌MegaLinter analysis: Error❌ COPYPASTE / jscpd - 1 error🤖 AI-Powered Fix Suggestions for COPYPASTE_JSCPD (by openai gpt-4.1-mini)
Example refactor: # common_utils.py
def shared_function():
# code from lines 9-16 duplicated in both files
# StyleLintLinter.py and V8rLinter.py
from common_utils import shared_function
# replace duplicated code with:
shared_function()This reduces maintenance overhead and improves code clarity.
|
|
This pull request has been automatically marked as stale because it has not had recent activity. If you think this pull request should stay open, please remove the |
|
@bdovaz I see you added many linter classes with just the following code: In order to simplify the maintenance, maybe you can handle a descriptor parameter |
…linter into supported_cli_lint_modes

Fixes #7120
Proposed Changes
supported_cli_lint_modesschema to explicitly establish which modes each linter supports.success/failuretests in each of the supported modes. This is important because until now, only the mode configured incli_lint_modewas tested.filetolist_of_filesorprojectin cases where it has been possible.Readiness Checklist
Author/Contributor
Reviewing Maintainer
breakingif this is a large fundamental changeautomation,bug,documentation,enhancement,infrastructure, orperformance