TextMate bundle for the RuboCop Ruby Linter
MIT License
This bundle integrates RuboCop into TextMate.
There is one more subtle difference between running RuboCop implicitly (on save) or explicitly (via “Run RuboCop”): If your RuboCop configuration file excludes some files, those files will not be checked on save. They will however be checked if they are selected in the file browser and you use “Run RuboCop” (technically, running RuboCop on save uses --force-exclusion
).
To disable running RuboCop automatically add this to your .tm_properties
:
scopeAttributes = attr.no-rubocop
The bundle runs the rubocop executable like this:
bin/rubocop
) is present in the project directory, it is used.Gemfile.lock
with an entry for RuboCop, bundle exec rubocop
is used.rubocop
(with the project directory as working directory).This should work for almost all setups and versions of Ruby / RuboCop. Feel free to open an issue if it doesn’t work for you!
mkdir -p ~/Library/Application\ Support/Avian/Bundles
cd ~/Library/Application\ Support/Avian/Bundles
git clone https://github.com/noniq/RuboCop.tmbundle.git