mirror of
https://codeberg.org/scip/kleingebaeck.git
synced 2025-12-17 04:21:00 +01:00
added lint targets
This commit is contained in:
12
Makefile
12
Makefile
@@ -56,6 +56,14 @@ test: clean
|
|||||||
mkdir -p t/out
|
mkdir -p t/out
|
||||||
go test ./... $(ARGS)
|
go test ./... $(ARGS)
|
||||||
|
|
||||||
|
testlint: test lint
|
||||||
|
|
||||||
|
lint:
|
||||||
|
golangci-lint run
|
||||||
|
|
||||||
|
lint-full:
|
||||||
|
golangci-lint run --enable-all --exclude-use-default --disable exhaustivestruct,exhaustruct,depguard,interfacer,deadcode,golint,structcheck,scopelint,varcheck,ifshort,maligned,nosnakecase,godot,funlen,gofumpt,cyclop
|
||||||
|
|
||||||
testfuzzy: clean
|
testfuzzy: clean
|
||||||
go test -fuzz ./... $(ARGS)
|
go test -fuzz ./... $(ARGS)
|
||||||
|
|
||||||
@@ -88,5 +96,5 @@ show-versions: buildlocal
|
|||||||
@echo "### go version used for building:"
|
@echo "### go version used for building:"
|
||||||
@grep -m 1 go go.mod
|
@grep -m 1 go go.mod
|
||||||
|
|
||||||
lint:
|
# lint:
|
||||||
golangci-lint run -p bugs -p unused
|
# golangci-lint run -p bugs -p unused
|
||||||
|
|||||||
Reference in New Issue
Block a user