# 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. [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. [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. [Source](https://docs.rubocop.org/rubocop/1.81/cops_style.html)
- **CI enforcement** (unknown) — No reviewed evidence is recorded for this dimension.
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
- **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. [Source](https://docs.coderabbit.ai/tools/rubocop)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## 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)
