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

Enable rails-specific rules for rubocop-govuk #1563

Merged
merged 1 commit into from
Dec 6, 2019

Conversation

benjamineskola
Copy link
Contributor

trello: https://trello.com/c/Lijki8aj/1584-3-enable-rails-rubocop-rules-via-rubocop-govuk-on-all-our-rails-apps


Visual regression results:
https://government-frontend-pr-[THIS PR NUMBER].surge.sh/gallery.html

Component guide for this PR:
https://government-frontend-pr-[THIS PR NUMBER].herokuapp.com/component-guide

Mostly just running rubocop --auto-correct; however, a few special
cases:

- Some checks have been disabled. This is intended to be temporary;
  making them pass will require some kind of refactoring (`OutputSafety`
  and `HelperInstanceVariable`) or decisions about the behaviour of the
  code (`HasManyOrHasOneDependent` and `InverseOf`) that I felt were out
  of scope for this PR. I'll be raising them as future tasks.
@issyl0 issyl0 merged commit a800707 into master Dec 6, 2019
@issyl0 issyl0 deleted the rubocop-govuk-enable-rails branch December 6, 2019 16:43
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