lint/ruby-config
RuboCop is configured
| Severity | warning |
| Tiers | all |
| Stacks | ruby |
| Scope | each |
| Kind | expr |
| Source | library v0.0.0-20261011205826-ecb4e9b3ffd4 |
| Selected by | fleetlint-recommended@0.1.0 |
Requirement
.rubocop.yml with NewCops: enable and the project’s metrics, or Standard’s .standard.yml; a .rubocop_todo.yml is the ratchet, not a permanent allowlist.
Why
Ruby’s flexibility is only safe with a linter that holds the line on method length, complexity and swallowed exceptions.
Check
file(".rubocop.yml") || file(".rubocop.yaml") || file(".standard.yml")Fix
Add .rubocop.yml and the rubocop gems to the Gemfile’s development group (fleetlint fix --apply does both).
Agent instruction: Add .rubocop.yml from the template, add rubocop with rubocop-performance and rubocop-rspec to the Gemfile, and run rubocop --autocorrect.
fleetlint fix can apply this rule’s fix automatically (2 action(s)).
See: https://fleetlint.org/stacks/#ruby
Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.