Skip to content

Commit ad5bb81

Browse files
committed
fix check version
1 parent 33423dc commit ad5bb81

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

.golangci.example.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ linters-settings:
592592

593593
tenv:
594594
# The following configurations enable checks prior to Go 1.17.
595-
f: false
595+
force: false
596596

597597
unparam:
598598
# Inspect exported functions, default is false. Set to true if no external program/library imports your code.

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ require (
6767
github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c
6868
github.com/shirou/gopsutil/v3 v3.21.7
6969
github.com/sirupsen/logrus v1.8.1
70-
github.com/sivchari/tenv v1.0.2
70+
github.com/sivchari/tenv v1.0.3
7171
github.com/sonatard/noctx v0.0.1
7272
github.com/sourcegraph/go-diff v0.6.1
7373
github.com/spf13/cobra v1.2.1

go.sum

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/linters_settings.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ type ThelperSettings struct {
449449
}
450450

451451
type TenvSettings struct {
452-
Force bool `mapstructure:"f"`
452+
Force bool `mapstructure:"force"`
453453
}
454454

455455
type UnparamSettings struct {

test/testdata/configs/tenv.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
linters-settings:
22
tenv:
3-
f: true
3+
force: true

0 commit comments

Comments
 (0)