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

Update rubocop-govuk to 4.0.0.pre.1 #1904

Merged
merged 4 commits into from
Feb 23, 2021
Merged

Update rubocop-govuk to 4.0.0.pre.1 #1904

merged 4 commits into from
Feb 23, 2021

Conversation

kevindew
Copy link
Member

Trello: https://trello.com/c/pqXbKZiC/215-test-rubocop-govuk-400pre1-prior-to-400-release

This bumps to the 4.0.0 pre release of rubocop-govuk which is part of trialling the new rubocop-govuk release. It seems to have gone into this app without too many problems which is good news.

All changes here are to resolve linter issues, the pin to 4.0.0.pre.1 is intended to be removed once the final release of rubocop-govuk 4.0.0 is out.

This is to test the pre-release out of 4.0.0. Further details are available
at: alphagov/rubocop-govuk#129
This stops these classes being defined in the global scope which is
typically not what a developer intends.
@kevindew kevindew changed the title Bump to Rubocop 4.0.0.pre.1 Update rubocop-govuk to 4.0.0.pre.1 Feb 23, 2021
Copy link
Contributor

@barrucadu barrucadu left a comment

Choose a reason for hiding this comment

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

I particularly like the changes to method arguments: changing positional arguments with default values to keyword arguments with default values, and putting required keyword arguments before optional ones.

Copy link
Contributor

@ChrisBAshton ChrisBAshton left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kevindew kevindew merged commit b84b3c3 into master Feb 23, 2021
@kevindew kevindew deleted the rubocop-govuk-4 branch February 23, 2021 13:40
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