fix: golangci-lint and gosec warnings

This commit is contained in:
2021-05-16 23:02:46 +02:00
parent a745311b7b
commit bd3e9ff43d
19 changed files with 204 additions and 155 deletions

View File

@ -103,6 +103,18 @@ PHONY+=test/coverage
test/coverage: test/unit
go tool cover -html=coverage.txt
# GOLANGCI-LINT
# ==============================================================================
PHONY+=golangci-lint
golangci-lint:
golangci-lint run --concurrency=$(shell nproc)
# GOSEC
# ==============================================================================
PHONY+=gosec
gosec:
gosec $(shell pwd)/...
# PHONY
# ==============================================================================
# Declare the contents of the PHONY variable as phony. We keep that information