Skip to content

Commit 4c6bfa3

Browse files
committed
newlinter: renaming gofuncor to funcorder
1 parent 84a4968 commit 4c6bfa3

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

.golangci.next.reference.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ linters:
4343
- fatcontext
4444
- forbidigo
4545
- forcetypeassert
46+
- funcorder
4647
- funlen
4748
- ginkgolinter
4849
- gocheckcompilerdirectives
@@ -55,7 +56,6 @@ linters:
5556
- gocyclo
5657
- godot
5758
- godox
58-
- gofuncor
5959
- goheader
6060
- gomoddirectives
6161
- gomodguard
@@ -151,6 +151,7 @@ linters:
151151
- fatcontext
152152
- forbidigo
153153
- forcetypeassert
154+
- funcorder
154155
- funlen
155156
- ginkgolinter
156157
- gocheckcompilerdirectives
@@ -163,7 +164,6 @@ linters:
163164
- gocyclo
164165
- godot
165166
- godox
166-
- gofuncor
167167
- goheader
168168
- gomoddirectives
169169
- gomodguard

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/gofuncor v0.1.1
76+
github.com/manuelarte/funcorder v0.1.2
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/gofuncor/gofuncor.go renamed to pkg/golinters/funcorder/funcorder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package gofuncor
1+
package funcorder
22

33
import (
4-
"github.com/manuelarte/gofuncor/pkg/analyzer"
4+
"github.com/manuelarte/funcorder/pkg/analyzer"
55
"golang.org/x/tools/go/analysis"
66

77
"github.com/golangci/golangci-lint/v2/pkg/goanalysis"

pkg/golinters/gofuncor/gofuncor_integration_test.go renamed to pkg/golinters/funcorder/funcorder_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gofuncor
1+
package funcorder
22

33
import (
44
"testing"

pkg/golinters/gofuncor/testdata/gofuncor.go renamed to pkg/golinters/funcorder/testdata/funcorder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//golangcitest:args -Egofuncor
1+
//golangcitest:args -Efuncorder
22
package testdata
33

44
import "time"

pkg/lint/lintersdb/builder_linter.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
"github.com/golangci/golangci-lint/v2/pkg/golinters/fatcontext"
3030
"github.com/golangci/golangci-lint/v2/pkg/golinters/forbidigo"
3131
"github.com/golangci/golangci-lint/v2/pkg/golinters/forcetypeassert"
32+
"github.com/golangci/golangci-lint/v2/pkg/golinters/funcorder"
3233
"github.com/golangci/golangci-lint/v2/pkg/golinters/funlen"
3334
"github.com/golangci/golangci-lint/v2/pkg/golinters/gci"
3435
"github.com/golangci/golangci-lint/v2/pkg/golinters/ginkgolinter"
@@ -44,7 +45,6 @@ import (
4445
"github.com/golangci/golangci-lint/v2/pkg/golinters/godox"
4546
"github.com/golangci/golangci-lint/v2/pkg/golinters/gofmt"
4647
"github.com/golangci/golangci-lint/v2/pkg/golinters/gofumpt"
47-
"github.com/golangci/golangci-lint/v2/pkg/golinters/gofuncor"
4848
"github.com/golangci/golangci-lint/v2/pkg/golinters/goheader"
4949
"github.com/golangci/golangci-lint/v2/pkg/golinters/goimports"
5050
"github.com/golangci/golangci-lint/v2/pkg/golinters/golines"
@@ -255,6 +255,10 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
255255
WithLoadForGoAnalysis().
256256
WithURL("https://github.com/gostaticanalysis/forcetypeassert"),
257257

258+
linter.NewConfig(funcorder.New()).
259+
WithSince("v2.1.0").
260+
WithURL("https://github.com/manuelarte/funcorder"),
261+
258262
linter.NewConfig(fatcontext.New(&cfg.Linters.Settings.Fatcontext)).
259263
WithSince("v1.58.0").
260264
WithLoadForGoAnalysis().
@@ -336,10 +340,6 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
336340
WithAutoFix().
337341
WithURL("https://github.com/mvdan/gofumpt"),
338342

339-
linter.NewConfig(gofuncor.New()).
340-
WithSince("v2.1.0").
341-
WithURL("https://github.com/manuelarte/gofuncor"),
342-
343343
linter.NewConfig(golines.New(&cfg.Linters.Settings.GoLines)).
344344
WithSince("v2.0.0").
345345
WithAutoFix().

0 commit comments

Comments
 (0)