summaryrefslogtreecommitdiff
path: root/vendor/github.com/jackc/pgx/v5/.golangci.yml
blob: ca74c703adfa99e667efcb71b35b40af69a3e444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# See for configurations: https://golangci-lint.run/usage/configuration/
version: 2

# See: https://golangci-lint.run/usage/formatters/
formatters:
  default: none
  enable:
    - gofmt # https://pkg.go.dev/cmd/gofmt
    - gofumpt # https://github.com/mvdan/gofumpt

  settings:
    gofmt:
      simplify: true # Simplify code: gofmt with `-s` option.

    gofumpt:
      # Module path which contains the source code being formatted.
      # Default: ""
      module-path: github.com/jackc/pgx/v5 # Should match with module in go.mod
      # Choose whether to use the extra rules.
      # Default: false
      extra-rules: true