build(deps): bump github.com/4meepo/tagalign from 1.2.2 to 1.3.1 (#3979)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
78462c2bb5
commit
ffe688c24b
@ -1803,6 +1803,11 @@ linters-settings:
|
|||||||
- mapstructure
|
- mapstructure
|
||||||
- binding
|
- binding
|
||||||
- validate
|
- validate
|
||||||
|
# Whether enable strict style.
|
||||||
|
# In this style, the tags will be sorted and aligned in the dictionary order,
|
||||||
|
# and the tags with the same name will be aligned together.
|
||||||
|
# Default: false
|
||||||
|
strict: true
|
||||||
|
|
||||||
tagliatelle:
|
tagliatelle:
|
||||||
# Check the struct tag name case.
|
# Check the struct tag name case.
|
||||||
|
2
go.mod
2
go.mod
@ -5,7 +5,7 @@ go 1.19
|
|||||||
require (
|
require (
|
||||||
4d63.com/gocheckcompilerdirectives v1.2.1
|
4d63.com/gocheckcompilerdirectives v1.2.1
|
||||||
4d63.com/gochecknoglobals v0.2.1
|
4d63.com/gochecknoglobals v0.2.1
|
||||||
github.com/4meepo/tagalign v1.2.2
|
github.com/4meepo/tagalign v1.3.1
|
||||||
github.com/Abirdcfly/dupword v0.0.12
|
github.com/Abirdcfly/dupword v0.0.12
|
||||||
github.com/Antonboom/errname v0.1.10
|
github.com/Antonboom/errname v0.1.10
|
||||||
github.com/Antonboom/nilnil v0.1.5
|
github.com/Antonboom/nilnil v0.1.5
|
||||||
|
4
go.sum
generated
4
go.sum
generated
@ -40,8 +40,8 @@ cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RX
|
|||||||
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||||
cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo=
|
cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo=
|
||||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||||
github.com/4meepo/tagalign v1.2.2 h1:kQeUTkFTaBRtd/7jm8OKJl9iHk0gAO+TDFPHGSna0aw=
|
github.com/4meepo/tagalign v1.3.1 h1:rgmaEHXOCks52e6IpowKCPAIRJCVLlO3jyf97uDmmgo=
|
||||||
github.com/4meepo/tagalign v1.2.2/go.mod h1:Q9c1rYMZJc9dPRkbQPpcBNCLEmY2njbAsXhQOZFE2dE=
|
github.com/4meepo/tagalign v1.3.1/go.mod h1:Q9c1rYMZJc9dPRkbQPpcBNCLEmY2njbAsXhQOZFE2dE=
|
||||||
github.com/Abirdcfly/dupword v0.0.12 h1:56NnOyrXzChj07BDFjeRA+IUzSz01jmzEq+G4kEgFhc=
|
github.com/Abirdcfly/dupword v0.0.12 h1:56NnOyrXzChj07BDFjeRA+IUzSz01jmzEq+G4kEgFhc=
|
||||||
github.com/Abirdcfly/dupword v0.0.12/go.mod h1:+us/TGct/nI9Ndcbcp3rgNcQzctTj68pq7TcgNpLfdI=
|
github.com/Abirdcfly/dupword v0.0.12/go.mod h1:+us/TGct/nI9Ndcbcp3rgNcQzctTj68pq7TcgNpLfdI=
|
||||||
github.com/Antonboom/errname v0.1.10 h1:RZ7cYo/GuZqjr1nuJLNe8ZH+a+Jd9DaZzttWzak9Bls=
|
github.com/Antonboom/errname v0.1.10 h1:RZ7cYo/GuZqjr1nuJLNe8ZH+a+Jd9DaZzttWzak9Bls=
|
||||||
|
@ -117,6 +117,7 @@ var defaultLintersSettings = LintersSettings{
|
|||||||
Align: true,
|
Align: true,
|
||||||
Sort: true,
|
Sort: true,
|
||||||
Order: nil,
|
Order: nil,
|
||||||
|
Strict: false,
|
||||||
},
|
},
|
||||||
Testpackage: TestpackageSettings{
|
Testpackage: TestpackageSettings{
|
||||||
SkipRegexp: `(export|internal)_test\.go`,
|
SkipRegexp: `(export|internal)_test\.go`,
|
||||||
@ -723,6 +724,7 @@ type TagAlignSettings struct {
|
|||||||
Align bool `mapstructure:"align"`
|
Align bool `mapstructure:"align"`
|
||||||
Sort bool `mapstructure:"sort"`
|
Sort bool `mapstructure:"sort"`
|
||||||
Order []string `mapstructure:"order"`
|
Order []string `mapstructure:"order"`
|
||||||
|
Strict bool `mapstructure:"strict"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TagliatelleSettings struct {
|
type TagliatelleSettings struct {
|
||||||
|
@ -24,6 +24,10 @@ func NewTagAlign(settings *config.TagAlignSettings) *goanalysis.Linter {
|
|||||||
if settings.Sort || len(settings.Order) > 0 {
|
if settings.Sort || len(settings.Order) > 0 {
|
||||||
options = append(options, tagalign.WithSort(settings.Order...))
|
options = append(options, tagalign.WithSort(settings.Order...))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if settings.Strict {
|
||||||
|
options = append(options, tagalign.WithStrictStyle())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
analyzer := tagalign.NewAnalyzer(options...)
|
analyzer := tagalign.NewAnalyzer(options...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user