Command-line tool
rubocop
brew/rubocop
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Ruby static code analyzer and formatter, based on the community Ruby style guide
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install rubocop
Linux
brew install rubocop
Check all files in the current directory (including subdirectories)
rubocop
Check one or more specific files or directories
rubocop path/to/file_or_directory1 path/to/file_or_directory2 ...
Write output to file
rubocop --out path/to/file
Related command-line tools
- ruff
Extremely fast Python linter, written in Rust rust python python3 static-analysis linter static-code-analysis ruff… - datadog-static-analyzer
Static analysis tool for code quality and security - terrascan
A static code analyzer for Infrastructure as Code. - robot-framework-robocop
Static code analysis tool (linter) and code formatter for Robot Framework - clazy
Qt oriented static code analyzer - pylyzer
Fast static code analyzer & language server for Python - caracal
Static analyzer for Starknet smart contracts - astyle
Source code beautifier for C, C++, C#, and Java
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents