Improve ruby code using Code Analyzer
Rubocop is a code analyzer gem which allows you to write code that follows the style guide dictated by the Ruby community, The gem also has lots of configuration options
Let's install Rubocop
gem install rubocop
cd your_rails_app
rubocopThis will scan all of your Ruby files in your application.
rubocop appThis will scan only the app directory.
rubocop -o code.rb-o writes output to a file instead of STDOUT
Comments
Post a Comment