Skip to content
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

V1.2 #64

Closed
wants to merge 10 commits into from
Closed

V1.2 #64

wants to merge 10 commits into from

Conversation

sharadk1234
Copy link

Remark Command

…into sharadk1234-branch

# Conflicts:
#	src/main/java/seedu/address/MainApp.java
#	src/main/java/seedu/address/logic/commands/PinCommand.java
#	src/main/java/seedu/address/logic/parser/AddressBookParser.java
#	src/main/java/seedu/address/model/ModelManager.java
#	src/main/java/seedu/address/model/util/SampleDataUtil.java
#	src/test/java/seedu/address/logic/commands/AddCommandIntegrationTest.java
#	src/test/java/seedu/address/logic/commands/ClearCommandTest.java
#	src/test/java/seedu/address/logic/commands/DeleteCommandTest.java
#	src/test/java/seedu/address/logic/commands/EditCommandTest.java
#	src/test/java/seedu/address/logic/commands/FindCommandTest.java
#	src/test/java/seedu/address/logic/commands/ListCommandTest.java
#	src/test/java/seedu/address/logic/commands/RedoCommandTest.java
#	src/test/java/seedu/address/logic/commands/SelectCommandTest.java
#	src/test/java/seedu/address/logic/commands/UndoCommandTest.java
#	src/test/java/seedu/address/model/ModelManagerTest.java
#	src/test/java/seedu/address/testutil/TypicalPersons.java
 into sharadk1234-branch

# Conflicts:
#	src/main/java/seedu/address/logic/commands/EditCommand.java
#	src/main/java/seedu/address/logic/parser/AddressBookParser.java
#	src/main/java/seedu/address/logic/parser/RemarkCommandParser.java
#	src/main/java/seedu/address/model/Model.java
#	src/main/java/seedu/address/model/person/Person.java
#	src/main/java/seedu/address/model/util/SampleDataUtil.java
#	src/main/java/seedu/address/storage/JsonAdaptedPerson.java
#	src/main/resources/view/PersonListCard.fxml
#	src/test/java/seedu/address/logic/parser/AddressBookParserTest.java
@sharadk1234
Copy link
Author

Test passed successfully !

@sharadk1234
Copy link
Author

LATEST ONES

…into sharadk1234-branch

# Conflicts:
#	src/main/java/seedu/address/logic/parser/ParserUtil.java
#	src/main/java/seedu/address/model/person/Person.java
@sharadk1234
Copy link
Author

V1.1

@@ -32,9 +28,15 @@
import seedu.address.storage.Storage;
import seedu.address.storage.StorageManager;
import seedu.address.storage.UserPrefsStorage;
>>>>>>> 9be1c895c54ada063db055dc4b099ac35b753363

Choose a reason for hiding this comment

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

This line is added by Git to show you where are the conflicting portions between your file and the team repo's file. You should resolve the conflict and remove this line before committing the file again. Please refer to the textbook portion below. https://nus-cs2103-ay1819s2.github.io/cs2103-website/se-book-adapted/chapters/gitAndGithub.html#merge-conflicts

@@ -1,6 +1,6 @@
package seedu.address.commons.core;

import java.awt.Point;
import java.awt.*;

Choose a reason for hiding this comment

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

Import statements should be listed out fully and individually instead of using the * modifier to import the entire package. Please refer to the following textbook portion. https://nus-cs2103-ay1819s2.github.io/cs2103-website/coding-standards/java/basic.html#package-and-import-statements

import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
import java.util.logging.*;

Choose a reason for hiding this comment

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

Similar import statement style violation as mentioned above.

import seedu.address.logic.CommandHistory;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.model.Model;
import seedu.address.model.person.Person;

import static java.util.Objects.requireNonNull;
import static seedu.address.logic.parser.CliSyntax.*;

Choose a reason for hiding this comment

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

Similar import statement style violation as mentioned above.

import java.util.*;

import static java.util.Objects.requireNonNull;
import static seedu.address.logic.parser.CliSyntax.*;

Choose a reason for hiding this comment

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

Similar import statement style violation as mentioned above.

Set<Tag> updatedTags = editPersonDescriptor.getTags().orElse(personToEdit.getTags());

return new Person(updatedName, updatedPhone, updatedEmail, updatedAddress, updatedTags);
<<<<<<< HEAD

Choose a reason for hiding this comment

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

Similar error due to committing conflicting files as mentioned above.

