Skip to content

Commit 7634999

Browse files
committed
fix linter settings
1 parent a9df4e7 commit 7634999

3 files changed

Lines changed: 18 additions & 17 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Go
1414
uses: actions/setup-go@v2
1515
with:
16-
go-version: ^1.13
16+
go-version: ^1.20
1717
id: go
1818

1919
- name: Checkout code
@@ -25,7 +25,7 @@ jobs:
2525
- name: Run golangci-lint
2626
uses: golangci/golangci-lint-action@v2
2727
with:
28-
version: v1.46
28+
version: v1.52
2929

3030
- name: Run tests
3131
run: go test -v $(go list ./... | grep -v vendor)

.golangci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ linters:
77
- bidichk
88
- bodyclose
99
- contextcheck
10-
- cyclop
11-
- deadcode
1210
- depguard
1311
- dogsled
1412
- dupl
1513
- durationcheck
1614
- exportloopref
1715
- forbidigo
1816
- funlen
19-
- gci
2017
- gocognit
2118
- goconst
2219
- gocritic
@@ -46,7 +43,6 @@ linters:
4643
- predeclared
4744
- promlinter
4845
- revive
49-
- structcheck
5046
- stylecheck
5147
- tenv
5248
- testpackage
@@ -56,7 +52,6 @@ linters:
5652
- unconvert
5753
- unparam
5854
- unused
59-
- varcheck
6055
- whitespace
6156

6257
issues:
@@ -84,3 +79,9 @@ issues:
8479
- errcheck
8580
- goconst
8681
- gocritic
82+
83+
linters-settings:
84+
revive:
85+
rules:
86+
- name: var-naming
87+
disabled: true

stack.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ func (f Frame) Name() string {
5757

5858
// Format formats the frame according to the fmt.Formatter interface.
5959
//
60-
// %s source file
61-
// %d source line
62-
// %n function name
63-
// %v equivalent to %s:%d
60+
// %s source file
61+
// %d source line
62+
// %n function name
63+
// %v equivalent to %s:%d
6464
//
6565
// Format accepts flags that alter the printing of some verbs, as follows:
6666
//
67-
// %+s function name and path of source file relative to the compile time
68-
// GOPATH separated by \n\t (<funcname>\n\t<path>)
69-
// %+v equivalent to %+s:%d
67+
// %+s function name and path of source file relative to the compile time
68+
// GOPATH separated by \n\t (<funcname>\n\t<path>)
69+
// %+v equivalent to %+s:%d
7070
func (f Frame) Format(s fmt.State, verb rune) {
7171
switch verb {
7272
case 's':
@@ -124,12 +124,12 @@ type StackTrace []Frame
124124

125125
// Format formats the stack of Frames according to the fmt.Formatter interface.
126126
//
127-
// %s lists source files for each Frame in the stack
128-
// %v lists the source file and line number for each Frame in the stack
127+
// %s lists source files for each Frame in the stack
128+
// %v lists the source file and line number for each Frame in the stack
129129
//
130130
// Format accepts flags that alter the printing of some verbs, as follows:
131131
//
132-
// %+v Prints filename, function, and line number for each Frame in the stack.
132+
// %+v Prints filename, function, and line number for each Frame in the stack.
133133
func (st StackTrace) Format(s fmt.State, verb rune) {
134134
switch verb {
135135
case 'v':

0 commit comments

Comments
 (0)