Skip to content

Commit 1727a6d

Browse files
committed
golangci: silence SA1019
1 parent 81c222d commit 1727a6d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.golangci.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ run:
1818

1919
modules-download-mode: readonly
2020

21-
2221
# output configuration options
2322
output:
2423
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
@@ -84,7 +83,7 @@ linters-settings:
8483
# with golangci-lint call it on a directory with the changed file.
8584
check-exported: false
8685
whitespace:
87-
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
86+
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
8887
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
8988
wsl:
9089
# If true append is only allowed to be cuddled if appending value is
@@ -116,7 +115,6 @@ linters:
116115
- bodyclose
117116
fast: false
118117

119-
120118
issues:
121119
exclude-rules:
122120
# Exclude some linters from running on tests files.
@@ -138,11 +136,12 @@ issues:
138136
- linters:
139137
- staticcheck
140138
text: "SA9003:"
141-
142-
# Exclude some staticcheck messages
143139
- linters:
144140
- staticcheck
145141
text: "SA5001:"
142+
- linters:
143+
- staticcheck
144+
text: "SA1019:"
146145

147146
# Exclude some staticcheck messages
148147
- linters:
@@ -170,7 +169,6 @@ issues:
170169
- deadcode
171170
text: "`commit` is unused"
172171

173-
174172
# Independently from option `exclude` we use default exclude patterns,
175173
# it can be disabled by this option. To list all
176174
# excluded by default patterns execute `golangci-lint run --help`.

0 commit comments

Comments
 (0)