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

Add missing rules and improve tests #69

Merged
merged 1 commit into from
Mar 3, 2017

Conversation

nunofgs
Copy link
Contributor

@nunofgs nunofgs commented Mar 2, 2017

This PR:

  • Adds a few rules that were missing from the tests.
  • Fixes a few issues in our fixtures that were triggering duplicate rules.
  • Improves the tests by making sure that the exact list of rules is expected (and not a subset).

@nunofgs nunofgs added the bug label Mar 2, 2017
Copy link
Contributor

@rplopes rplopes left a comment

Choose a reason for hiding this comment

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

Other than some small comments, LGTM.

@@ -123,17 +131,16 @@ try {
noop();
} catch (e) {}

// `no-labels`.
// `no-labels` and `no-unused-labels`.
Copy link
Contributor

Choose a reason for hiding this comment

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

We're not using no-unused-labels in our list of rules. Should we ignore this, since it's a rule that gets redundant by no-labels anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I used the label in the fixtures so that this particular rule no longer triggers.

@@ -193,10 +196,10 @@ noop(oneVar1);
noop(oneVar2);

// `one-var-declaration-per-line`.
const oneVar1 = 'foo'; const oneVar2 = 'bar';
const oneVar3 = 'foo'; const oneVar4 = 'bar';
Copy link
Contributor

Choose a reason for hiding this comment

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

Having these variables start counting at 3 is weird. Follow another naming pattern maybe?

@nunofgs nunofgs force-pushed the bugfix/fix-missing-rules-in-tests branch 2 times, most recently from 804d70a to 737599c Compare March 3, 2017 11:51
@nunofgs nunofgs force-pushed the bugfix/fix-missing-rules-in-tests branch from 737599c to 963e693 Compare March 3, 2017 13:30
@rplopes rplopes merged commit 37a776b into master Mar 3, 2017
@rplopes rplopes deleted the bugfix/fix-missing-rules-in-tests branch March 3, 2017 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants