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

don't count disabled offences if fail-level is autocorrect #1978

Merged
merged 1 commit into from
Jun 19, 2015
Merged

don't count disabled offences if fail-level is autocorrect #1978

merged 1 commit into from
Jun 19, 2015

Conversation

andreaseger
Copy link
Contributor

Stumbled across this case because we always use fail-level autocorrect and noticed that the wrong error-code is returned for files with disabled offences. This minor change should fix that.

there is probably a better place to put that spec but I have no idea how that >3000 lines spec file is structured (maybe it would be a good idea to somehow split that file for easier navigation)

@bbatsov
Copy link
Collaborator

bbatsov commented Jun 19, 2015

The fix looks good, but you'll have to rebase. Good remark about the huge spec. //cc @jonas054

fix rubocop offense, add CHANGELOG entry
bbatsov added a commit that referenced this pull request Jun 19, 2015
don't count disabled offences if fail-level is autocorrect
@bbatsov bbatsov merged commit 51ac6c2 into rubocop:master Jun 19, 2015
@bbatsov
Copy link
Collaborator

bbatsov commented Jun 19, 2015

👍

@jonas054
Copy link
Collaborator

👍 I agree about splitting cli_spec.rb. I'd like to see something like

spec/rubocop/cli/options/auto_correct_spec.rb

etc. Don't know in detail where to place each spec example, but if someone would start an effort to achieve a more visible structure, they'd have my support.

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

Successfully merging this pull request may close these issues.

3 participants