I've selected script.js:HUD.render for refactoring, which is a unit of 54 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
Definition ๐
Limit the length of code units to 15 lines of code.
Whyโ
Small units are easier to analyse, test and reuse.
How ๐ง
When writing new units, don't let them grow above 15 lines of code. When a unit grows beyond this, split it in smaller units of no longer than 15 lines.
โน๏ธ 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! ๐
I've selected script.js:DefaultUnit for refactoring, which is a unit of 42 lines of code and 11 branch points. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Simple Units of Code guideline rating! ๐
Here's the gist of this guideline:
Definition ๐
Limit the number of branch points (if, for, while, etc.) per unit to 4.
Whyโ
Keeping the number of branch points low makes units easier to modify and test.
How ๐ง
Split complex units with a high number of branch points into smaller and simpler ones.
โน๏ธ 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! ๐
I've selected script.js:Rocket.propel for refactoring, which is a unit of 29 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
Definition ๐
Limit the length of code units to 15 lines of code.
Whyโ
Small units are easier to analyse, test and reuse.
How ๐ง
When writing new units, don't let them grow above 15 lines of code. When a unit grows beyond this, split it in smaller units of no longer than 15 lines.
โน๏ธ 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! ๐
I've selected script.js:DefaultUnit for refactoring, which is a unit of 42 lines of code and 11 branch points. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Simple Units of Code guideline rating! ๐
Here's the gist of this guideline:
Definition ๐
Limit the number of branch points (if, for, while, etc.) per unit to 4.
Whyโ
Keeping the number of branch points low makes units easier to modify and test.
How ๐ง
Split complex units with a high number of branch points into smaller and simpler ones.
โน๏ธ 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! ๐
I've selected script.js for refactoring, which is a module that has 1 instance(s) of code in comments (1). Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Clean Code guideline rating! ๐
Here's the gist of this guideline:
Definition ๐
Apply The Boy Scout Rule and fix "code smells" in the codebase.
Whyโ
Clean code is maintainable code.
How ๐ง
Remove useless comments, commented code blocks, and dead code. Refactor poorly handled exceptions, magic constants, and poorly named units or variables.
โน๏ธ 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! ๐
I've selected script.js:HUD.render for refactoring, which is a unit of 54 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
Definition ๐
Limit the length of code units to 15 lines of code.
Whyโ
Small units are easier to analyse, test and reuse.
How ๐ง
When writing new units, don't let them grow above 15 lines of code. When a unit grows beyond this, split it in smaller units of no longer than 15 lines.
โน๏ธ 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! ๐
I've selected script.js:HUD.render for refactoring, which is a unit of 54 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
Definition ๐
Limit the length of code units to 15 lines of code.
Whyโ
Small units are easier to analyse, test and reuse.
How ๐ง
When writing new units, don't let them grow above 15 lines of code. When a unit grows beyond this, split it in smaller units of no longer than 15 lines.
โน๏ธ 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! ๐