0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-21 01:50:40 +00:00

chore(deps): update golang devdeps non-major (#55)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
renovate[bot] 2024-02-12 09:09:42 +01:00 committed by GitHub
parent 689ceb2b16
commit 2d2de1a5e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 27 additions and 12 deletions

View File

@ -1,7 +1,7 @@
# renovate: datasource=github-releases depName=mvdan/gofumpt
GOFUMPT_PACKAGE_VERSION := v0.5.0
GOFUMPT_PACKAGE_VERSION := v0.6.0
# renovate: datasource=github-releases depName=golangci/golangci-lint
GOLANGCI_LINT_PACKAGE_VERSION := v1.55.2
GOLANGCI_LINT_PACKAGE_VERSION := v1.56.1
EXECUTABLE := git-sv

View File

@ -45,7 +45,7 @@ func ChangelogFlags(settings *app.ChangelogSettings) []cli.Flag {
//nolint:gocognit
func ChangelogHandler(g app.GitSV, settings *app.ChangelogSettings) cli.ActionFunc {
return func(c *cli.Context) error {
return func(_ *cli.Context) error {
tags, err := g.Tags()
if err != nil {
return err

View File

@ -49,7 +49,7 @@ func CommitLogFlags(settings *app.CommitLogSettings) []cli.Flag {
}
func CommitLogHandler(g app.GitSV, settings *app.CommitLogSettings) cli.ActionFunc {
return func(c *cli.Context) error {
return func(_ *cli.Context) error {
var (
commits []sv.CommitLog
err error

View File

@ -39,7 +39,7 @@ func CommitNotesFlags(settings *app.CommitNotesSettings) []cli.Flag {
}
func CommitNotesHandler(g app.GitSV, settings *app.CommitNotesSettings) cli.ActionFunc {
return func(c *cli.Context) error {
return func(_ *cli.Context) error {
var date time.Time
lr, err := logRange(g, settings.Range, settings.Start, settings.End)

View File

@ -9,7 +9,7 @@ import (
)
func ConfigDefaultHandler() cli.ActionFunc {
return func(c *cli.Context) error {
return func(_ *cli.Context) error {
cfg := app.GetDefault()
content, err := yaml.Marshal(&cfg)
@ -24,7 +24,7 @@ func ConfigDefaultHandler() cli.ActionFunc {
}
func ConfigShowHandler(cfg *app.Config) cli.ActionFunc {
return func(c *cli.Context) error {
return func(_ *cli.Context) error {
content, err := yaml.Marshal(cfg)
if err != nil {
return err

View File

@ -9,7 +9,7 @@ import (
)
func CurrentVersionHandler(gsv app.GitSV) cli.ActionFunc {
return func(c *cli.Context) error {
return func(_ *cli.Context) error {
lastTag := gsv.LastTag()
currentVer, err := sv.ToVersion(lastTag)

View File

@ -10,7 +10,7 @@ import (
)
func NextVersionHandler(g app.GitSV) cli.ActionFunc {
return func(c *cli.Context) error {
return func(_ *cli.Context) error {
lastTag := g.LastTag()
currentVer, err := sv.ToVersion(lastTag)

View File

@ -31,7 +31,7 @@ func ReleaseNotesFlags(settings *app.ReleaseNotesSettings) []cli.Flag {
}
func ReleaseNotesHandler(g app.GitSV, settings *app.ReleaseNotesSettings) cli.ActionFunc {
return func(c *cli.Context) error {
return func(_ *cli.Context) error {
var (
commits []sv.CommitLog
rnVersion *semver.Version

View File

@ -26,7 +26,7 @@ func TagFlags(settings *app.TagSettings) []cli.Flag {
}
func TagHandler(g app.GitSV, settings *app.TagSettings) cli.ActionFunc {
return func(c *cli.Context) error {
return func(_ *cli.Context) error {
lastTag := g.LastTag()
currentVer, err := sv.ToVersion(lastTag)

View File

@ -148,6 +148,7 @@ func Test_merge(t *testing.T) {
if err := merge(&tt.dst, tt.src); (err != nil) != tt.wantErr {
t.Errorf("merge() error = %v, wantErr %v", err, tt.wantErr)
}
if !reflect.DeepEqual(tt.dst, tt.want) {
t.Errorf("merge() = %v, want %v", tt.dst, tt.want)
}

View File

@ -38,7 +38,7 @@ func main() {
Destination: &gsv.Settings.LogLevel,
},
},
Before: func(ctx *cli.Context) error {
Before: func(_ *cli.Context) error {
lvl, err := zerolog.ParseLevel(gsv.Settings.LogLevel)
if err != nil {
return err

View File

@ -115,9 +115,11 @@ func TestSemVerCommitProcessor_NextVersion(t *testing.T) {
},
CommitMessageConfig{Types: []string{"major", "minor", "patch", "none"}})
got, gotUpdated := p.NextVersion(tt.version, tt.commits)
if !reflect.DeepEqual(got, tt.want) {
t.Errorf("SemVerCommitProcessor.NextVersion() Version = %v, want %v", got, tt.want)
}
if tt.wantUpdated != gotUpdated {
t.Errorf("SemVerCommitProcessor.NextVersion() Updated = %v, want %v", gotUpdated, tt.wantUpdated)
}
@ -144,6 +146,7 @@ func TestToVersion(t *testing.T) {
return
}
if !reflect.DeepEqual(got, tt.want) {
t.Errorf("ToVersion() = %v, want %v", got, tt.want)
}

View File

@ -114,6 +114,7 @@ func Test_checkTemplatesExecution(t *testing.T) {
for _, tt := range tests {
t.Run(tt.template, func(t *testing.T) {
var b bytes.Buffer
err := tpls.ExecuteTemplate(&b, tt.template, tt.variables)
if err != nil {
t.Errorf("invalid template err = %v", err)

View File

@ -392,6 +392,7 @@ func hasFooter(message string) bool {
if lines > 0 && r.MatchString(scanner.Text()) {
return true
}
lines++
}

View File

@ -385,6 +385,7 @@ func TestBaseMessageProcessor_Enhance(t *testing.T) {
return
}
if got != tt.want {
t.Errorf("BaseMessageProcessor.Enhance() = %v, want %v", got, tt.want)
}
@ -416,6 +417,7 @@ func TestBaseMessageProcessor_IssueID(t *testing.T) {
return
}
if got != tt.want {
t.Errorf("BaseMessageProcessor.IssueID() = %v, want %v", got, tt.want)
}
@ -781,9 +783,11 @@ func TestBaseMessageProcessor_Format(t *testing.T) {
if got != tt.wantHeader {
t.Errorf("BaseMessageProcessor.Format() header got = %v, want %v", got, tt.wantHeader)
}
if got1 != tt.wantBody {
t.Errorf("BaseMessageProcessor.Format() body got = %v, want %v", got1, tt.wantBody)
}
if got2 != tt.wantFooter {
t.Errorf("BaseMessageProcessor.Format() footer got = %v, want %v", got2, tt.wantFooter)
}
@ -815,6 +819,7 @@ func Test_splitCommitMessageContent(t *testing.T) {
if got != tt.wantSubject {
t.Errorf("splitCommitMessageContent() subject got = %v, want %v", got, tt.wantSubject)
}
if got1 != tt.wantBody {
t.Errorf("splitCommitMessageContent() body got1 = [%v], want [%v]", got1, tt.wantBody)
}
@ -842,12 +847,15 @@ func Test_parseSubjectMessage(t *testing.T) {
if ctype != tt.wantType {
t.Errorf("parseSubjectMessage() type got = %v, want %v", ctype, tt.wantType)
}
if scope != tt.wantScope {
t.Errorf("parseSubjectMessage() scope got = %v, want %v", scope, tt.wantScope)
}
if description != tt.wantDescription {
t.Errorf("parseSubjectMessage() description got = %v, want %v", description, tt.wantDescription)
}
if hasBreakingChange != tt.wantHasBreakingChange {
t.Errorf("parseSubjectMessage() hasBreakingChange got = %v, want %v", hasBreakingChange, tt.wantHasBreakingChange)
}
@ -927,6 +935,7 @@ func Test_prepareHeader(t *testing.T) {
if tt.wantError && err == nil {
t.Errorf("prepareHeader() err got = %v, want not nil", err)
}
if header != tt.wantHeader {
t.Errorf("prepareHeader() header got = %v, want %v", header, tt.wantHeader)
}