build(deps): bump github.com/ghostiam/protogetter from 0.3.3 to 0.3.4 (#4327)

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2024-01-20 16:43:01 +01:00 committed by GitHub
parent 4c3082bef1
commit 3ff416302f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 14 additions and 9 deletions

View File

@ -1489,6 +1489,9 @@ linters-settings:
# Skip any generated files from the checking. # Skip any generated files from the checking.
# Default: false # Default: false
skip-any-generated: true skip-any-generated: true
# Skip first argument of append function.
# Default: false
replace-first-arg-in-append: true
reassign: reassign:
# Patterns for global variable names that are checked for reassignment. # Patterns for global variable names that are checked for reassignment.

2
go.mod
View File

@ -36,7 +36,7 @@ require (
github.com/fatih/color v1.16.0 github.com/fatih/color v1.16.0
github.com/firefart/nonamedreturns v1.0.4 github.com/firefart/nonamedreturns v1.0.4
github.com/fzipp/gocyclo v0.6.0 github.com/fzipp/gocyclo v0.6.0
github.com/ghostiam/protogetter v0.3.3 github.com/ghostiam/protogetter v0.3.4
github.com/go-critic/go-critic v0.11.0 github.com/go-critic/go-critic v0.11.0
github.com/go-xmlfmt/xmlfmt v1.1.2 github.com/go-xmlfmt/xmlfmt v1.1.2
github.com/gofrs/flock v0.8.1 github.com/gofrs/flock v0.8.1

4
go.sum generated
View File

@ -143,8 +143,8 @@ github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwV
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo=
github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA=
github.com/ghostiam/protogetter v0.3.3 h1:EvOuzB/SEifg/c4aMnwcj033Qc1lHO7Yz4QnBDbmbik= github.com/ghostiam/protogetter v0.3.4 h1:5SZ+lZSNmNkSbGVSF9hUHhv/b7ELF9Rwchoq7btYo6c=
github.com/ghostiam/protogetter v0.3.3/go.mod h1:A0JgIhs0fgVnotGinjQiKaFVG3waItLJNwPmcMzDnvk= github.com/ghostiam/protogetter v0.3.4/go.mod h1:A0JgIhs0fgVnotGinjQiKaFVG3waItLJNwPmcMzDnvk=
github.com/go-critic/go-critic v0.11.0 h1:mARtIFX7jPtJ3SzxO9Isa5T2jd2dZxFmQHK3yNf0wrE= github.com/go-critic/go-critic v0.11.0 h1:mARtIFX7jPtJ3SzxO9Isa5T2jd2dZxFmQHK3yNf0wrE=
github.com/go-critic/go-critic v0.11.0/go.mod h1:Cz6lr1PlkIu/0Y0U9KqJgcIJJECAF8mEwmzVjKnhbfI= github.com/go-critic/go-critic v0.11.0/go.mod h1:Cz6lr1PlkIu/0Y0U9KqJgcIJJECAF8mEwmzVjKnhbfI=
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=

View File

@ -730,9 +730,10 @@ type PromlinterSettings struct {
} }
type ProtoGetterSettings struct { type ProtoGetterSettings struct {
SkipGeneratedBy []string `mapstructure:"skip-generated-by"` SkipGeneratedBy []string `mapstructure:"skip-generated-by"`
SkipFiles []string `mapstructure:"skip-files"` SkipFiles []string `mapstructure:"skip-files"`
SkipAnyGenerated bool `mapstructure:"skip-any-generated"` SkipAnyGenerated bool `mapstructure:"skip-any-generated"`
ReplaceFirstArgInAppend bool `mapstructure:"replace-first-arg-in-append"`
} }
type ReassignSettings struct { type ReassignSettings struct {

View File

@ -19,9 +19,10 @@ func NewProtoGetter(settings *config.ProtoGetterSettings) *goanalysis.Linter {
var cfg protogetter.Config var cfg protogetter.Config
if settings != nil { if settings != nil {
cfg = protogetter.Config{ cfg = protogetter.Config{
SkipGeneratedBy: settings.SkipGeneratedBy, SkipGeneratedBy: settings.SkipGeneratedBy,
SkipFiles: settings.SkipFiles, SkipFiles: settings.SkipFiles,
SkipAnyGenerated: settings.SkipAnyGenerated, SkipAnyGenerated: settings.SkipAnyGenerated,
ReplaceFirstArgInAppend: settings.ReplaceFirstArgInAppend,
} }
} }
cfg.Mode = protogetter.GolangciLintMode cfg.Mode = protogetter.GolangciLintMode