version: "2" run: go: "1.20" linters: default: none enable: - bodyclose - dogsled - dupl - errcheck - errorlint - gochecknoinits - gocritic - goprintffuncname - gosec - govet - ineffassign - lll - misspell - nakedret - noctx - nolintlint - staticcheck - unconvert - unparam - unused - whitespace settings: dupl: threshold: 100 funlen: lines: 100 statements: 50 goconst: min-len: 3 min-occurrences: 4 gocritic: enabled-tags: - diagnostic - experimental - opinionated - performance - style gocyclo: min-complexity: 15 lll: line-length: 140 misspell: locale: US nolintlint: require-explanation: false require-specific: false allow-unused: false exclusions: generated: lax presets: - comments - common-false-positives - legacy - std-error-handling rules: - linters: - dupl - errcheck - errorlint - gochecknoinits - gocritic - godot - govet - lll - revive - staticcheck - wsl path: (.+)_test.go - path: (.+)\.go$ text: G204 paths: - third_party$ - builtin$ - examples$ formatters: enable: - gofmt - goimports settings: goimports: local-prefixes: - github.com/Jguer/yay/v12 exclusions: generated: lax paths: - third_party$ - builtin$ - examples$