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
Fix violations of and reenable rubocop Rails/Delegate. #14770
Conversation
The failure seems legitimate.
|
My belief is that this is because Does it make sense to enable the rubocop and disable the check within |
Hey Asher, code in shared shouldn't have rails code in it, because it might be used in pegasus where rails isn't available. I would say that you could enable the check only for I don't think it makes sense to disable only for one file, and I'm not sure what you mean by 'fix the "real" violation'. |
9c39320
to
06c95c5
Compare
LGTM |
By "real" violation, I mean the violation in PTAL. |
Fixes initially generated automatically by
bundle exec rubocop --only Rails/Delegate --auto-correct
, with the changes toshared/
reverted by hand in06c95c5
.Note that this PR enables the check only for the
dashboard/
directory tree, as the rest of our codebase is not Rails.