generated from atomicgo/template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
22 lines (20 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# ┌───────────────────────────────────────────────────────────────────┐
# │ │
# │ IMPORTANT NOTE │
# │ │
# │ This file is synced with https://github.com/atomicgo/template │
# │ │
# │ Please apply all changes to the template repository │
# │ │
# └───────────────────────────────────────────────────────────────────┘
test:
@echo "# Running tests..."
@go test -v ./...
lint:
@echo "# Linting..."
@echo "## Go mod tidy..."
@go mod tidy
@echo "## Fixing whitespaces..."
@wsl --allow-cuddle-declarations --force-err-cuddling --force-case-trailing-whitespace 3 --fix ./...
@echo "## Running golangci-lint..."
@golangci-lint run