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

Release version 4.11.0 #304

Merged
merged 1 commit into from
Jun 29, 2023
Merged

Release version 4.11.0 #304

merged 1 commit into from
Jun 29, 2023

Conversation

ChrisBAshton
Copy link
Contributor

@ChrisBAshton ChrisBAshton commented Jun 28, 2023

This release drops support for Ruby 2.7 (breaking) and also updates rubocop, rubocop-ast, rubocop-rails, rubocop-rake and rubocop-rspec. Summary of changes in this diff.

Tested against the following apps (following the precedent in #272):

  • Whitehall
  • Content Publisher 5 offences detected:
    • 4 FactoryBot/CreateList 'convention' violations ("Prefer create_list" where app has used for example image_revisions: [create(:image_revision, filename: "960x640.jpg")],)
      • Autocorrectable ✅
    • 1 Lint/RedundantCopDisableDirective 'warning' violation ("Unnecessary disabling of Rails/CreateTableWithTimestamps" for line create_table :active_storage_variant_records do |t| # rubocop:disable Rails/CreateTableWithTimestamps).
  • Search API
  • GDS API Adapters

This release drops support for Ruby 2.7 (*breaking*) and also updates rubocop, rubocop-ast, rubocop-rails, rubocop-rake and rubocop-rspec. Summary of changes in [this diff](https://github.com/alphagov/rubocop-govuk/compare/c55d9f8a9b0693a0a4e6f93346e52362e4d43007..58b7f20640b4b68661f3771b0e803d83fc04ff12).

Tested against the following apps (following the precedent in #272):

- [Whitehall](https://github.com/alphagov/rubocop-govuk/actions/runs/5398651979/jobs/9804729806) ✅
- [Content Publisher](https://github.com/alphagov/rubocop-govuk/actions/runs/5398750820) 5 offences detected:
  - 4 `FactoryBot/CreateList` 'convention' violations ("Prefer `create_list`" where app has used for example `image_revisions: [create(:image_revision, filename: "960x640.jpg")],`)
    - Autocorrectable ✅
  - 1 `Lint/RedundantCopDisableDirective` 'warning' violation ("Unnecessary disabling of `Rails/CreateTableWithTimestamps`" for line `create_table :active_storage_variant_records do |t| # rubocop:disable Rails/CreateTableWithTimestamps`).
    - This appears to be down to [a change in rubocop-rails](rubocop/rubocop-rails#1011) in [2.20.0](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md#2200-2023-06-18)
- [Search API](https://github.com/alphagov/rubocop-govuk/actions/runs/5398752770) ✅
- [GDS API Adapters](https://github.com/alphagov/rubocop-govuk/actions/runs/5398753882) ✅
@ChrisBAshton ChrisBAshton marked this pull request as ready for review June 28, 2023 08:26
Copy link
Member

@kevindew kevindew left a comment

Choose a reason for hiding this comment

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

LGTM

@ChrisBAshton ChrisBAshton merged commit 22c851a into main Jun 29, 2023
@ChrisBAshton ChrisBAshton deleted the release-4.11.0 branch June 29, 2023 08:45
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