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