rubocop
Verified for current stable LTS
Rubocop Commands
Rubocop command syntax with verified terminal examples.
Commands
7 commands for Rubocop
rubocop Operations
Rubocop Command: Auto Correct Files
rubocop --auto-correct rubocop Operations
Rubocop Command: Exclude A Cop
rubocop --except <cop1 cop2 ...> rubocop Operations
Rubocop Command: Lint Ruby Files Current Directory
rubocop rubocop Operations
Rubocop Command: Lint Specific Files Or Directories
rubocop <path/to/file_or_directory1 path/to/file_or_directory2 ...> rubocop Operations
Rubocop Command: Run Specified Cops Only
rubocop --only <cop1 cop2 ...> rubocop Operations
Rubocop Command: View List Of Cops
rubocop --show-cops rubocop Operations
Rubocop Command: Write Output To File
rubocop --out <path/to/file> Suggest a Rubocop Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Rubocop workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.