From fa771f1803e4f7c1a849987abaa649b9c699cf39 Mon Sep 17 00:00:00 2001 From: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> Date: Wed, 6 Dec 2023 10:20:06 -0500 Subject: [PATCH] Sync common Makefile Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> (cherry picked from commit 35e5113a98c7c4f840f409a110356f50d3f486fb) --- build/common/Makefile.common.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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