From f4fd5fd0ea49cf54cd029bb86fa3c571028de735 Mon Sep 17 00:00:00 2001 From: Aditya Kajla Date: Tue, 25 Jul 2023 14:23:44 -0700 Subject: [PATCH] Only fail golangci starting from latest commit on main --- .github/workflows/go.yaml | 2 +- .golangci.yaml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 5a2224c8..66f2af67 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -45,5 +45,5 @@ jobs: with: version: latest args: -v --timeout=5m - only-new-issues: true + only-new-issues: false install-mode: "binary" diff --git a/.golangci.yaml b/.golangci.yaml index bdcdd068..162fd9d9 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -33,9 +33,9 @@ linters: # - gocritic # - gocyclo # - godot - # - godox + - godox # - goerr113 - # - gofumpt + - gofumpt # - gomnd # - gosec # - interfacebloat @@ -79,4 +79,6 @@ linters-settings: nestif: min-complexity: 7 issues: - new-from-rev: HEAD~1 + new-from-rev: 3f04848d5a946826ab51f00361d6793761ca6616 + max-issues-per-linter: 0 + max-same-issues: 0