21 # go-code: Do not discard an error with the blank identifier.
22 check-type-assertions: true
38 # go-code: Keep an operation with its immediate error check.
46 # go-code: Keep a short declaration with its immediate use.
47 allow-first-in-block: true
48 allow-whole-block: true
49 cuddle-max-statements: 2
51 # go-code: Keep a short declaration with its immediate assignment use.
53 # go-code: Keep a short declaration, its operation, and its error check
56 # go-code: Keep a declared cleanup with its immediate defer.
58 # go-code: Keep a short declaration with its immediate append use.
60 # go-code: Keep a short declaration with its immediate worker setup.
63 # go-code: Keep a short declaration with its immediate use.
66 # go-code: Return ctx.Err() directly.
68 - "(context.Context).Err() error"
71 # docs: Do not write a package comment.
73 text: "package-comments"
83 # go-code: Group imports as standard library, external, project.
91 max-issues-per-linter: 0