Skip to content

Require rubocop explicitly - #143

Merged
koppen merged 1 commit into
mainfrom
require_rubocop_explictly
Sep 9, 2026
Merged

koppen merged 1 commit into
mainfrom
require_rubocop_explictly

Conversation

@koppen

@koppen koppen commented Sep 3, 2026

Copy link
Copy Markdown
Member

Given that we run rubocop directly we should be explicit about the dependency.

Copilot AI lite review requested due to automatic review settings September 3, 2026 08:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

As added, rubocop will be auto-required by Bundler.require(*Rails.groups) in the demo app, so it should be marked require: false (or grouped) to avoid loading a CLI linter at runtime.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR makes RuboCop an explicit Bundler dependency so the repo can invoke it directly (e.g., via Rake/CI) rather than relying on it being pulled in indirectly.

Changes:

  • Add rubocop to the Gemfile dependencies.
File summaries
File Description
Gemfile Adds RuboCop as an explicit dependency for linting tasks.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Gemfile Outdated
Copilot AI review requested due to automatic review settings September 3, 2026 08:38
@koppen
koppen force-pushed the require_rubocop_explictly branch from 03919e3 to 9e61787 Compare September 3, 2026 08:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is straightforward and low-risk; only a minor consistency improvement (adding require: false) is suggested.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread Gemfile Outdated
Given that we run rubocop directly we should be explicit about
the dependency.
Copilot AI review requested due to automatic review settings September 3, 2026 08:42
@koppen
koppen force-pushed the require_rubocop_explictly branch from 9e61787 to 0efcf77 Compare September 3, 2026 08:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The RuboCop config enables additional plugins (e.g., rubocop-performance) that are not explicitly declared as Gemfile dependencies, which can lead to brittle linting if transitive dependencies change.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread Gemfile
Comment on lines 19 to 21
gem "rubocop-view_component", require: false
gem "rubocop", require: false
gem "standard", require: false
@koppen
koppen merged commit 7098e3e into main Sep 9, 2026
10 checks passed
@koppen
koppen deleted the require_rubocop_explictly branch September 9, 2026 13: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