Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
nixonwidjaja committed Oct 20, 2023
1 parent 3fb5c19 commit e951253
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
20 changes: 10 additions & 10 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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**
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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).
Expand All @@ -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.

Expand All @@ -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.

Expand Down
10 changes: 5 additions & 5 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.

Expand All @@ -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.
Expand All @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit e951253

Please sign in to comment.