From 85a0a8cb674209464be3c4ee05a204f89b3b3fcd Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 20 Apr 2024 02:26:04 +0200 Subject: [PATCH] enable exclude-case-sensitive and fix one odd error that came up --- .golangci.yml | 1 + cmd/hook.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index aa42a4095a..496d8d3f2b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -99,6 +99,7 @@ issues: max-issues-per-linter: 0 max-same-issues: 0 exclude-dirs: [node_modules, public, web_src] + exclude-case-sensitive: true exclude-rules: - path: _test\.go linters: [gocyclo, errcheck, dupl, gosec, unparam, staticcheck] diff --git a/cmd/hook.go b/cmd/hook.go index c04591d79e..2a9c25add5 100644 --- a/cmd/hook.go +++ b/cmd/hook.go @@ -465,7 +465,7 @@ func hookPrintResult(output, isCreate bool, branch, url string) { fmt.Fprintf(os.Stderr, " %s\n", url) } fmt.Fprintln(os.Stderr, "") - os.Stderr.Sync() + _ = os.Stderr.Sync() } func pushOptions() map[string]string {