Upgrade Rubocop 1.91.0 - #1020
Merged
Merged
Conversation
Bumps rubocop from 1.88.2 to 1.91.0 and refreshes plugin gem versions (notably rubocop-shopify 3.0.1 -> 3.1.0, resolved against the Dockerfile's ruby:4.0.6-alpine base image), then regenerates docs/patterns.json and docs/description/* to match. Validated locally: - sbt "scalafmtCheckAll; test:scalafmt; scalafmt; universal:stage" passes - docker build -t codacy-rubocop . succeeds - codacy-plugins-test json/pattern/multiple DockerTest suites all pass against the built image Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
There was a problem hiding this comment.
Pull Request Overview
The generated ThreadSafety_DirChdir documentation contains a contradictory example that is labeled both bad and good without showing the configuration that permits block usage; this should be corrected before merging.
The required validation scenarios are not evidenced in the diff, and the lockfile is excluded, so dependency resolution and generated-output validation remain unverified.
About this PR
- Dependency resolution for the requested upgrade cannot be verified because Gemfile.lock is excluded from the diff.
- Please provide evidence that the required JSON, pattern, multiple-match, build/staging, Docker, Scalafmt, and codacy-plugins-test suites pass; these validation scenarios are currently not represented in the diff.
Test suggestions
- Validate generated patterns.json is valid and contains the RuboCop 1.91.0 metadata and cop set.
- Validate newly added cop descriptions and metadata are accepted by the JSON validation suite.
- Validate removed cops, including Style_DoubleCopDisableDirective, are absent from generated outputs.
- Run pattern fixture matching for existing and newly available cops.
- Run multiple-match fixture scenarios and build/Docker integration checks.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Validate generated patterns.json is valid and contains the RuboCop 1.91.0 metadata and cop set.
2. Validate newly added cop descriptions and metadata are accepted by the JSON validation suite.
3. Validate removed cops, including Style_DoubleCopDisableDirective, are absent from generated outputs.
4. Run pattern fixture matching for existing and newly available cops.
5. Run multiple-match fixture scenarios and build/Docker integration checks.
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
heliocodacy
approved these changes
Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bundle update(run inside aruby:4.0.6-alpine3.24container matching the Dockerfile's base image, since local Ruby 3.2.8 resolvedrubocop-shopifyto an older, incompatible version)Gemfile.lock(notablyrubocop-shopify3.0.1 → 3.1.0)docs/patterns.jsonanddocs/description/*via./scripts/doc_generate.sh ., reflecting new/renamed cops across plugins and the removedStyle_DoubleCopDisableDirectivecop (no test fixtures referenced it)Rubocop.scala'spluginslist and the doc generator's$pluginslist needed no changesValidation
sbt "scalafmtCheckAll; test:scalafmt; scalafmt; universal:stage"— passesdocker build -t codacy-rubocop .— succeedscodacy-plugins-testDockerTestsuites against the built image — all pass:json— all patterns/descriptions validpattern— all fixture matches correctmultiple— all multiple-tests scenarios correctTest plan
🤖 Generated with Claude Code