Codebase list golang-github-oschwald-geoip2-golang / 422442a3-1273-4505-b0f8-4bfed6a7ecb5/upstream .golangci.toml
422442a3-1273-4505-b0f8-4bfed6a7ecb5/upstream

Tree @422442a3-1273-4505-b0f8-4bfed6a7ecb5/upstream (Download .tar.gz)

.golangci.toml @422442a3-1273-4505-b0f8-4bfed6a7ecb5/upstreamraw · history · blame

[run]
  deadline = "10m"
  tests = true

[linters]
  disable-all = true
  enable = [
    "bodyclose",
    "deadcode",
    "depguard",
    "errcheck",
    "exportloopref",
    "goconst",
    "gocyclo",
    "gocritic",
    "gofumpt",
    "golint",
    "gosec",
    "gosimple",
    "govet",
    "ineffassign",
    "maligned",
    "misspell",
    "nakedret",
    "noctx",
    "nolintlint",
    "sqlclosecheck",
    "staticcheck",
    "structcheck",
    "stylecheck",
    "typecheck",
    "unconvert",
    "unparam",
    "unused",
    "varcheck",
    "vetshadow",
  ]

[linters-settings.errcheck]
    ignore = "Close,fmt:.*"

[linters-settings.gofumpt]
    extra-rules = true

[issues]
exclude-use-default = false

  [[issues.exclude-rules]]
  linters = [
    "gosec"
  ]

  # G304 - Potential file inclusion via variable (gosec)
  # G404 - "Use of weak random number generator (math/rand instead of crypto/rand)"
  #        We only use this in tests.
  text = "G304|G404"