.golangci.yml 628 B

123456789101112131415161718192021
  1. # See for configurations: https://golangci-lint.run/usage/configuration/
  2. version: 2
  3. # See: https://golangci-lint.run/usage/formatters/
  4. formatters:
  5. default: none
  6. enable:
  7. - gofmt # https://pkg.go.dev/cmd/gofmt
  8. - gofumpt # https://github.com/mvdan/gofumpt
  9. settings:
  10. gofmt:
  11. simplify: true # Simplify code: gofmt with `-s` option.
  12. gofumpt:
  13. # Module path which contains the source code being formatted.
  14. # Default: ""
  15. module-path: github.com/jackc/pgx/v5 # Should match with module in go.mod
  16. # Choose whether to use the extra rules.
  17. # Default: false
  18. extra-rules: true