format/configured/ruby
A formatter is configured
Implements format/configured for ruby.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | ruby |
| Scope | each |
| Kind | outcome |
| Source | library v0.8.0 |
| Selected by | fleetlint-recommended@v0.8.0 |
Requirement
RuboCop or Standard is configured in the project or a parent directory (their layout cops format the code), or rubocop, standardrb, rufo or syntax_tree runs in a hook, the task runner or CI. Another formatter is added with accept:.
Why
Without one formatter every editor reformats differently and diffs fill with whitespace churn that hides the real change.
Fix
Add .rubocop.yml and run rubocop --autocorrect in a hook.
Agent instruction: Add .rubocop.yml and a rubocop hook with –autocorrect; reformat in a separate commit.
A finding that names no file points at .rubocop.yml.
Sources
- https://fleetlint.org/baseline/#static-analysis (convention)
- https://rubystyle.guide/ (style-guide, Source Code Layout)
- https://docs.rubocop.org/rubocop/ (spec)
- https://fleetlint.org/stacks/#ruby
Generated by fleetlint docs from catalog v0.8.0.