forked from kubernetes/kops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
44 lines (41 loc) · 1.31 KB
/
.golangci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
run:
timeout: 30m
skip-files:
- "^zz_generated.*"
issues:
max-same-issues: 0
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# exclude ineffassing linter for generated files for conversion
- path: conversion\.go
linters:
- ineffassign
linters:
disable-all: true
enable: # please keep this alphabetized
# Don't use soon to deprecated[1] linters that lead to false
# https://github.com/golangci/golangci-lint/issues/1841
# - deadcode
# - structcheck
# - varcheck
- ineffassign
- staticcheck
- unused
linters-settings: # please keep this alphabetized
staticcheck:
go: "1.17"
checks: [
"all",
"-ST1000", # Incorrect or missing package comment
"-ST1003", # Poorly chosen identifier
"-ST1005", # Incorrectly formatted error string
"-ST1006", # Poorly chosen receiver name
"-ST1012", # Poorly chosen name for error variable
"-ST1016", # Use consistent method receiver names
"-ST1020", # Comment on exported method should be of the form ...
"-ST1021", # Comment on exported type should be of the form ...
"-ST1022", # Comment on exported const should be of the form ...
"-SA5011" # TODO(fix) Possible nil pointer dereference
]
unused:
go: "1.17"