Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Allow v0.49.x of rubocop and bump version to v3.0.0 #77

Merged
merged 5 commits into from
Jul 26, 2017

Conversation

floehopper
Copy link
Contributor

@floehopper floehopper commented Jul 25, 2017

  • Relaxes the gem specification constraint on rubocop from "~> 0.43.0" to "~> 0.49.0". The latest version of rubocop is v0.49.1.
  • Fixes some errors & warnings by making changes to configs/rubocop/gds-ruby-styleguide.yml.
  • Bumps version of this gem from v2.1.0 to v3.0.0 - similar changes in the past seem to have been major version increments.
  • Update CHANGELOG.md

The changes in rubocop are mostly bug fixes or new features, so I don't think there's too much risk in relaxing the constraint to allow the latest version. And in any case each project is in control of which version of govuk-lint being used and thence the version rubocop.

My specific motivation is the relaxation of the "Style/VariableNumber" rule in this commit which I believe was first released in v0.44.0. The strictness of this rule in v0.43.0 is causing me a problem in asset-manager app where I want to use a local variable named aws_s3_bucket_name.

The changes are mostly bug fixes or new features, so I don't think
there's too much risk in relaxing the constraint to allow the latest
version (v0.49.1) of `rubocop`.

My specific motivation is the relaxation of the "Style/VariableNumber"
rule in this commit [1] which I believe was first released in v0.44.0.

[1]: rubocop/rubocop@833aad6
This was in response to the following error message which occurred when
running `govuk-lint-ruby` in a project using rubocop v0.49.1:

    obsolete parameter IndentWhenRelativeTo (for Layout/CaseIndentation)
    found in $PROJECT_ROOT/configs/rubocop/gds-ruby-styleguide.yml
    `IndentWhenRelativeTo` has been renamed to `EnforcedStyle`
This was in response to the following error message which occurred when
running `govuk-lint-ruby` in a project using rubocop v0.49.1:

    Error: The `Style/MethodCallParentheses` cop has been renamed to
    `Style/MethodCallWithoutArgsParentheses`. (obsolete configuration
    found in $PROJECT_ROOT/configs/rubocop/gds-ruby-styleguide.yml,
    please update it)
This was in response to the following warning which occurred when
running `govuk-lint-ruby` in a project using rubocop v0.49.1:

    Warning: unrecognized parameter
    Style/TrailingCommaInLiteral:SupportedStyles found in
    $PROJECT_ROOT/configs/rubocop/gds-ruby-styleguide.yml
@floehopper floehopper changed the title Allow v0.49.x of rubocop Allow v0.49.x of rubocop and bump version to v3.0.0 Jul 25, 2017
@floehopper
Copy link
Contributor Author

@boffbowsh: Thanks for reviewing.

@floehopper floehopper merged commit 9160c19 into master Jul 26, 2017
@floehopper floehopper deleted the allow-v0.49.x-of-rubocop branch July 26, 2017 09:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants