Skip to content

Commit bf070d4

Browse files
authored
Chore: Replace golangci-lint linters (hashicorp#390)
1 parent 6d9c0f0 commit bf070d4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.golangci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
issues:
22
max-per-linter: 0
3-
max-same-issues: 0
3+
max-issues-same-issues: 0
44

55
linters:
66
disable-all: true
77
enable:
8+
- copyloopvar
89
- durationcheck
910
- errcheck
10-
- exportloopref
1111
- forcetypeassert
1212
- godot
1313
- gofmt
@@ -19,10 +19,10 @@ linters:
1919
- nilerr
2020
- predeclared
2121
- staticcheck
22-
- tenv
2322
- unconvert
2423
- unparam
2524
- unused
25+
- usetesting
2626

2727
run:
2828
# Prevent false positive timeouts in CI

internal/localtypes/file_permission_type_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ func TestFilePermissionValueValidateAttribute(t *testing.T) {
9999
}
100100

101101
for name, testCase := range testCases {
102-
name, testCase := name, testCase
103-
104102
t.Run(name, func(t *testing.T) {
105103
got := xattr.ValidateAttributeResponse{}
106104

0 commit comments

Comments
 (0)