Based on platformatec/engine-credo.
Lint your elixir code with:
docker run --rm -v $(PWD):/home/credo/code -t renderedtext/credo
Lint only one file:
docker run --rm -v $(PWD):/home/credo/code -t renderedtext/credo mix credo <file-path>
Explain reason of failure:
docker run --rm -v $(PWD):/home/credo/code -t renderedtext/credo mix credo explain <file-path>
As a makefile target:
lint:
docker run --rm -v $(PWD):/home/credo/code -t renderedtext/credo
- Continuous delivery