From 6da6fd07efbc1fce0f56c7177c9143ba3666a3c4 Mon Sep 17 00:00:00 2001 From: Ivan Porto Carrero Date: Sun, 21 Mar 2021 18:29:14 -0700 Subject: [PATCH] fix linter config --- .github/workflows/lint.yaml | 2 ++ .golangci.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 6d2e4155..7fa12ebe 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -8,3 +8,5 @@ jobs: - uses: actions/checkout@v2 - name: golangci-lint uses: golangci/golangci-lint-action@v2 + with: + args: --new-from-rev=master diff --git a/.golangci.yml b/.golangci.yml index f445bf3f..90f38cf8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,7 +13,6 @@ linters-settings: min-len: 2 min-occurrences: 4 linters: - enable-all: true disable: - maligned - lll @@ -41,3 +40,4 @@ linters: - errorlint - noctx - interfacer + - nilerr