forked from kubernetes/kops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
35 lines (32 loc) · 901 Bytes
/
.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
run:
timeout: 30m
go: "1.22"
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
exclude-files:
- "^zz_generated.*"
linters:
disable-all: true
enable:
- govet
- ineffassign
- staticcheck
- tenv
linters-settings: # please keep this alphabetized
staticcheck:
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
"-SA1019", # Using a deprecated function, variable, constant or field
]