version: "2" linters: default: standard enable: - errname - errorlint - gocritic - godot - makezero - misspell - nlreturn - predeclared - revive - testifylint - unconvert - wrapcheck - wsl_v5 settings: errcheck: # go-code: Do not discard an error with the blank identifier. check-type-assertions: true check-blank: true errorlint: errorf: true asserts: true comparison: true godot: scope: declarations capital: true govet: enable-all: true disable: - fieldalignment misspell: locale: US wsl_v5: # go-code: Keep an operation with its immediate error check. enable: - err - after-block - after-decl - after-defer - after-expr - after-go # go-code: Keep a short declaration with its immediate use. allow-first-in-block: true allow-whole-block: true cuddle-max-statements: 2 disable: # go-code: Keep a short declaration with its immediate assignment use. - assign # go-code: Keep a short declaration, its operation, and its error check # together. - if # go-code: Keep a declared cleanup with its immediate defer. - defer # go-code: Keep a short declaration with its immediate append use. - append # go-code: Keep a short declaration with its immediate worker setup. - go nlreturn: # go-code: Keep a short declaration with its immediate use. block-size: 2 wrapcheck: # go-code: Return ctx.Err() directly. extra-ignore-sigs: - "(context.Context).Err() error" exclusions: rules: # docs: Do not write a package comment. - linters: [revive] text: "package-comments" formatters: enable: - gofumpt - gci settings: gofumpt: module-path: onehouse gci: # go-code: Group imports as standard library, external, project. sections: - standard - default - prefix(onehouse) custom-order: true issues: max-issues-per-linter: 0 max-same-issues: 0