Skip to content

Commit 67d234b

Browse files
Migrate golangci-lint to v2
* migrate golangci lint to v2 * codereview fixes * codereview fixes * Changelog updated * fix linter issues in SLO tests and examples * fix linter issues in SLO tests and examples --------- Co-authored-by: Konstantin Prokopenko <[email protected]>
1 parent f07e8ea commit 67d234b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+292
-412
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
2-
sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/slo/g' .golangci.yml > tests/slo/.golangci.yml
3-
sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/examples/g' .golangci.yml > examples/.golangci.yml
2+
sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/slo/g' .golangci.yml | sed 's/path: tests\/slo/path: ./g' > tests/slo/.golangci.yml > tests/slo/.golangci.yml
3+
sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/examples/g' .golangci.yml | sed 's/path: examples/path: ./g' > examples/.golangci.yml

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88
workflow_dispatch:
99
env:
10-
GOLANGCI_LINT_VERSION: v1.60.3
10+
GOLANGCI_LINT_VERSION: v2.1.6
1111
GO_VERSION: '1.23'
1212
jobs:
1313
golangci:
@@ -23,7 +23,7 @@ jobs:
2323
go-version: ${{ env.GO_VERSION }}
2424
- uses: actions/checkout@v4
2525
- name: golangci-lint
26-
uses: golangci/golangci-lint-action@v4
26+
uses: golangci/golangci-lint-action@v8
2727
with:
2828
version: ${{ env.GOLANGCI_LINT_VERSION }}
2929
args: --timeout=5m
@@ -41,7 +41,7 @@ jobs:
4141
- name: generate examples golangci-lint config
4242
run: ./.github/scripts/golangci-lint-gen-configs.sh
4343
- name: golangci-lint
44-
uses: golangci/golangci-lint-action@v4
44+
uses: golangci/golangci-lint-action@v8
4545
with:
4646
version: ${{ env.GOLANGCI_LINT_VERSION }}
4747
args: --timeout=5m
@@ -61,7 +61,7 @@ jobs:
6161
- name: generate slo golangci-lint config
6262
run: ./.github/scripts/golangci-lint-gen-configs.sh
6363
- name: golangci-lint
64-
uses: golangci/golangci-lint-action@v4
64+
uses: golangci/golangci-lint-action@v8
6565
with:
6666
version: ${{ env.GOLANGCI_LINT_VERSION }}
6767
args: --timeout=5m

0 commit comments

Comments
 (0)