# RuboCop

Keep Ruby code within a shared lint policy

Check selected cops against the Ruby versions the project supports. Keep existing exceptions explicit and review new diagnostics before applying autocorrection.

Category: Code quality
Languages: Ruby

## Standard evidence

Rubric v1 · 4/8 verified · 4 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — Style/RedundantReturn identifies explicit returns where Ruby already returns the final expression. Its exceptions and examples define the boundary. Reviewed 2026-11-28. [Cited source](https://docs.rubocop.org/rubocop/1.81/cops_style.html)
- **Measurement** (verified) — RuboCop checks configured cops and reports offenses by severity. Its exit behavior changes with --fail-level and autocorrection. Reviewed 2026-11-28. [Cited source](https://docs.rubocop.org/rubocop/1.81/usage/basic_usage.html)
- **Conformance** (verified) — The published Style/RedundantReturn examples label redundant and acceptable Ruby returns, giving reference inputs and expected classifications for this cop. Reviewed 2026-11-28. [Cited source](https://docs.rubocop.org/rubocop/1.81/cops_style.html)
- **CI enforcement** (unknown) — No reviewed evidence is recorded for this dimension.
  - Can a change trigger a useful check? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+RuboCop+%C2%B7+CI+enforcement&body=Practice%3A+rubocop%0ACriterion%3A+ci+%28rubric+v1%29%0ACan+a+change+trigger+a+useful+check%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
  - Can a newcomer complete a first run? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+RuboCop+%C2%B7+Getting+started&body=Practice%3A+rubocop%0ACriterion%3A+firstRun+%28rubric+v1%29%0ACan+a+newcomer+complete+a+first+run%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)
- **Real-world adoption** (verified) — CodeRabbit checks Ruby files using the repository RuboCop policy when supported. It skips configurations using unsupported inheritance or plugins. Reviewed 2026-11-28. [Cited source](https://docs.coderabbit.ai/tools/rubocop)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
  - Can an agent act on a specific finding? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+RuboCop+%C2%B7+Agent+guidance&body=Practice%3A+rubocop%0ACriterion%3A+guidance+%28rubric+v1%29%0ACan+an+agent+act+on+a+specific+finding%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.
  - Does the practice work in two agent harnesses? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+RuboCop+%C2%B7+Agent+portability&body=Practice%3A+rubocop%0ACriterion%3A+portability+%28rubric+v1%29%0ADoes+the+practice+work+in+two+agent+harnesses%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)

## Adoption

Use RuboCop in this repository to meet this standard: Keep Ruby code within a shared lint policy. Check selected cops against the Ruby versions the project supports. Keep existing exceptions explicit and review new diagnostics before applying autocorrection. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
bundle exec rubocop
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://docs.rubocop.org/)
- [Agent skill](/skills/rubocop/SKILL.md)
