Last active
August 22, 2016 09:33
-
-
Save franciscoj/cf308995aaabf99e33a2 to your computer and use it in GitHub Desktop.
How to see reek analysis on emacs with flycheck.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; To have reek to smell-check the ruby files | |
(flycheck-define-checker ruby-reek | |
"A Ruby smeel checker using reek | |
See URL `https://github.com/troessner/reek'." | |
:command ("reek" "--format=xml" | |
source-original) | |
:standard-input t | |
:error-parser flycheck-parse-checkstyle | |
:modes (enh-ruby-mode ruby-mode) | |
:next-checkers ((info . ruby-rubocop))) | |
(add-to-list 'flycheck-checkers 'ruby-reek) |
it can't find flycheck-define-checker
, i guess because the layers are not loaded yet
@blazeeboy mmm, weird this is the way I use it https://github.com/franciscoj/dot-files/blob/master/emacs/spacemacs#L357
How do you try to add it?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If using spacemacs, add it to your
dotspacemacs/user-config