-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
32 lines (26 loc) · 913 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
##@ General
.PHONY: help
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
.PHONY: todos
todos: ## Find TODOs in the codebase
@rg TODO
##@ Linting
.PHONE: spell
spell: ## Run cspell on project
cspell lint lib/**/*.ex lib/*.ex
cspell lint test/**/*.exs
cspell lint *.md
.PHONY: lint
lint: export TUCAN_DEV=true
lint: ## Lint tucan
mix compile --force --warnings-as-errors
mix format --check-formatted
mix credo --strict
mix doctor --failed
mix dialyzer --format dialyxir --format dialyxir --error_handling --extra_return --underspecs --unmatched_returns
mix docs -f html
mix test --warnings-as-errors --cover
.PHONY: lint-full
lint-full: lint spell
lint-full: ## Lint tucan & spellcheck