--- # yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json version: "2" run: timeout: 5m go: "1.24" linters: default: standard enable: # Additional linters beyond standard - asciicheck - bidichk - bodyclose - canonicalheader - contextcheck - dupl - errname - exhaustive - forcetypeassert - funcorder - goconst - gocritic - gocyclo - godot - godox - goheader - gosec - iface - importas - lll - maintidx - misspell - nilerr - nlreturn - nolintlint - perfsprint - prealloc - predeclared - reassign - revive - tagalign - testableexamples - thelper - usestdlibvars - usetesting disable: # Disable noisy linters - funlen - wsl - wrapcheck settings: lll: line-length: 120 misspell: locale: US gocyclo: min-complexity: 10 goconst: min-len: 2 min-occurrences: 3 formatters: enable: - gofmt - goimports - golines settings: golines: max-len: 120 gofmt: simplify: true rewrite-rules: - pattern: "interface{}" replacement: "any" - pattern: "a[b:len(a)]" replacement: "a[b:]" goimports: local-prefixes: - github.com/ivuorinen/gh-action-readme issues: max-issues-per-linter: 150 max-same-issues: 50 fix: true