I've selected Functions.setDirectory(String,File,Os) for refactoring, which is a unit of 24 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 Functions.getResult(Process,Os) for refactoring, which is a unit of 17 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 Main.main(String[]) for refactoring, which is a unit of 19 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 Functions.java for refactoring, which is a module that has 2 instance(s) of improper exception handling (1, 2). 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! ๐