forked from nix-united/golang-echo-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (16 loc) · 797 Bytes
/
Makefile
File metadata and controls
20 lines (16 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
lint_docker_compose_file = "./development/golangci_lint/docker-compose.yml"
lint-build:
@echo "🌀 ️container are building..."
@docker-compose --file=$(lint_docker_compose_file) build -q
@echo "✔ ️container built"
lint-check:
@echo "🌀️ code linting..."
@docker-compose --file=$(lint_docker_compose_file) run --rm echo-golinter golangci-lint run \
&& echo "✔️ checked without errors" \
|| echo "☢️ code style issues found"
lint-fix:
@echo "🌀 ️code fixing..."
@docker-compose --file=$(lint_docker_compose_file) run --rm echo-golinter golangci-lint run --fix \
&& echo "✔️ fixed without errors" \
|| (echo "⚠️️ you need to fix above issues manually" && exit 1)
@echo "⚠️️ run \"make lint-check\" again to check what did not fix yet"