CmdID

CmdID / Commands

rubocop

Lint Ruby files. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Check all files in the current directory (including subdirectories)

rubocopIdentify

Check one or more specific files or directories

rubocop path/to/file_or_directory1 path/to/file_or_directory2 ...Identify

Write output to file

rubocop --out path/to/fileIdentify

View list of cops (linter rules)

rubocop --show-copsIdentify

Exclude a cop

rubocop --except cop1 cop2 ...Identify

Run only specified cops

rubocop --only cop1 cop2 ...Identify

Auto-correct files (experimental)

rubocop --auto-correctIdentify