New ๐ŸŒŠ wave for @helm

Commit 34691c28

34691c289ad0Merged

Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified

Description

chore(lint): tune golangci-lint config

Details

Commit
34691c289ad0
Parent
7f1a256d6792

.golangci.ymlmodifiedView file

@@ -205,7 +205,8 @@
205205 # Select the Go version to target. The default is '1.13'.
206206 go: "1.17"
207207 # https://staticcheck.io/docs/options#checks
208- checks: ["all"]
208+ checks:
209+ - all
209210
210211 govet:
211212 # report about shadowed variables
@@ -260,7 +261,7 @@
260261 # Enable strict mode will also include the errors caused by failing to parse the args.
261262 strict: false
262263 # Please refer to https://github.com/yeya24/promlinter#usage for detailed usage.
263- disabled-linters:
264+ disabled-linters: []
264265 # - "Help"
265266 # - "MetricUnits"
266267 # - "Counter"
@@ -279,12 +280,6 @@
279280 nolintlint:
280281 # Enable to ensure that nolint directives are all used. Default is true.
281282 allow-unused: false
282- # Disable to ensure that nolint directives don't have a leading space. Default is true.
283- allow-leading-space: true
284- # Exclude following linters from requiring an explanation. Default is [].
285- allow-no-explanation: []
286- # Enable to require an explanation of nonzero length after each nolint directive. Default is false.
287- require-explanation: false
288283 # Enable to require nolint directives to mention the specific linter being suppressed. Default is false.
289284 require-specific: true
290285
@@ -292,69 +287,70 @@
292287 # Select the Go version to target. The default is '1.13'.
293288 go: "1.17"
294289 # https://staticcheck.io/docs/options#checks
295- checks: ["all"]
290+ checks:
291+ - all
296292
297293 stylecheck:
298294 # Select the Go version to target. The default is '1.13'.
299295 go: "1.17"
300296 # https://staticcheck.io/docs/options#checks
301297 checks:
302- [
303- "all",
304- "-ST1000",
305- "-ST1003",
306- "-ST1016",
307- "-ST1017",
308- "-ST1020",
309- "-ST1021",
310- "-ST1022",
311- ]
298+ - all
299+ - -ST1000
300+ - -ST1003
301+ - -ST1016
302+ - -ST1017
303+ - -ST1020
304+ - -ST1021
305+ - -ST1022
312306 # https://staticcheck.io/docs/options#dot_import_whitelist
313307 dot-import-whitelist:
314308 - fmt
315309 # https://staticcheck.io/docs/options#initialisms
316310 initialisms:
317- [
318- "ACL",
319- "API",
320- "ASCII",
321- "CPU",
322- "CSS",
323- "DNS",
324- "EOF",
325- "GUID",
326- "HTML",
327- "HTTP",
328- "HTTPS",
329- "ID",
330- "IP",
331- "JSON",
332- "QPS",
333- "RAM",
334- "RPC",
335- "SLA",
336- "SMTP",
337- "SQL",
338- "SSH",
339- "TCP",
340- "TLS",
341- "TTL",
342- "UDP",
343- "UI",
344- "GID",
345- "UID",
346- "UUID",
347- "URI",
348- "URL",
349- "UTF8",
350- "VM",
351- "XML",
352- "XMPP",
353- "XSRF",
354- "XSS",
355- ]
311+ - ACL
312+ - API
313+ - ASCII
314+ - CPU
315+ - CSS
316+ - DNS
317+ - EOF
318+ - GUID
319+ - HTML
320+ - HTTP
321+ - HTTPS
322+ - ID
323+ - IP
324+ - JSON
325+ - QPS
326+ - RAM
327+ - RPC
328+ - SLA
329+ - SMTP
330+ - SQL
331+ - SSH
332+ - TCP
333+ - TLS
334+ - TTL
335+ - UDP
336+ - UI
337+ - GID
338+ - UID
339+ - UUID
340+ - URI
341+ - URL
342+ - UTF8
343+ - VM
344+ - XML
345+ - XMPP
346+ - XSRF
347+ - XSS
356348 # https://staticcheck.io/docs/options#http_status_code_whitelist
357- http-status-code-whitelist: ["200", "400", "404", "500"]
349+ http-status-code-whitelist:
350+ - "200"
351+ - "400"
352+ - "404"
353+ - "500"
358354
359355 tagliatelle:
360356 # check the struck tag name case