Last updated 6 years ago
We usefor code analyzing.
Runningrubocopwith no arguments will check all Ruby source files in the current directory:
rubocop
$ rubocop
Alternatively you can passrubocopa list of files and directories to check:
$ rubocop app spec lib/something.rb
You can also use Rubocop as a for your favorite IDE (Rubymine, Sublime, Atom etc.).