mariusbutuc
Configure Credo to use global .credo.exs file
Several projects are being added under the same umbrella project, and some of them leverage credo.
The docs mention that:
Credo is configured via a file called
.credo.exs. This file can live in your project’sconfig/or root folder, both is fine.
In the sub-apps, how can Credo be configured to use the same, global .credo.exs file, say from the root of the umbrella project?
Marked As Solved
ibgib
I’m doing this in ibGib with placing the credo file in the umbrella’s config directory and installing credo as a dependency in the individual apps. I don’t think there is anything else to configure it, but I’m not finding where documentation says to do this.
Works like a charm (just changed the function arity max yesterday). ![]()
Also Liked
mariusbutuc
For more context:
Credo traverses your tree back up until your home dir. At each step of the way it looks for
./.credo.exsas well as./config/.credo.exs. It then merges those configs recursively, with those “nearer” to yourcwdtaking precedence.
rrrene
I edited the README to reflect the umbrella use case: credo/README.md at master · rrrene/credo · GitHub
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









