A simple Emacs interface for RuboCop.
Please, note that the current version of
RuboCop 0.9.0 or later.
rubocop.el somewhere in your
favour the folder
(add-to-list 'load-path "~/.emacs.d/vendor") (require 'rubocop)
rubocop.el is naturally part of
Emacs Prelude. If you're a Prelude
rubocop.el is already properly configured and ready for
|Command||Description||RuboCop mode binding|
|M-x rubocop-check-project||Runs RuboCop on the entire project||
|M-x rubocop-check-directory||Prompts from a directory on which to run RuboCop||
|M-x rubocop-check-current-file||Runs RuboCop on the currently visited file||
|M-x rubocop-autocorrect-project||Runs auto-correct on the entire project||
|M-x rubocop-autocorrect-directory||Prompts for a directory on which to run auto-correct||
|M-x rubocop-autocorrect-current-file||Runs auto-correct on the currently visited file.||
If you use them often you might want to enable
rubocop-mode which will added some keybindings for them:
(add-hook 'ruby-mode-hook #'rubocop-mode)
Check out the project's issue list a list of unresolved issues. By the way - feel free to fix any of them and send me a pull request. :-)
Here's a list of all the people who have contributed to the development of RuboCop.el.
Bugs & Improvements
Bug reports and suggestions for improvements are always welcome. GitHub pull requests are even better! :-)