aboutsummaryrefslogtreecommitdiff
path: root/.golangci.yaml
blob: 71397ccb8f92aa2790e1ca57b93d122cdea96705 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

linters:
  enable-all: true
  disable:
    - tenv
    - depguard
    - err113           # dynamically defined errors are fine for our purposes
    - forcetypeassert  # type assertion failures are usually programming errors
    - gochecknoglobals # doesn't matter since this isn't a library
    - gochecknoinits   # we use inits sparingly for good reasons
    - godox            # they're just used as markers for where needs improvements
    - ireturn          # doesn't work well with how we use generics
    - lll              # long lines are acceptable
    - mnd              # it's a bit ridiculous to replace all of them
    - nakedret         # patterns should be consistent
    - nonamedreturns   # i like named returns
    - maintidx   # e
    - nestif     # e
    - gocognit   # e
    - gocyclo    # e
    - cyclop     # e
    - goconst    # e
    - funlen     # e
    - wsl        # e
    - nlreturn   # e
    - wrapcheck  # e
    - varnamelen # e

issues:
  max-issues-per-linter: 0
  max-same-issues: 0