Skip to content

[EdwinTun98] iP#201

Open
EdwinTun98 wants to merge 30 commits intonus-cs2113-AY2425S2:masterfrom
EdwinTun98:master
Open

[EdwinTun98] iP#201
EdwinTun98 wants to merge 30 commits intonus-cs2113-AY2425S2:masterfrom
EdwinTun98:master

Conversation

@EdwinTun98
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@telferang telferang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider separating the code into different files.

/**
* Marks the task as done.
*/
public void markDone() {this.isDone = true;}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider not having the whole function in a single line to following the coding standard.

* @throws EddieException If the format is incorrect.
*/
private void addDeadLine(String details) throws EddieException {
EddieException.checkDeadline(details);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider extracting the checking function to another class.

Comment on lines +124 to +130
int index = EddieException.checkTaskStatus(taskIndex, taskCount);
if (markDone) {
tasks[index].markDone();
} else {
tasks[index].markNotDone();
}
Display.showMarkedStatus(tasks[index], markDone);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basic indentation should be 4 spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants