Linting Elixir with Credo

No Comments

Got excited about Credo on a recent episode of The Elixir Fountain.
Seems to work quite well. Though, I couldn’t get the Atom plugin to work. But the command line works great.

Github repo for Credo provides all of the instructions to install.
I installed it as stand alone:

$ git clone [email protected]:rrrene/credo.git
$ cd credo
$ mix deps.get
$ mix archive.build
$ mix archive.install

Also had to install bunt, since it is a dependency:
git clone https://github.com/rrrene/bunt
cd bunt
mix archive.build
mix archive.install

After that, run “mix yourElixirFile.exs” and it will lint your file with something like this:

Credo Output

Categories: Elixir

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Loading Facebook Comments ...