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

[W5.7][T12-3]LIN XU #428

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

[W5.7][T12-3]LIN XU #428

wants to merge 3 commits into from

Conversation

linxumelon
Copy link

No description provided.

@nus-se-pr-bot
Copy link

Hi @Woodnsuns,

Your Github username is not recognized. Please post here.

Note: this comment is posted by a bot. If you believe this is done in error, please create an issue at nus-se-pr-bot and add a link to this PR.

Copy link

@parvathy-sudhir-pillai parvathy-sudhir-pillai left a comment

Choose a reason for hiding this comment

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

Good effort on this PR @Woodnsuns. In particular, good job on,

  • updating docs
  • updating I/O tests

Suggestions to improve further:

  • update docs
  • update with more I/O tests to test the new functionality
  • limit the PR to one enhancement and avoid including changes not related to that enhancement or unmerged code from other PRs
  • pay closer attention to the coding standard

Please close the PR after viewing comments.

== Counting all persons: 'count'
Showing number of persons in the address book.

Format: 'count'

Choose a reason for hiding this comment

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

Good job updating the user doc

*/
public class CountCommand extends Command {

public static final String COMMAND_WORD = "count";

Choose a reason for hiding this comment

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

Try to avoid using public class member variables

@@ -95,6 +95,7 @@ private void assertConstructingInvalidAddCmdThrowsException(String name, String
fail(error);
}


Choose a reason for hiding this comment

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

Stray line break? It is a good practice to check the diff of the PR and fix any problems before submitting it.

import seedu.addressbook.util.TestUtil;
import java.util.Collections;
import java.util.List;
public class CountCommandTest {

Choose a reason for hiding this comment

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

Coding standard requires to include descriptive header comments for public classes

private static final List<ReadOnlyPerson> EMPTY_PERSON_LIST = Collections.emptyList();
@Test

public void countCheckZero() throws Exception {

Choose a reason for hiding this comment

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

Coding standard requires to include descriptive header comments for public methods

@@ -36,11 +36,14 @@ public void elementsAreUnique() throws Exception {
assertNotUnique(null, "a", "b", null);
}


Choose a reason for hiding this comment

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

This commit shouldn't be part of this PR. In general, a PR should not contain unmerged code from other PRs. Try to limit each PR to one enhancement, which means the PR should be based on a branch that starts off from the master branch that is in sync with the upstream master branch

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

Successfully merging this pull request may close these issues.

3 participants