-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I've selected for refactoring 22 lines of code which are duplicated in 1 file(s) (1, 2). Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Code Once guideline rating! π
Here's the gist of this guideline:
- Definition π
Do not copy code. - Whyβ
When code is copied, bugs need to be fixed in multiple places. This is both inefficient and a source of regression bugs. - How π§
Avoid duplication by never copy/pasting blocks of code and reduce duplication by extracting shared code, either to a new unit or introduce a superclass if the language permits.
You can find more info about this guideline in Building Maintainable Software. π
βΉοΈ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the π² next to them. The risk profile below the candidates signals (β ) when it's enough! π
Good luck and happy coding!
β¨ π―
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels