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

Add rubocop-govuk linting #55

Merged
merged 4 commits into from
Mar 27, 2023
Merged

Add rubocop-govuk linting #55

merged 4 commits into from
Mar 27, 2023

Conversation

kevindew
Copy link
Member

We noticed in #54 (comment) that this project doesn't have rubocop-govuk. This PR adds that in, corrects linting violations and simplifies the spec_helper.rb file (which came out a bit weird after the rubocop autocorrect)

@kevindew kevindew mentioned this pull request Mar 24, 2023
This presumably got missed many moons ago.

A specific version is added of rubocop-govuk to ensure there is not
divergence in linting between developers of the gem.
We don't expect the Rakefile to be executed outside of a developer
environment so we can avoid the exception handling for RSpec.

This resolves a linting violation: Lint/SuppressedException
It's unnecessary to have all these comments. This removes the comments
(while making some succinct) and applies some of the common RSpec
defaults that were commented out.
@kevindew kevindew merged commit c5f504a into main Mar 27, 2023
@kevindew kevindew deleted the add-rubocop branch March 27, 2023 11:11
@MuriloDalRi
Copy link
Contributor

@kevindew sorry I ended up merging my PR before this! Hope it was an easy rebase!

@kevindew
Copy link
Member Author

kevindew commented Mar 27, 2023

@MuriloDalRi no problem it was fine, only pain point was noticing main was failing I've opened #56 to resolve it.

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.

2 participants