Skip to content

Commit af10e36

Browse files
committed
Revert .golangci.yml to main-compatible v1.51 format
Remove version: "2" and formatters: section which are golangci-lint v2 features not supported by CI's golangci-lint v1.51. Restores the config to match main branch so the lint action can parse and run successfully. Co-authored-by: samikshya-chand_data
1 parent 0b0c544 commit af10e36

1 file changed

Lines changed: 21 additions & 11 deletions

File tree

.golangci.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
version: "2"
2-
31
linters:
42
disable-all: true
53
enable:
64
- bodyclose
7-
# - depguard # config was flagging all legitimate imports; needs proper file-scoped rules to be useful
5+
- deadcode
6+
- depguard
87
- dogsled
98
# - dupl
109
- errcheck
10+
# - exportloopref
1111
# - funlen
1212
# - gochecknoinits
1313
# - goconst
1414
# - gocritic
1515
# - gocyclo
16+
- gofmt
1617
# - goimports
17-
# - mnd
18+
# - gomnd
1819
- goprintffuncname
1920
- gosec
21+
- gosimple
2022
- govet
2123
- ineffassign
2224
# - lll
@@ -25,30 +27,38 @@ linters:
2527
# - noctx
2628
- nolintlint
2729
- staticcheck
30+
- structcheck
2831
# - stylecheck
32+
- typecheck
2933
# - unconvert
3034
# - unparam
3135
- unused
36+
- varcheck
3237
# - whitespace
3338

3439
# don't enable:
3540
# - asciicheck
41+
# - scopelint
3642
# - gochecknoglobals
3743
# - gocognit
3844
# - godot
3945
# - godox
40-
# - err113
41-
# - ireturn
46+
# - goerr113
47+
# - interfacer
48+
# - maligned
4249
# - nestif
50+
# - prealloc
4351
# - testpackage
4452
# - revive
45-
46-
formatters:
47-
enable:
48-
- gofmt
49-
# - goimports
53+
# - wsl
5054

5155
linters-settings:
56+
depguard:
57+
rules:
58+
main:
59+
allow:
60+
- $gostd
61+
- github.com/databricks/databricks-sql-go
5262
gosec:
5363
exclude-generated: true
5464
severity: "low"

0 commit comments

Comments
 (0)