Setup Dialyxir and Credo code analyzers:

- Refactor codebase according to analyzers
This commit is contained in:
mitchell 2019-12-30 21:50:39 -05:00
parent 593f29d271
commit b699e661e2
15 changed files with 74 additions and 44 deletions

View file

@ -1,16 +1,17 @@
.PHONY: all build clean install start test
.PHONY: all build clean install lint start test
build: install test clean
build: install lint test clean
docker build -t shortnr:latest .
clean:
mix clean --deps
mix clean
install:
mix deps.get
install-prod:
mix deps.get --only prod
lint:
mix dialyzer
mix credo --strict
start:
iex -S mix run --no-halt