Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Import new CustomCops/RefuteNot cop from rails/rails #26

Merged

Conversation

koic
Copy link
Contributor

@koic koic commented Apr 8, 2018

This PR imports rails/rails#32441.

IMO, I think that it would be more plausible to write require: rubocop-rails instead of require: custom_cops in config/rails.yml, but first of all this PR writes require: custom_cops according to upstream.

This PR imports rails/rails#32441.

IMO, I think that it would be more plausible to write
`require: rubocop-rails` instead of `require: custom_cops`
in config/rails.yml, but first of all this PR writes
`require: custom_cops` according to upstream.
@koic koic force-pushed the backport_new_custom_cops_refute_not_test_cop branch from cc14f5b to e86cb2c Compare April 8, 2018 15:30
@koic koic changed the title Backport new CustomCops/RefuteNotTest cop from rails/rails Import new CustomCops/RefuteNotTest cop from rails/rails Apr 8, 2018
@toshimaru
Copy link
Owner

toshimaru commented Apr 11, 2018

Hmm, I'm not big fun of the decision of using custom_cops, but okay, let's follow the upstream.

Thanks for sending PR! (As always!!)

@toshimaru toshimaru merged commit bf3ce5c into toshimaru:master Apr 11, 2018
@toshimaru
Copy link
Owner

v1.3.0 has been published.

@koic koic deleted the backport_new_custom_cops_refute_not_test_cop branch April 12, 2018 03:51
composerinteralia added a commit to composerinteralia/rails that referenced this pull request Apr 19, 2018
We added `assert_not` in f75addd "to replace warty 'assert !foo'".
fa8d35b agrees that it is warty, and so do I. This custom Rubocop rule
turns the wart into a violation.

As with my last custom cop, rails#32441,
I want to make sure this looks right on code climate before pushing
another commit to autocorrect everything.

@toshimaru I just noticed
toshimaru/rubocop-rails#26
Is there a better way to add these custom cops, or were you saying we
shouldn't have custom cops at all?
@koic koic changed the title Import new CustomCops/RefuteNotTest cop from rails/rails Import new CustomCops/RefuteNot cop from rails/rails Apr 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants