Rubocop

2018-03-22  本文已影响0人  Henry_Liu

RuboCop: A Ruby static code analyzer, based on the community Ruby style guide.
GitHub: https://github.com/bbatsov/rubocop

install
gem install rubocop

usage
Running rubocop with no arguments will check all ruby source files in the current directory:
$ rubocop
Alternatively you can rubocop a list of files and directories to check:
$rubocop directories files

上一篇 下一篇

猜你喜欢

热点阅读