Flycheck checker for Erlang dialyzer

Emacs Erlang mode misses the definition of a flycheck checker using dialyzer. Just add these lines to your .emacs to enable it:

I prefer to use it after the normal Erlang checker, so I define the following, too:

(flycheck-add-next-checker 'erlang 'erlang-dialyzer)

I also wrote another Flycheck checker if you are interested.

Enjoy!