mirror of
https://github.com/thegeeklab/git-sv.git
synced 2024-11-21 12:00:40 +00:00
ci: fix golangci-lint deprecations
This commit is contained in:
parent
c4d961209a
commit
9bdc5e1dd9
@ -23,7 +23,6 @@ linters:
|
|||||||
- errchkjson
|
- errchkjson
|
||||||
- errname
|
- errname
|
||||||
- errorlint
|
- errorlint
|
||||||
- execinquery
|
|
||||||
# - exhaustive
|
# - exhaustive
|
||||||
- exportloopref
|
- exportloopref
|
||||||
- forcetypeassert
|
- forcetypeassert
|
||||||
@ -37,12 +36,12 @@ linters:
|
|||||||
- gocyclo
|
- gocyclo
|
||||||
- godot
|
- godot
|
||||||
# - godox
|
# - godox
|
||||||
- goerr113
|
- err113
|
||||||
- gofmt
|
- gofmt
|
||||||
- gofumpt
|
- gofumpt
|
||||||
- goheader
|
- goheader
|
||||||
- goimports
|
- goimports
|
||||||
- gomnd
|
- mnd
|
||||||
- gomoddirectives
|
- gomoddirectives
|
||||||
- gomodguard
|
- gomodguard
|
||||||
- goprintffuncname
|
- goprintffuncname
|
||||||
|
@ -14,7 +14,7 @@ func ChangelogFlags(settings *app.ChangelogSettings) []cli.Flag {
|
|||||||
return []cli.Flag{
|
return []cli.Flag{
|
||||||
&cli.IntFlag{
|
&cli.IntFlag{
|
||||||
Name: "size",
|
Name: "size",
|
||||||
Value: 10, //nolint:gomnd
|
Value: 10, //nolint:mnd
|
||||||
Aliases: []string{"n"},
|
Aliases: []string{"n"},
|
||||||
Destination: &settings.Size,
|
Destination: &settings.Size,
|
||||||
Usage: "get changelog from last 'n' tags",
|
Usage: "get changelog from last 'n' tags",
|
||||||
|
@ -249,7 +249,7 @@ func (p BaseMessageProcessor) IssueID(branch string) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
groups := r.FindStringSubmatch(branch)
|
groups := r.FindStringSubmatch(branch)
|
||||||
if len(groups) != 4 { //nolint:gomnd
|
if len(groups) != 4 { //nolint:mnd
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -360,7 +360,7 @@ func parseSubjectMessage(message string) (string, string, string, bool) {
|
|||||||
regex := regexp.MustCompile(`([a-z]+)(\((.*)\))?(!)?: (.*)`)
|
regex := regexp.MustCompile(`([a-z]+)(\((.*)\))?(!)?: (.*)`)
|
||||||
|
|
||||||
result := regex.FindStringSubmatch(message)
|
result := regex.FindStringSubmatch(message)
|
||||||
if len(result) != 6 { //nolint:gomnd
|
if len(result) != 6 { //nolint:mnd
|
||||||
return "", "", message, false
|
return "", "", message, false
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -375,7 +375,7 @@ func extractFooterMetadata(key, text string, useHash bool) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
result := regex.FindStringSubmatch(text)
|
result := regex.FindStringSubmatch(text)
|
||||||
if len(result) < 2 { //nolint:gomnd
|
if len(result) < 2 { //nolint:mnd
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user