rubocop
Lint Ruby files.
- Check all files in the current directory (including subdirectories):
rubocop
- Check one or more specific files or directories:
rubocop {path/to/file} {path/to/directory}
rubocop --out {path/to/file}
- View list of cops (linter rules):
rubocop --show-cops
rubocop --except {cop_1} {cop_2}
rubocop --only {cop_1} {cop_2}
- Auto-correct files (experimental):
rubocop --auto-correct
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).