We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rubocop --auto-gen-config does not correctly repair the NumericLiterals cop. For a 6 digit number, the following is generated:
rubocop --auto-gen-config
NumericLiterals: MinDigits: 6
Either the cop should ignore 6 digit numbers or the cop's auto-gen should be 7.
Sample file and version:
$ cat sample.rb y = 123456 puts y $ rubocop -V 0.19.0 (using Parser 2.1.7, running on ruby 1.9.3 x86_64-darwin12.5.0)
The text was updated successfully, but these errors were encountered:
You're right. I'll fix it.
Sorry, something went wrong.
NumericLiterals
I just put in a PR for this. Hopefully, I beat you to it. A simple one to get my feet wet: #887
30cca76
Merge pull request #887 from tmorris-fiksu/numeric_literals_auto-gen_…
d685e26
…config_off_by_one_884 [#884] Fix --auto-gen-config for `NumericLiterals` so MinDigits is correct.
jonas054
Successfully merging a pull request may close this issue.
rubocop --auto-gen-config
does not correctly repair the NumericLiterals cop.For a 6 digit number, the following is generated:
Either the cop should ignore 6 digit numbers or the cop's auto-gen should be 7.
Sample file and version:
The text was updated successfully, but these errors were encountered: