mirror of https://github.com/kubernetes/kops.git
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
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
|
|
- ineffassign
|
|
- staticcheck
|
|
- tenv
|
|
- unused
|
|
- varcheck
|
|
|
|
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"
|