From 6777fb9b973efb27729d591678c1c4a16c52b6ab Mon Sep 17 00:00:00 2001 From: Stephen Adamson Date: Sat, 11 Jul 2026 18:07:52 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20heavy=20linters=20from=20pre-co?= =?UTF-8?q?mmit=20(golangci-lint,=20staticcheck,=20gosec)=20=E2=80=94=20CI?= =?UTF-8?q?-only?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .githooks/pre-commit | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 8c24eb9..0c7b914 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -40,27 +40,6 @@ if [ -n "$BACKEND_FILES" ]; then fi cd .. - printf "${YELLOW}Checking golangci-lint...${NC}\n" - if ! cd backend && golangci-lint run ./... --timeout 3m 2>&1; then - printf "${RED}✖ golangci-lint failed${NC}\n" - FAILED=1 - fi - cd .. - - printf "${YELLOW}Checking staticcheck...${NC}\n" - if ! cd backend && staticcheck -tags "test,dev" ./... 2>&1; then - printf "${RED}✖ staticcheck failed${NC}\n" - FAILED=1 - fi - cd .. - - printf "${YELLOW}Checking gosec...${NC}\n" - if ! cd backend && gosec -severity medium -tags "test,dev" ./... 2>&1; then - printf "${RED}✖ gosec failed${NC}\n" - FAILED=1 - fi - cd .. - printf "${YELLOW}Checking go mod tidy...${NC}\n" cp backend/go.sum backend/go.sum.bak cp backend/go.mod backend/go.mod.bak