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