From 49d79715c9460984797b4d0225f2e958cacf3fa0 Mon Sep 17 00:00:00 2001 From: akutz Date: Tue, 13 Dec 2022 09:58:07 -0600 Subject: [PATCH] Exclude vim25/json from GH CodeStyle workflow This patch excludes the vendored vim25/json package from the GitHub action that checks code style for Go sources. --- .github/workflows/govmomi-go-lint.yaml | 2 +- .golangci.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/govmomi-go-lint.yaml b/.github/workflows/govmomi-go-lint.yaml index d48807a10..77a2d3ce6 100644 --- a/.github/workflows/govmomi-go-lint.yaml +++ b/.github/workflows/govmomi-go-lint.yaml @@ -99,7 +99,7 @@ jobs: boilerplate-check check \ --boilerplate ./hack/boilerplate/boilerplate.${{ matrix.extension }}.txt \ --file-extension ${{ matrix.extension }} \ - --exclude "(vendor|third_party|dist)/" | + --exclude "((vim25/json)|vendor|third_party|dist)/" | reviewdog -efm="%A%f:%l: %m" \ -efm="%C%.%#" \ -name="${{ matrix.language }} headers" \ diff --git a/.golangci.yml b/.golangci.yml index d6392fb94..25242dcaf 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -14,5 +14,6 @@ linters-settings: run: timeout: 6m skip-dirs: + - vim25/json - vim25/xml - cns/types