-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Timothy Tay] iP #441
base: master
Are you sure you want to change the base?
[Timothy Tay] iP #441
Conversation
In build.gradle, the dependencies on distZip and/or distTar causes the shadowJar task to generate a second JAR file for which the mainClass.set("seedu.duke.Duke") does not take effect. Hence, this additional JAR file cannot be run. For this product, there is no need to generate a second JAR file to begin with. Let's remove this dependency from the build.gradle to prevent the shadowJar task from generating the extra JAR file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, readable code, with good adherence to code style and quality guidelines 👍
/** | ||
* The AddDeadlineCommand class represents the command to add a deadline task. | ||
*/ | ||
private static final String horizontalLine = "-------------------------------------------" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how you broke this long line so as to not make the line too long!
src/main/java/AddToDoCommand.java
Outdated
@Override | ||
public void execute(Ui ui, Storage storage) { | ||
ToDoTask newTask = new ToDoTask(this.taskDescription); | ||
String added = storage.addToList(newTask); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps a more descriptive name instead of added
would be better?
src/main/java/Parser.java
Outdated
/** | ||
* The Parser class takes in user input and interprets it to perform the necessary actions. | ||
*/ | ||
private static final String horizontalLine = "--------------------------------------------------------------------------------\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line may be too long. Consider breaking it into two?
src/main/java/Parser.java
Outdated
return commands; | ||
case "mark": | ||
try { | ||
String[] mark = str.split("mark ", 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps a more intuitive variable name here? I don't quite understand what mark
's purpose is based on its name.
src/main/java/Parser.java
Outdated
LocalDate to = LocalDate.parse(timeline[1].trim(), DateTimeFormatter.ofPattern("MMM dd yyyy")); | ||
commands.add(new AddEventCommand( | ||
CommandType.EVENT, remainingParts[0].trim(), from, to)); | ||
if (isDone) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how you named the boolean variables intuitively!
src/main/java/Ui.java
Outdated
/** | ||
* Prints the farewell message of the chatbot. | ||
*/ | ||
public static void bye() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be a verb. Maybe sayGoodbye
?
No description provided.