From e951253139887d205269c33d5047a9ec64152edd Mon Sep 17 00:00:00 2001 From: nixonwidjaja Date: Sat, 21 Oct 2023 03:37:00 +0800 Subject: [PATCH] Fix checkstyle --- docs/DeveloperGuide.md | 20 +++++++++---------- docs/UserGuide.md | 10 +++++----- .../address/logic/commands/RedoCommand.java | 2 +- .../address/logic/commands/UndoCommand.java | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index d8fb8e83e6a..8b7ccebc421 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -304,7 +304,7 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli **Extensions** * 2a. At least one of the required information is empty or invalid. - + * 2a1. HR Insight shows an error message. Use case ends. @@ -314,7 +314,7 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli * 3a1. HR Insight indicates that the employee already exists. Use case ends. - + **Use case: Edit an Employee** **MSS** @@ -339,7 +339,7 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli * 3a1. HR Insight shows an error message. Use case resumes from step 2. - + * 3b. User does not specify any new information for the employee. * 3b1. HR Insight shows an error message that at least one field to edit must be provided. @@ -422,7 +422,7 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli * 3b. User provides a wrong index (Either negative or more than current headcount). * 3b1. HR Insight shows an error message. - + Use case ends. * 3c. User didn't provide +/- when stating the claim amount. @@ -453,7 +453,7 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli * 3a. User provides a wrong index (Either negative or more than current headcount). * 3a1. HR Insight shows an error message. - + Use case ends. * 3b. User provides a wrong month (Either negative or more than 12). @@ -474,16 +474,16 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli **Extensions** * 1a. User provides the index of a specific employee. * 1a1. HR Insight shows the leave dates of the specified employee. - + Use case ends. * 1b. User provides a specific month. * 1b1. HR Insight shows the leave dates of all employees occurring in the specified month. Use case ends * 1c. User provides a specific department. - * 1c1. HR Insight shows the leave dates of all employees in the specified department. + * 1c1. HR Insight shows the leave dates of all employees in the specified department. - Use case ends. + Use case ends. * 1d. User provides an invalid index/month/department. * 1d1. HR Insight shows an error message. @@ -500,10 +500,10 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli **Extensions** * 1a. User provides a specific month. * 1a1. HR Insight shows all birthdays in the specified month. - + Use case ends. * 1b. User provides an invalid month. - * 1b1. HR Insight shows an error message. + * 1b1. HR Insight shows an error message. Use case ends. diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 31df8e89d56..f91826de842 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -36,9 +36,9 @@ HR Insight is a **desktop app for HR people, optimized for use via a Line Interf - `delete 3` : Deletes the 3rd employee shown in the current list. - `claim 2 $/-60` : Deducts $60 from the claims of the 2nd employee in the list. - + - `view n/1,2 s/1,2` : View the name and salary of employees with list index of 1 & 2 respectively. - + - `clear` : Deletes all employees from the database. - `exit` : Exits the app. @@ -170,7 +170,7 @@ Format: `leave INDEX m/MONTHS` - The `MONTHS` refers to the month of the leave the employee is taking in integer format (between 1-12). - Positive `MONTHS` add leaves on the specified months and negative `MONTHS` remove them. -Examples: +Examples: - `list` followed by `leave 1 m/3,4` adds leaves in March and April for the 1st employee in the list. - `list` followed by `leave 3 m/11,-12` adds a leave in Nov and removes a leave in Dec for the 3rd employee in the list. @@ -184,7 +184,7 @@ Format: `view_leave [INDEX] [m/Month] [d/DEPARTMENT]` - The index of the employee, month and department are optional arguments. - If no one has planned leave dates for the month, **No one is taking leave** output is shown. -Examples: +Examples: - `view_leave` displays all employees who have planned leave dates in the current year - `view_leave m/10` displays all employees that are taking leave in October - `view_leave m/10 d/IT` displays all employees in the IT department that are taking leave in October. @@ -200,7 +200,7 @@ Format: `birthday [m/MONTH]` - The month argument is optional. If **no month** is provided, the upcoming birthdays in the current month are listed. - If there is no birthday in the month provided or the birthday is past the current date in the same month, return **No upcoming birthdays** -Examples: +Examples: - `birthday` followed by `10` displays all employees who have their birthday in the month of October diff --git a/src/main/java/seedu/address/logic/commands/RedoCommand.java b/src/main/java/seedu/address/logic/commands/RedoCommand.java index 197cbaf4f41..cc496bdc12e 100644 --- a/src/main/java/seedu/address/logic/commands/RedoCommand.java +++ b/src/main/java/seedu/address/logic/commands/RedoCommand.java @@ -16,7 +16,7 @@ public class RedoCommand extends Command { public static final String MESSAGE_USAGE = COMMAND_WORD + ": Redo the most recent command that was undone."; - private static final String MESSAGE_SUCCESS = + private static final String MESSAGE_SUCCESS = "The last command that modified the employee list has been redone!\n" + "Successfully redone the following command: %1$s"; diff --git a/src/main/java/seedu/address/logic/commands/UndoCommand.java b/src/main/java/seedu/address/logic/commands/UndoCommand.java index 12a3c6c92aa..1b764bd3816 100644 --- a/src/main/java/seedu/address/logic/commands/UndoCommand.java +++ b/src/main/java/seedu/address/logic/commands/UndoCommand.java @@ -16,7 +16,7 @@ public class UndoCommand extends Command { public static final String MESSAGE_USAGE = COMMAND_WORD + ": Undo the most recent command that modified the employee list."; - private static final String MESSAGE_SUCCESS = + private static final String MESSAGE_SUCCESS = "The last command that modified the employee list has been undone!\n" + "Successfully undone the following command: %1$s";