summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-viper/mapstructure/v2/.golangci.yaml
blob: bda9625668375745065aea02c4666655ac902e19 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "2"

run:
  timeout: 10m

linters:
  enable:
    - govet
    - ineffassign
    # - misspell
    - nolintlint
    # - revive

  disable:
    - errcheck
    - staticcheck
    - unused

  settings:
    misspell:
      locale: US
    nolintlint:
      allow-unused: false # report any unused nolint directives
      require-specific: false # don't require nolint directives to be specific about which linter is being skipped

formatters:
  enable:
    - gci
    - gofmt
    - gofumpt
    - goimports
    # - golines

  settings:
    gci:
      sections:
        - standard
        - default
        - localmodule
    gofmt:
      simplify: true
      rewrite-rules:
        - pattern: interface{}
          replacement: any

  exclusions:
    paths:
      - internal/