diff --git a/.golangci.yml b/.golangci.yml index 030d27c..1f67b05 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -23,7 +23,6 @@ linters: - errchkjson - errname - errorlint - - execinquery - exhaustive - exportloopref - forcetypeassert @@ -37,12 +36,12 @@ linters: - gocyclo - godot # - godox - - goerr113 + - err113 - gofmt - gofumpt - goheader - goimports - - gomnd + - mnd - gomoddirectives - gomodguard - goprintffuncname diff --git a/plugin/commit.go b/plugin/commit.go index 76042d9..07dac8f 100644 --- a/plugin/commit.go +++ b/plugin/commit.go @@ -238,11 +238,11 @@ func prevFromContext(c *cli.Context) Commit { // line as the title, and the rest as the description. If there is no newline, // the entire message is returned as the title, and the description is empty. func splitMessage(message string) (string, string) { - //nolint:gomnd + //nolint:mnd switch parts := strings.SplitN(message, "\n", 2); len(parts) { case 1: return parts[0], "" - //nolint:gomnd + //nolint:mnd case 2: return parts[0], parts[1] } diff --git a/types/stringslice.go b/types/stringslice.go index 92739f9..6019085 100644 --- a/types/stringslice.go +++ b/types/stringslice.go @@ -28,7 +28,7 @@ func splitWithEscaping(in, separator, escapeString string) []string { out := strings.Split(in, separator) - //nolint:gomnd + //nolint:mnd for i := len(out) - 2; i >= 0; i-- { if strings.HasSuffix(out[i], escapeString) { out[i] = out[i][:len(out[i])-len(escapeString)] + separator + out[i+1]