@@ -1,18 +1,26 @@
package seedu.address.logic.commands;

<<<<<<< HEAD

Choose a reason for hiding this comment

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

Similar error due to committing conflicting files as mentioned above.

import static seedu.address.logic.parser.CliSyntax.PREFIX_TAG;
import seedu.address.logic.commands.AddCommand;
import seedu.address.logic.parser.exceptions.ParseException;
import seedu.address.model.person.*;

Choose a reason for hiding this comment

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

Similar import statement style violation as mentioned above.


import java.util.regex.Matcher;
import java.util.regex.Pattern;

<<<<<<< HEAD

Choose a reason for hiding this comment

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

Similar error due to committing conflicting files as mentioned above.

import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.*;

Choose a reason for hiding this comment

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

Similar import statement style violation as mentioned above.

import javafx.beans.property.ReadOnlyProperty;
import javafx.collections.ObservableList;
import seedu.address.commons.core.GuiSettings;
import seedu.address.model.person.Person;
import seedu.address.model.person.Remark;
<<<<<<< HEAD

Choose a reason for hiding this comment

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

Similar error due to committing conflicting files as mentioned above.

@@ -75,7 +79,14 @@
* Returns true if a person with the same identity as {@code person} exists in the address book.
*/
boolean hasPerson(Person person);

/**

Choose a reason for hiding this comment

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

Duplicated functions.

* Adds the given remark.
* {@code person} must not already exist in the address book.
*/
void addRemark(Remark remark);

Choose a reason for hiding this comment

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

Duplicated functions

@@ -136,6 +137,13 @@ public void setPerson(Person target, Person editedPerson) {
versionedAddressBook.setPerson(target, editedPerson);
}

<<<<<<< HEAD

Choose a reason for hiding this comment

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

Similar error due to committing conflicting files as mentioned above.


import java.util.Collections;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;

<<<<<<< HEAD

Choose a reason for hiding this comment

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

Similar error due to committing conflicting files as mentioned above.

@@ -20,21 +24,46 @@
private final Name name;
private final Phone phone;
private final Email email;
private final Remark remark;
<<<<<<< HEAD

Choose a reason for hiding this comment

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

Similar error due to committing conflicting files as mentioned above.

import seedu.address.model.AddressBook;
import seedu.address.model.ArchiveBook;
import seedu.address.model.ReadOnlyAddressBook;
<<<<<<< HEAD

Choose a reason for hiding this comment

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

Similar error due to committing conflicting files as mentioned above.

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;

<<<<<<< HEAD

Choose a reason for hiding this comment

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

Similar error due to committing conflicting files as mentioned above.

import seedu.address.model.person.Name;
import seedu.address.model.person.Person;
import seedu.address.model.person.Phone;
import seedu.address.model.person.*;

Choose a reason for hiding this comment

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

Violation of import statement coding style.

@@ -20,11 +16,13 @@
public static final String DEFAULT_PHONE = "85355255";
public static final String DEFAULT_EMAIL = "alice@gmail.com";
public static final String DEFAULT_ADDRESS = "123, Jurong West Ave 6, #08-111";
public static final String DEFAULT_Remark = "123, Jurong West Ave 6, #08-111";

Choose a reason for hiding this comment

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

Constant variable names need to be in all Caps.

Copy link

@tanlongbin tanlongbin left a comment

Choose a reason for hiding this comment

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

  1. Multiple violations of import statement coding style. I have flagged out the first few that I spotted. Please read through and rectify all the violations.
  2. Multiple files were merged and committed despite the conflicts highlighted by Git. This led to multiple lines added in multiple files (purpose of the lines are to demarcate the conflicts) which led to compilation error. I have flagged out the first few that I spotted. Please read through and rectify all the conflicts.
  3. Multiple files have changes to the position of the import statements, which does not affect the functionality of the code. Please avoid these changes to minimise the modifications to the files in the code base.
  4. A few other coding style mistakes spotted. Please read through all the comments I left in the "Files changed" tab.

import static seedu.address.logic.parser.CliSyntax.*;

public class RemarkCommandParser {
// /**

Choose a reason for hiding this comment

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

Any reason why the entire portion of code is commented out?

@nus-se-bot nus-se-bot mentioned this pull request Mar 20, 2019
36 tasks
@tanlongbin tanlongbin closed this Mar 21, 2019
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.

None yet

3 participants