From 9331c24257480db5edc71ccaa5a07e6e5a579d1a Mon Sep 17 00:00:00 2001 From: Henri Remonen Date: Sat, 2 Sep 2023 16:35:55 +0300 Subject: [PATCH] ci: Fix some CI workflow stuff --- .golangci.yml | 4 ++-- cmd/commit.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 35a392d..f7deb7f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,7 @@ linters-settings: funlen: - lines: 100 - statements: 50 + lines: 60 + statements: 40 gocyclo: min-complexity: 15 goimports: diff --git a/cmd/commit.go b/cmd/commit.go index 800de6b..c7c200e 100644 --- a/cmd/commit.go +++ b/cmd/commit.go @@ -216,7 +216,7 @@ func CreateCommitMessage(commitType, commitScope, commitDescription string, comm // CreateGitCommit creates a Git commit with the given message and files. func CreateGitCommit(message string, files []string) error { commitArgs := append([]string{"commit", "-m", message}, files...) - commitGitCmd := exec.Command("git", commitArgs...) //nolint:gosec + commitGitCmd := exec.Command("git", commitArgs...) //nolint:gosec // because I do not think the users can do anything bad here commitGitCmd.Stdout = os.Stdout commitGitCmd.Stderr = os.Stderr