Is there anyway to establish the credo globally?

I am a newbie with elixir and I am trying to set up my text editor (vim + ale as lint engine) with credo linter for elixir but there seems to be no way to install it on the system.Its documentation just says how to install it in a project as dependence. Did I miss something?

+3


source to share


1 answer


From the readme :

Using Credo as a standalone

If you don't want or cannot include Credo in your current project, you can also install it as an archive:

git clone git@github.com:rrrene/credo.git
cd credo
mix deps.get
mix archive.build
mix archive.install

      



Important: you also need to install bunt:

git clone https://github.com/rrrene/bunt
cd bunt
mix archive.build
mix archive.install

      

Now you can reference the credo as usual with Mix with mix credo. This option is especially handy, so the credo can be used by external editors.

+5


source







All Articles