Skip to content

Commit 7a6a90c

Browse files
build(deps): bump github.com/golangci/golines from 0.0.0-20250217134842-442fd0091d95 to 0.14.0 (#6279)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 6c53281 commit 7a6a90c

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ require (
5353
github.com/golangci/dupl v0.0.0-20250308024227-f665c8d69b32
5454
github.com/golangci/go-printf-func-name v0.1.1
5555
github.com/golangci/gofmt v0.0.0-20250106114630-d62b90e6713d
56-
github.com/golangci/golines v0.0.0-20250217134842-442fd0091d95
56+
github.com/golangci/golines v0.14.0
5757
github.com/golangci/misspell v0.7.0
5858
github.com/golangci/plugin-module-register v0.1.2
5959
github.com/golangci/revgrep v0.8.0
@@ -184,6 +184,7 @@ require (
184184
github.com/hashicorp/hcl v1.0.0 // indirect
185185
github.com/hexops/gotextdiff v1.0.3 // indirect
186186
github.com/inconshreveable/mousetrap v1.1.0 // indirect
187+
github.com/ldez/structtags v0.6.1 // indirect
187188
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
188189
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
189190
github.com/magiconair/properties v1.8.6 // indirect

go.sum

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,39 @@
11
package golines
22

33
import (
4-
"github.com/golangci/golines"
4+
"github.com/golangci/golines/shorten"
55

66
"github.com/golangci/golangci-lint/v2/pkg/config"
77
)
88

99
const Name = "golines"
1010

1111
type Formatter struct {
12-
shortener *golines.Shortener
12+
shortener *shorten.Shortener
1313
}
1414

1515
func New(settings *config.GoLinesSettings) *Formatter {
16-
options := golines.ShortenerConfig{}
16+
cfg := &shorten.Config{}
1717

1818
if settings != nil {
19-
options = golines.ShortenerConfig{
20-
MaxLen: settings.MaxLen,
21-
TabLen: settings.TabLen,
22-
KeepAnnotations: false, // golines debug (not usable inside golangci-lint)
23-
ShortenComments: settings.ShortenComments,
24-
ReformatTags: settings.ReformatTags,
25-
IgnoreGenerated: false, // handle globally
26-
DotFile: "", // golines debug (not usable inside golangci-lint)
27-
ChainSplitDots: settings.ChainSplitDots,
28-
BaseFormatterCmd: "go fmt", // fake cmd
19+
cfg = &shorten.Config{
20+
MaxLen: settings.MaxLen,
21+
TabLen: settings.TabLen,
22+
KeepAnnotations: false, // golines debug (not usable inside golangci-lint)
23+
ShortenComments: settings.ShortenComments,
24+
ReformatTags: settings.ReformatTags,
25+
DotFile: "", // golines debug (not usable inside golangci-lint)
26+
ChainSplitDots: settings.ChainSplitDots,
2927
}
3028
}
3129

32-
return &Formatter{shortener: golines.NewShortener(options)}
30+
return &Formatter{shortener: shorten.NewShortener(cfg)}
3331
}
3432

3533
func (*Formatter) Name() string {
3634
return Name
3735
}
3836

3937
func (f *Formatter) Format(_ string, src []byte) ([]byte, error) {
40-
return f.shortener.Shorten(src)
38+
return f.shortener.Process(src)
4139
}

0 commit comments

Comments
 (0)