Skip to content

Commit 6329676

Browse files
committed
chore: improve messages and docs
1 parent c2bb25f commit 6329676

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.golangci.next.reference.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ linters-settings:
15441544
# Maximum length for a receiver name.
15451545
# Default: 3
15461546
max-name-length: 6
1547-
# Allow to use pointer receiver and non pointer receiver on the same struct.
1547+
# Allow using pointer receiver and non-pointer receiver on the same struct.
15481548
# Default: true
15491549
type-consistency: false
15501550

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ require (
6767
github.com/kyoh86/exportloopref v0.1.11
6868
github.com/lasiar/canonicalheader v1.1.1
6969
github.com/ldez/gomoddirectives v0.2.4
70-
github.com/ldez/recv v0.1.1
70+
github.com/ldez/recv v0.1.2
7171
github.com/ldez/tagliatelle v0.5.0
7272
github.com/leonklingele/grouper v1.1.2
7373
github.com/lufeee/execinquery v1.2.1

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsonschema/golangci.next.jsonschema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2294,7 +2294,7 @@
22942294
"default": 3
22952295
},
22962296
"type-consistency": {
2297-
"description": "Allow to use pointer receiver and non pointer receiver on the same struct.",
2297+
"description": "Allow using pointer receiver and non-pointer receiver on the same struct",
22982298
"type": "boolean",
22992299
"default": true
23002300
}

pkg/golinters/recv/testdata/recv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type Foo struct { // want `the methods of "Foo" use different receiver names: f,
1010
func (f Foo) A() {}
1111
func (fo Foo) B() {}
1212

13-
type Bar struct{} // want `the methods of "Bar" use pointer receiver and non pointer receiver.`
13+
type Bar struct{} // want `the methods of "Bar" use pointer receiver and non-pointer receiver.`
1414

1515
func (b Bar) A() {}
1616
func (b *Bar) B() {}

0 commit comments

Comments
 (0)