A Ruby static code analyzer, based on the community Ruby style guide. http://rubocop.readthedocs.io
github
https://github.com/bbatsov/rubocop/
安装
gem install rubocop
配置
vi .rubocop.yml
运行
rubocop file.rb
rubocop file.rb -a 自动修改
A Ruby static code analyzer, based on the community Ruby style guide. http://rubocop.readthedocs.io
github
https://github.com/bbatsov/rubocop/
安装
gem install rubocop
配置
vi .rubocop.yml
运行
rubocop file.rb
rubocop file.rb -a 自动修改