.golangci.yml
run:
allow-parallel-runners: true
output:
print-issued-lines: true
print-linter-name: true
sort-results: true
linters:
enable-all: true
disable:
- gochecknoglobals
- nonamedreturns
- tagliatelle
- exhaustruct
- inamedparam
- exhaustive
- varnamelen
- depguard
- intrange
- ireturn
- gofumpt
- gci
linters-settings:
errcheck:
check-type-assertions: true
govet:
enable-all: true
funlen:
lines: 80
ignore-comments: true
cyclop:
max-complexity: 13
skip-tests: true
gocritic:
enabled-tags:
- performance
- opinionated
- diagnostic
- style
issues:
exclude-rules:
- path: cmd/decompose/main\.go
linters:
- forbidigo
- path: internal/builder/json\.go
linters:
- errchkjson
- path: internal/node/json\.go
text: "fieldalignment"
linters:
- govet # fieldalignment issue, ignored for json readability
- path: internal/builder/yaml\.go
text: "fieldalignment"
linters:
- govet # fieldalignment issue, ignored for yaml readability
- path: internal/client/defaults\.go
text: "G115" # uint56 -> int overflow, impossible for ip ports ranges
linters:
- gosec
- path: internal/graph/netstat\.go
text: "G115" # uint56 -> int overflow, impossible for ip ports ranges
linters:
- gosec
- path: ._test\.go
linters:
- gocritic
- errcheck
- maintidx
- err113
- funlen
- dupl