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

False positives for # rubocop:disable Metrics/BlockLength (added in 0.44.0) #14

Closed
CaseyLeask opened this issue Jan 3, 2017 · 4 comments

Comments

@CaseyLeask
Copy link

CaseyLeask commented Jan 3, 2017

Added in https://github.com/bbatsov/rubocop/releases/tag/v0.44.0 via rubocop/rubocop#3566, this now causes the line

# rubocop:disable Metrics/BlockLength

to give a false positive

Unnecessary disabling of `Metrics/BlockLength` (did you mean `Metrics/LineLength`?).
@CaseyLeask CaseyLeask changed the title False positive 'Unnecessary disabling of Metrics/BlockLength' False positives for Metrics/BlockLength (added in 0.44.0) Jan 3, 2017
@CaseyLeask CaseyLeask changed the title False positives for Metrics/BlockLength (added in 0.44.0) False positives for # rubocop:disable Metrics/BlockLength (added in 0.44.0) Jan 3, 2017
@pedrorijo91
Copy link
Contributor

@rtfpessoa @machadoit can you have a look at this?

@rtfpessoa
Copy link
Contributor

@CaseyLeask I am not sure I understand the problem. You want us to update Rubocop to the latest version 0.44.0?

@CaseyLeask
Copy link
Author

@rtfpessoa In a nutshell, yes.

Rubocop 0.44.0 adds the linting rule Metrics/BlockLength. If this rule is disabled like this

# rubocop:disable Metrics/BlockLength

then codacy-rubocop reports this disabling as unnecessary, and reports this as a code quality issue.

@rtfpessoa
Copy link
Contributor

rtfpessoa commented Jan 11, 2017

@CaseyLeask ok, nice. I just did an update.

Next time you need to change the version feel free to send a PR. Usually helps to get it faster into production.

This should be released, worse case, in the next couple of days.

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

No branches or pull requests

3 participants