diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d62b7849e..e24f8cae0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -32,6 +32,8 @@ jobs: - uses: actions/checkout@v3 - name: generate examples golangci-lint config run: sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/examples/g' .golangci.yml > examples/.golangci.yml + - name: disable specified linter in examples folder + run: sed -i 's/#disable:examples//g' examples/.golangci.yml - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: @@ -48,6 +50,8 @@ jobs: - uses: actions/checkout@v3 - name: generate slo golangci-lint config run: sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/slo/g' .golangci.yml > tests/slo/.golangci.yml + - name: disable specified linter in slo folder + run: sed -i 's/#disable:slo//g' tests/slo/.golangci.yml - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/.golangci.yml b/.golangci.yml index e58998c24..547762947 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -217,7 +217,6 @@ linters: - exhaustive - exhaustivestruct - exhaustruct - - forbidigo - forcetypeassert - funlen - gci @@ -247,6 +246,8 @@ linters: - varnamelen - wrapcheck - wsl +#disable:examples - forbidigo +#disable:slo - forbidigo issues: # List of regexps of issue texts to exclude, empty list by default. diff --git a/internal/table/client_test.go b/internal/table/client_test.go index 90937d41c..24ecee219 100644 --- a/internal/table/client_test.go +++ b/internal/table/client_test.go @@ -893,6 +893,7 @@ func (s *StubBuilder) createSession(ctx context.Context) (session *session, err return newSession(ctx, s.cc, config.New()) } +//nolint:forbidigo func (c *Client) debug() { fmt.Print("head ") for el := c.idle.Front(); el != nil; el = el.Next() {