Skip to content

Commit 26c7b00

Browse files
committed
newlinter: using settings exported constants
1 parent 59de295 commit 26c7b00

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ require (
7373
github.com/ldez/usetesting v0.4.2
7474
github.com/leonklingele/grouper v1.1.2
7575
github.com/macabu/inamedparam v0.2.0
76-
github.com/manuelarte/funcorder v0.2.0
76+
github.com/manuelarte/funcorder v0.2.1
7777
github.com/maratori/testableexamples v1.0.0
7878
github.com/maratori/testpackage v1.1.1
7979
github.com/matoous/godox v1.1.0

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.

pkg/golinters/funcorder/funcorder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ func New(settings *config.FuncOrderSettings) *goanalysis.Linter {
2525
}
2626

2727
cfg[a.Name] = map[string]any{
28-
"constructor": constructor,
29-
"struct-method": structMethod,
28+
analyzer.ConstructorCheckName: constructor,
29+
analyzer.StructMethodCheckName: structMethod,
3030
}
3131
}
3232

0 commit comments

Comments
 (0)