Skip to content

mzagaja/Rubocop.novaextension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rubocop automatically lints all open files, then reports errors and warnings in Nova's Issues sidebar and the editor gutter:

Requirements

Rubocop requires some additional tools to be installed on your Mac:

Running the following command should globally install Rubocop for most use cases:

gem install rubocop rubocop-rails rubocop-rspec rubocop-md

Configuration

  • We now let you choose whether to prepend your rubocop with bundle exec. If you do not it will use rubocop from your default/global gemset.
  • RVM users can now prepend their rubocop command with rvm .ruby-version do to surmount configuration issues with rvm. It will automatically use the .ruby-version file in your project root if you enable this option.

Troubleshooting

If you have a .rubocop.yml with inherit_gem and use rvm you will need to make sure your gems are all available in the default gemset with rvm. The easiest way to do this is to avoid using app specific gemsets. Otherwise try:

cd $APP_DIRECTORY
rvm gemset use default
bundle install