Skip to content

Instantly share code, notes, and snippets.

@franciscoj
Last active August 22, 2016 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franciscoj/cf308995aaabf99e33a2 to your computer and use it in GitHub Desktop.
Save franciscoj/cf308995aaabf99e33a2 to your computer and use it in GitHub Desktop.
How to see reek analysis on emacs with flycheck.
;; 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)
@franciscoj
Copy link
Author

If using spacemacs, add it to your dotspacemacs/user-config

@emad-elsaid
Copy link

it can't find flycheck-define-checker, i guess because the layers are not loaded yet

@franciscoj
Copy link
Author

@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