An interface for the Reek ruby linter
Please, note that the current version of reek.el requires Reek
Just drop reek.el and dash.el. somewhere in your load-path. I favour the folder ~/.emacs.d/vendor:
(add-to-list 'load-path "~/.emacs.d/vendor")
(require 'reek)
Command | Description | Reek mode binding |
---|---|---|
M-x reek-check-project | Runs Reek on the entire project | C-x R p |
M-x reek-check-directory | Prompts from a directory on which to run Reek | C-x R d |
M-x reek-check-current-file | Runs Reek on the currently visited file | C-x R f |
If you use them often you might want to enable reek-mode which will added some keybindings for them:
(add-hook 'ruby-mode-hook #'reek-mode)
Majority part of code is from RuboCop Emacs
Bug reports and suggestions for improvements are always welcome. GitHub pull requests are even better! :-)
Cheers, Daniel