diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8e28fe96..fb5ba30e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,5 +15,3 @@ jobs: with: go-version-file: go.mod - uses: golangci/golangci-lint-action@v3 - with: - args: --enable goimports diff --git a/.golangci.yml b/.golangci.yml index f196941c..55c312ac 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,6 +2,10 @@ run: timeout: 3m # 1m default times out on github-action runners +linters: + enable: + - goimports + output: # Sort results by: filepath, line and column. sort-results: true diff --git a/bin/lint b/bin/lint index 3ff1a734..564f6b32 100755 --- a/bin/lint +++ b/bin/lint @@ -18,5 +18,5 @@ linted_os_list=(linux) for os in ${linted_os_list[*]}; do echo -e "\n lint-ing with GOOS=${os}..." - GOOS="${os}" golangci-lint run --enable goimports "${ROOT_DIR}"/... + GOOS="${os}" golangci-lint run "${ROOT_DIR}"/... done