-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (15 loc) · 657 Bytes
/
Makefile
File metadata and controls
22 lines (15 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SHELL=/bin/bash
.DEFAULT_GOAL=setup
CURRENTDIR=$(shell dirname `pwd`)
TIMESTAMP := $(shell date +"%Y%m%d%H%M%S")
# Lint application
lint:
@printf "\e[34m Running golangci-lint. ## \n"
golangci-lint run $(file) --go=1.24 --enable-all --disable tagliatelle,wsl,godox,lll,gochecknoglobals,exhaustruct,wrapcheck,depguard,ireturn,misspell,funlen,intrange,cyclop,gocognit,err113,dupl,nestif,revive --timeout=5m
@printf "\e[34m No issues found with golangci-lint. ## \n"
@sleep 2
@printf "\e[34m All error checks passed! ## \n"
test:
@printf "\e[34m Running tests... ## \n"
go test -race -count=1 ./...
@printf "\e[34m## All tests passed! ##\e[0m\n"