More staticcheck fixes (#2007)

* more staticcheck

* more staticcheck
This commit is contained in:
John Kerl 2026-03-03 10:07:12 -05:00 committed by GitHub
parent 761b46219c
commit 718ec1685a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 14 additions and 0 deletions

View file

@ -56,6 +56,7 @@ func transformerAltkvParseCLI(
return nil, cli.ErrHelpRequested
}
transformerAltkvUsage(os.Stderr)
//lint:ignore SA4004 loop is intentionally structured this way
return nil, fmt.Errorf("%s %s: option \"%s\" not recognized", "mlr", verbNameAltkv, opt)
}

View file

@ -59,6 +59,7 @@ func transformerCheckParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameCheck, "option \"%s\" not recognized", opt)
}
}

View file

@ -55,6 +55,7 @@ func transformerGroupByParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameGroupBy, "option \"%s\" not recognized", opt)
}
}

View file

@ -55,6 +55,7 @@ func transformerGroupLikeParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameGroupLike, "option \"%s\" not recognized", opt)
}
}

View file

@ -59,6 +59,7 @@ func transformerLabelParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameLabel, "option \"%s\" not recognized", opt)
}
}

View file

@ -57,6 +57,7 @@ func transformerLatin1ToUTF8ParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameLatin1ToUTF8, "option \"%s\" not recognized", opt)
}
}

View file

@ -55,6 +55,7 @@ func transformerNothingParseCLI(
return nil, cli.ErrHelpRequested
} else {
transformerNothingUsage(os.Stderr)
//lint:ignore SA4004 loop is intentionally structured this way
return nil, fmt.Errorf("%s %s: option \"%s\" not recognized", "mlr", verbNameNothing, opt)
}
}

View file

@ -56,6 +56,7 @@ func transformerRegularizeParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameRegularize, "option \"%s\" not recognized", opt)
}
}

View file

@ -55,6 +55,7 @@ func transformerRemoveEmptyColumnsParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameRemoveEmptyColumns, "option \"%s\" not recognized", opt)
}
}

View file

@ -58,6 +58,7 @@ func transformerSec2GMTDateParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameSec2GMTDate, "option \"%s\" not recognized", opt)
}
}

View file

@ -58,6 +58,7 @@ func transformerShuffleParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameShuffle, "option \"%s\" not recognized", opt)
}
}

View file

@ -55,6 +55,7 @@ func transformerSkipTrivialRecordsParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameSkipTrivialRecords, "option \"%s\" not recognized", opt)
}
}

View file

@ -54,6 +54,7 @@ func transformerTacParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameTac, "option \"%s\" not recognized", opt)
}
}

View file

@ -57,6 +57,7 @@ func transformerUTF8ToLatin1ParseCLI(
return nil, cli.ErrHelpRequested
} else {
//lint:ignore SA4004 loop is intentionally structured this way
return nil, cli.VerbErrorf(verbNameUTF8ToLatin1, "option \"%s\" not recognized", opt)
}
}