Skip to content

Commit 61945a4

Browse files
feat: auto generate golangci-lint config for slo
1 parent e215590 commit 61945a4

File tree

3 files changed

+6
-241
lines changed

3 files changed

+6
-241
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v3
29+
30+
- name: generate slo golangci-lint config
31+
run: sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/slo/g' .golangci.yml > tests/slo/.golangci.yml
32+
2933
- name: golangci-lint
3034
uses: golangci/golangci-lint-action@v3
3135
with:

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ linters-settings:
6464
gofmt:
6565
# simplify code: gofmt with `-s` option, true by default
6666
simplify: true
67+
gofumpt:
68+
module-path: github.com/ydb-platform/ydb-go-sdk/v3
6769
goimports:
6870
# put imports beginning with prefix after 3rd-party packages;
6971
# it's a comma-separated list of prefixes

tests/slo/.golangci.yml

Lines changed: 0 additions & 241 deletions
This file was deleted.

0 commit comments

Comments
 (0)