fleetlint Policy for a fleet of repositories
v0.4
Getting started

lint/configured/ruby

A linter is configured

Implements lint/configured for ruby.

Severitywarning
Tiers1, 2
Stacksruby
Scopeeach
Kindoutcome
Sourcelibrary v0.1.0
Selected byfleetlint-recommended@v0.1.0

Requirement

RuboCop is configured (.rubocop.yml in the project or a parent directory) or Standard is used (.standard.yml or the standard gem); 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.

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/baseline/#static-analysis, https://fleetlint.org/stacks/#ruby


Generated by fleetlint docs from catalog v0.1.0.