Is there anyway to install credo globally?
Asked Answered
S

2

7

I'm a newbie with elixir, and I'm trying to configure my text editor (vim + ale as lint engine) with the credo linter for elixir, but seems like there is no way to have it installed on the system. Its documentation just say how to install it on your project as a dependency. Am I missing something?

Spermato answered 25/4, 2017 at 8:51 Comment(0)
N
10

From the readme:

Using Credo as stand alone

If you do not want or are not allowed to include Credo in the current project you can also install it as an archive:

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

Important: You have to install bunt as well:

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

You will now be able to invoke credo as usual through Mix with mix credo. This option is especially handy so credo can be used by external editors.

Nicolette answered 25/4, 2017 at 9:1 Comment(1)
Oh!, I didn't see that. I was just checking the installation section.Spermato
W
7

In 2021, just install it with:

$ mix escript.install hex credo

Then run it with:

$ credo
Week answered 3/9, 2021 at 8:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.