Sharing iP code quality feedback [for @teoks0199]
Opened this issue ยท 0 comments
@teoks0199 We did an automated analysis of your code to detect potential areas to improve the code quality. We are sharing the results below, to help you improve the iP code further.
IMPORTANT: Note that the script looked for just a few easy-to-detect problems only, and at-most three example are given i.e., there can be other areas/places to improve.
Aspect: Tab Usage
No easy-to-detect issues ๐
Aspect: Naming boolean variables/methods
No easy-to-detect issues ๐
Aspect: Brace Style
No easy-to-detect issues ๐
Aspect: Package Name Style
No easy-to-detect issues ๐
Aspect: Class Name Style
No easy-to-detect issues ๐
Aspect: Dead Code
Example from src/main/java/duke/DialogBox.java
lines 25-25
:
//private Label dialog;
Suggestion: Remove dead code from the codebase.
Aspect: Method Length
No easy-to-detect issues ๐
Aspect: Class size
No easy-to-detect issues ๐
Aspect: Header Comments
No easy-to-detect issues ๐
Aspect: Recent Git Commit Message
possible problems in commit 88ef0e2
:
Fix code quality further.
TaskList class: Handle the printing of error messages.
Many magic strings are being used for these error messages.
Let's move the printing of error messages to the Ui class.
TaskList will no longer have to use magic literals to print out
error messages, making the code clearer.
- Subject line should not end with a period
Suggestion: Follow the given conventions for Git commit messages for future commits (no need to modify past commit messages).
Aspect: Binary files in repo
No easy-to-detect issues ๐
โน๏ธ The bot account used to post this issue is un-manned. Do not reply to this post (as those replies will not be read). Instead, contact cs2103@comp.nus.edu.sg
if you want to follow up on this post.