linters-settings: dupl: threshold: 100 funlen: lines: 100 statements: 50 gci: local-prefixes: code.icb4dc0.de/prskr/nurse goconst: min-len: 2 min-occurrences: 2 gocritic: enabled-tags: - diagnostic - opinionated - performance disabled-checks: - ifElseChain - octalLiteral - wrapperFunc # see https://github.com/golangci/golangci-lint/issues/2649 - hugeParam - rangeValCopy # settings: # hugeParam: # sizeThreshold: 200 gocyclo: min-complexity: 15 goimports: local-prefixes: code.1533b4dc0.de/prskr/nurse golint: min-confidence: 0 gomnd: settings: mnd: # don't include the "operation" and "assign" checks: - argument - case - condition - return gomoddirectives: replace-allow-list: - github.com/docker/docker govet: check-shadowing: true enable-all: true disable: - fieldalignment # see https://github.com/golangci/golangci-lint/issues/2649 - nilness - unusedwrite importas: no-unaliased: true lll: line-length: 140 misspell: locale: US linters: disable-all: true enable: - contextcheck - dogsled - dupl - errcheck - errchkjson - errname - errorlint - exhaustive - exportloopref - funlen - gocognit - goconst # - gocritic - gocyclo - godox - gofumpt - goimports - gomoddirectives - gomnd - gosec - gosimple - govet - importas - ineffassign # - ireturn - enable later - lll - misspell - nakedret - nestif - nilnil - noctx - nolintlint - paralleltest - prealloc - predeclared - promlinter - staticcheck - stylecheck - testpackage - thelper # - typecheck - unconvert - unparam - whitespace - unused - wastedassign issues: # Excluding configuration per-path, per-linter, per-text and per-source exclude-rules: - path: _test\.go linters: - dupl - funlen - gocognit - gomnd - govet - path: magefiles/.*\.go linters: - typecheck - unused - govet run: skip-files: - ".*.mock.\\.go$" modules-download-mode: readonly timeout: 5m