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

Update: no-magic-numbers false negative on reassigned vars (fixes #4616) #7028

Merged
merged 1 commit into from Sep 3, 2016

Conversation

not-an-aardvark
Copy link
Member

What issue does this pull request address?
#4616

What changes did you make? (Give an overview)

This causes no-magic-numbers to report cases where variables are reassigned to magic numbers:

var foo;
foo = 1234;

Is there anything you'd like reviewers to focus on?

Since no-magic-numbers had a test ensuring the opposite behavior, this might be considered a breaking change rather than a bugfix.

@mention-bot
Copy link

@not-an-aardvark, thanks for your PR! By analyzing the annotation information on this pull request, we identified @kombucha, @vitorbal and @pmcelhaney to be potential reviewers

@eslintbot
Copy link

LGTM

@nzakas
Copy link
Member

nzakas commented Sep 2, 2016

This would be considered an "Update:" (trigger semver minor) rather than "Fix". Bug fixes that introduce new warnings are minor updates for us.

@nzakas
Copy link
Member

nzakas commented Sep 2, 2016

Code LGTM, can you also update the rule docs?

@eslintbot
Copy link

LGTM

@not-an-aardvark not-an-aardvark changed the title Fix: no-magic-numbers false negative for reassigned vars (fixes #4616) Update: no-magic-numbers false negative on reassigned vars (fixes #4616) Sep 2, 2016
@not-an-aardvark
Copy link
Member Author

Fixed Updated the commit message and the docs.

@nzakas
Copy link
Member

nzakas commented Sep 3, 2016

Lgtm. Thanks!

@nzakas nzakas merged commit 22c7e09 into eslint:master Sep 3, 2016
@not-an-aardvark not-an-aardvark deleted the issue4616 branch September 3, 2016 17:29
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants