2022-07-22 02:13:46 +03:00
|
|
|
|
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
|
2022-09-28 09:02:53 +03:00
|
|
|
|
- goimports
|
2022-07-22 02:13:46 +03:00
|
|
|
|
- ineffassign
|
2022-09-28 09:02:53 +03:00
|
|
|
|
- revive
|
2022-07-22 02:13:46 +03:00
|
|
|
|
- staticcheck
|
|
|
|
|
- stylecheck
|
|
|
|
|
- unused
|
2022-09-28 14:13:38 +03:00
|
|
|
|
- unconvert # Remove unnecessary type conversions
|
2022-07-22 02:13:46 +03:00
|
|
|
|
|
|
|
|
|
linters-settings: # please keep this alphabetized
|
2022-09-28 09:02:53 +03:00
|
|
|
|
goimports:
|
2022-09-29 08:55:33 +03:00
|
|
|
|
local-prefixes: go.etcd.io # Put imports beginning with prefix after 3rd-party packages.
|
2022-07-22 02:13:46 +03:00
|
|
|
|
staticcheck:
|
2022-07-22 22:05:42 +03:00
|
|
|
|
checks:
|
|
|
|
|
- "all"
|
|
|
|
|
- "-SA1019" # TODO(fix) Using a deprecated function, variable, constant or field
|
|
|
|
|
- "-SA2002" # TODO(fix) Called testing.T.FailNow or SkipNow in a goroutine, which isn’t allowed
|
2022-07-22 02:13:46 +03:00
|
|
|
|
stylecheck:
|
2022-07-22 22:05:42 +03:00
|
|
|
|
checks:
|
|
|
|
|
- "ST1019" # Importing the same package multiple times.
|