Skip to content

Commit 780c3c0

Browse files
authored
Create .golangci.yml
1 parent fb9c1d1 commit 780c3c0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/.golangci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file contains all available configuration options
2+
# with their default values.
3+
4+
# options for analysis running
5+
run:
6+
go: '1.20.x'
7+
8+
issues:
9+
# List of regexps of issue texts to exclude.
10+
#
11+
# But independently of this option we use default exclude patterns,
12+
# it can be disabled by `exclude-use-default: false`.
13+
# To list all excluded by default patterns execute `golangci-lint run --help`
14+
#
15+
# Default: https://golangci-lint.run/usage/false-positives/#default-exclusions
16+
exclude:
17+
- "Error return value of `deleteBranchCmd.MarkPersistentFlagRequired` is not checked"
18+
- "field `http` is unused"
19+
- "field `client` is unused"
20+
- "S1039: unnecessary use of fmt.Sprintf"

0 commit comments

Comments
 (0)