From 4ba63e943907e6ebc377fcfb67f399d69ee17299 Mon Sep 17 00:00:00 2001 From: David Bao Date: Thu, 29 Sep 2022 12:30:41 +0800 Subject: [PATCH] ignore go.sum --- .github/workflows/misspell.yml | 2 +- .golangci.yml | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/misspell.yml b/.github/workflows/misspell.yml index 273aa54f9cb..dd9ee5d4fb3 100644 --- a/.github/workflows/misspell.yml +++ b/.github/workflows/misspell.yml @@ -15,4 +15,4 @@ jobs: - name: Check Misspell uses: docker://dragonflyoss/linter:v0.2.7 with: - args: bash -c "find . -type f | grep -v vendor | xargs misspell -error" + args: bash -c "find . -type f | grep -v vendor | grep -v go.sum | xargs misspell -error" diff --git a/.golangci.yml b/.golangci.yml index 61358762d96..45c60687bab 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,6 +10,7 @@ run: skip-dirs-use-default: true skip-files: + - go.mod - go.sum modules-download-mode: vendor @@ -17,11 +18,6 @@ run: build-tags: - containers_image_openpgp -linters-settings: - misspell: - ignore-words: - - importas - linters: # please, do not use `enable-all`: it's deprecated and will be removed soon. # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint