blob: d169aa4e7fab036e46bc02cf3c73a5dbee1f961b [file] [log] [blame]
Abhay Kumara61c5222025-11-10 07:32:50 +00001run:
2 timeout: 30m
3 skip-files:
4 - "^zz_generated.*"
5
6issues:
7 max-same-issues: 0
8 # Excluding configuration per-path, per-linter, per-text and per-source
9 exclude-rules:
10 # exclude ineffassing linter for generated files for conversion
11 - path: conversion\.go
12 linters:
13 - ineffassign
14
15linters:
16 disable-all: true
17 enable: # please keep this alphabetized
18 # Don't use soon to deprecated[1] linters that lead to false
19 # https://github.com/golangci/golangci-lint/issues/1841
20 # - deadcode
21 # - structcheck
22 # - varcheck
23 - goimports
24 - ineffassign
25 - revive
26 - staticcheck
27 - stylecheck
28 - unused
29 - unconvert # Remove unnecessary type conversions
30
31linters-settings: # please keep this alphabetized
32 goimports:
33 local-prefixes: go.etcd.io # Put imports beginning with prefix after 3rd-party packages.
34 staticcheck:
35 checks:
36 - "all"
37 - "-SA1019" # TODO(fix) Using a deprecated function, variable, constant or field
38 - "-SA2002" # TODO(fix) Called testing.T.FailNow or SkipNow in a goroutine, which isn’t allowed
39 stylecheck:
40 checks:
41 - "ST1019" # Importing the same package multiple times.