You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@RiyaMehta2211 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.
Improve code quality by creating methods in Parser
The chat() method is in charge of parsing the different user inputs. The subsequent actions based on the respective inputs are split into different methods. The actions have been categorised under updating lists, adding tasks and returning lists. 3 methods to represent these categories.
Let's improve code quality by making more methods which are shorter and avoid deep nesting. It is also good to keep methods simple and easy to understand.
body not wrapped at 72 characters: e.g., The chat() method is in charge of parsing the different user inputs. The subsequent actions based on the respective inputs are split into different methods. The actions have been categorised under updating lists, adding tasks and returning lists. 3 methods to represent these categories.
ℹ️ 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.
The text was updated successfully, but these errors were encountered:
@RiyaMehta2211 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
Example from
src/main/java/duke/Parser.java
lines46-47
:} else {
Example from
src/main/java/duke/Parser.java
lines81-82
:} else {
Suggestion: As specified by the coding standard, use egyptian style braces.
Aspect: Package Name Style
No easy-to-detect issues 👍
Aspect: Class Name Style
No easy-to-detect issues 👍
Aspect: Dead Code
Example from
src/test/java/duke/StorageTest.java
lines25-25
://assert storage.loadTasks("src/data/newFile.txt").equals(tasks);
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
f7db2bc
:possible problems in commit
ef1dbfe
:The chat() method is in charge of parsing the different user inputs. The subsequent actions based on the respective inputs are split into different methods. The actions have been categorised under updating lists, adding tasks and returning lists. 3 methods to represent these categories.
possible problems in commit
7054660
:Add assertions for error handling and important assumptions for valid inputs
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.The text was updated successfully, but these errors were encountered: