kops/.golangci.yaml

35 lines
900 B
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:
- govet
- ineffassign
- staticcheck
- tenv
linters-settings: # please keep this alphabetized
staticcheck:
go: "1.20"
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
]