s0rg/fantasyname

View on GitHub
.golangci.yml

Summary

Maintainability
Test Coverage
run:
  allow-parallel-runners: true
  go: '1.19'

output:
  format: 'colored-line-number'
  print-issued-lines: true
  print-linter-name: true
  sort-results: true

linters:
  enable-all: true
  disable:
    - gochecknoglobals
    - exhaustivestruct
    - nonamedreturns
    - exhaustruct
    - testpackage
    - varnamelen
    - depguard
    - ireturn
    - gofumpt

linters-settings:
  cyclop:
    max-complexity: 12
  errcheck:
    check-type-assertions: true
  govet:
    check-shadowing: true
    enable-all: true
  gocritic:
    enabled-tags:
      - performance
      - opinionated
      - diagnostic
      - style

issues:
  exclude-rules:
    - path: stringers/random.go
      text: "G404" # G402: Use of weak random number generator.
      linters:
        - gosec
    - path: symtab.go
      linters:
        - misspell