1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

20191217 gosec (#796)

* Add gosec to the Makefile

Signed-off-by: Chris Cummer <chriscummer@me.com>

* Fix some issues found by gosec

Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
Chris Cummer
2019-12-17 14:59:16 -08:00
committed by GitHub
parent cde904ff08
commit 10f761dbcb
11 changed files with 50 additions and 21 deletions

View File

@@ -48,6 +48,10 @@ coverage:
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out
## gosec: runs the gosec static security scanner against the source code
gosec:
gosec -tests ./...
## help: prints this help message
help:
@echo "Usage: \n"
@@ -104,14 +108,14 @@ lint:
staticcheck ./wtf
staticcheck ./main.go
## loc: displays the lines of code (LoC) count
loc:
@loc --exclude _sample_configs/ _site/ docs/ Makefile *.md
## run: executes the locally-installed version
run: build
bin/${APP}
## size: displays the lines of code (LoC) count
size:
@loc --exclude _sample_configs/ _site/ docs/ Makefile *.md
## test: runs the test suite
test: build
go test ./...