All apps/RuboCop

RuboCop

rubocop

RuboCop is a Ruby static code analyzer (a.k.a. linter) and code formatter.

Runs as rubocop|macOS, Linux, Windows|rubocop.org

Command form

ai-draft · 3 tasks · 12 fields

Inspect files with RuboCop, optionally autocorrecting.

Opens the form; the finished command lands at your prompt, unrun
otty gui rubocop
Inspect Ruby codeExample values, fixed in this page — nothing here reaches a terminal
Basic
Files or directories
any
Only these cops
string
Exclude these cops
string
Advanced
Output formatter
string
Config file
file
Fail level
string
TasksEach one presets the form for one job
Inspect
filesonlyexceptformatconfigfail_level
Autocorrect safely
filesautocorrect
List files RuboCop would inspect
fileslist_target_files
ParametersOnly these flags are editable in the form
Files or directories
path · positional 0 · repeatable
Autocorrect (safe)
boolean
--autocorrect-a
Autocorrect (safe and unsafe)
boolean
--autocorrect-all-A
Lint cops only
boolean
--lint-l
Only these cops
string · repeatable
--only
Exclude these cops
string · repeatable
--except
Output formatter
string
--format-f
Config file
path
--config-c
Fail level
string
--fail-levelAIRCWEF
Fail fast
boolean
--fail-fast-F
List target files only
boolean
--list-target-files-L
Force configured exclusions
boolean
--force-exclusion
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed rubocop against its version. A form that does not match your version is not offered.