diff --git a/build/common/Makefile.common.mk b/build/common/Makefile.common.mk index 929bfe00..d6479c92 100755 --- a/build/common/Makefile.common.mk +++ b/build/common/Makefile.common.mk @@ -74,7 +74,7 @@ fmt-dependencies: fmt: fmt-dependencies find . -not \( -path "./.go" -prune \) -name "*.go" | xargs gofmt -s -w find . -not \( -path "./.go" -prune \) -name "*.go" | xargs gofumpt -l -w - find . -not \( -path "./.go" -prune \) -name "*.go" | xargs gci write -s standard -s default -s "prefix($(shell cat go.mod | head -1 | cut -d " " -f 2))" + find . -not \( -path "./.go" -prune \) -name "*.go" | xargs gci write --skip-generated -s standard -s default -s "prefix($(shell cat go.mod | head -1 | cut -d " " -f 2))" ############################################################ # Unit Test @@ -103,7 +103,7 @@ gosec: .PHONY: gosec-scan gosec-scan: gosec - $(GOSEC) -fmt sonarqube -out gosec.json -stdout -exclude-dir=.go -exclude-dir=test ./... + $(GOSEC) -fmt sonarqube -out gosec.json -stdout -exclude-dir=.go -exclude-dir=test $(GOSEC_ARGS) ./... ############################################################ # E2E Test