Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/commands/internal/migrate/migrate_linters_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func toForbidigoSettings(old versionone.ForbidigoSettings) versiontwo.ForbidigoS
}

for _, pattern := range old.Forbid {
if pattern.Pattern == nil {
if pattern.Pattern == nil && pattern.Msg == nil && pattern.Package == nil {
buffer, err := pattern.MarshalString()
if err != nil {
// impossible case
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ linters:
- pattern: ^spew\.(ConfigState\.)?Dump$
- pattern: ^v1.Dump$
pkg: ^example.com/pkg/api/v1$
- pkg: ^github.com/howeyc/gopass$
msg: github.com/howeyc/gopass is archived, use golang.org/x/term instead
exclude-godoc-examples: false
analyze-types: true
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ linters-settings:
- ^spew\.(ConfigState\.)?Dump$
- p: ^v1.Dump$
pkg: ^example.com/pkg/api/v1$
- pkg: ^github.com/howeyc/gopass$
msg: "github.com/howeyc/gopass is archived, use golang.org/x/term instead"
exclude-godoc-examples: false
analyze-types: true
Loading