From 14eb4c29caaf57b4370cfc861210a827c47c8af0 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Tue, 29 Apr 2025 14:55:10 +0200 Subject: [PATCH] Bump git-todo-parser --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/stefanhaller/git-todo-parser/todo/parse.go | 3 --- vendor/github.com/stefanhaller/git-todo-parser/todo/todo.go | 2 +- vendor/modules.txt | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index ae9990519..30ae0e978 100644 --- a/go.mod +++ b/go.mod @@ -33,7 +33,7 @@ require ( github.com/sirupsen/logrus v1.9.3 github.com/spf13/afero v1.9.5 github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad - github.com/stefanhaller/git-todo-parser v0.0.7-0.20240406123903-fd957137b6e2 + github.com/stefanhaller/git-todo-parser v0.0.7-0.20250429125209-dcf39e4641f5 github.com/stretchr/testify v1.10.0 github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 diff --git a/go.sum b/go.sum index 98389ca81..3c1aaab39 100644 --- a/go.sum +++ b/go.sum @@ -286,8 +286,8 @@ github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad h1:fiWzISvDn0Csy5H0iwgAuJGQTUpVfEMJJd4nRFXogbc= github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0= -github.com/stefanhaller/git-todo-parser v0.0.7-0.20240406123903-fd957137b6e2 h1:RTNWemd/9z9A5L/AggEP3OdhRz5dXETB/wdAlYF0SuM= -github.com/stefanhaller/git-todo-parser v0.0.7-0.20240406123903-fd957137b6e2/go.mod h1:HFt9hGqMzgQ+gVxMKcvTvGaFz4Y0yYycqqAp2V3wcJY= +github.com/stefanhaller/git-todo-parser v0.0.7-0.20250429125209-dcf39e4641f5 h1:ZCI0NPs0xXd00Ej9lX+wwbHjQDkstJa3kUbX7WCOF8I= +github.com/stefanhaller/git-todo-parser v0.0.7-0.20250429125209-dcf39e4641f5/go.mod h1:HFt9hGqMzgQ+gVxMKcvTvGaFz4Y0yYycqqAp2V3wcJY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= diff --git a/vendor/github.com/stefanhaller/git-todo-parser/todo/parse.go b/vendor/github.com/stefanhaller/git-todo-parser/todo/parse.go index 12bec439b..bf40f531a 100644 --- a/vendor/github.com/stefanhaller/git-todo-parser/todo/parse.go +++ b/vendor/github.com/stefanhaller/git-todo-parser/todo/parse.go @@ -150,9 +150,6 @@ func parseLine(line string, commentChar byte) (Todo, error) { } func isCommand(i TodoCommand, s string) bool { - if i < 0 || i > Comment { - return false - } return len(s) > 0 && (todoCommandInfo[i].cmd == s || todoCommandInfo[i].nickname == s) } diff --git a/vendor/github.com/stefanhaller/git-todo-parser/todo/todo.go b/vendor/github.com/stefanhaller/git-todo-parser/todo/todo.go index 3b2c45290..1ed22382a 100644 --- a/vendor/github.com/stefanhaller/git-todo-parser/todo/todo.go +++ b/vendor/github.com/stefanhaller/git-todo-parser/todo/todo.go @@ -1,6 +1,6 @@ package todo -type TodoCommand int +type TodoCommand uint8 const ( Pick TodoCommand = iota + 1 diff --git a/vendor/modules.txt b/vendor/modules.txt index e2ec62f92..9859a3944 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -323,7 +323,7 @@ github.com/spf13/afero/mem # github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad ## explicit github.com/spkg/bom -# github.com/stefanhaller/git-todo-parser v0.0.7-0.20240406123903-fd957137b6e2 +# github.com/stefanhaller/git-todo-parser v0.0.7-0.20250429125209-dcf39e4641f5 ## explicit; go 1.13 github.com/stefanhaller/git-todo-parser/todo # github.com/stretchr/testify v1.10.0