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

Replace govuk-lint with rubocop-govuk and scss_lint-govuk #1558

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

cbaines
Copy link
Contributor

@cbaines cbaines commented Nov 26, 2019

The GOV.UK Lint gem is deprecated in favour of using Rubocop and
scss_lint directly with a set of shared configs.

@bevanloon bevanloon had a problem deploying to government-frontend-pr-1558 November 26, 2019 16:24 Failure
Rakefile Outdated
t.files = Dir.glob(["app/assets/stylesheets"])
end

task default: [:spec, "jasmine:ci", :rubocop, :scss_lint]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line and line 10 won't work together, I don't think.

Also, rubocop-govuk and scss_lint-govuk are dev/test dependencies, and all these Rakefiles run on Production deploys. You'll have to do something like in alphagov/email-alert-api#1045.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah, I obviously didn't read this closely enough...

I've also added a conditional to avoid the Production environment issue 👍

The GOV.UK Lint gem is deprecated in favour of using Rubocop and
scss_lint directly with a set of shared configs.
@cbaines cbaines merged commit c79540e into master Nov 26, 2019
@cbaines cbaines deleted the replace-govuk-lint branch November 26, 2019 17:14
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