github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/.golangci.yaml (about)

     1  ---
     2  run:
     3    timeout: '5m'
     4  output:
     5    sort-results: true
     6  linters-settings:
     7    goimports:
     8      local-prefixes: 'github.com/authzed/spicedb'
     9    rowserrcheck:
    10      packages:
    11        - 'github.com/jmoiron/sqlx'
    12        - 'github.com/jackc/pgx'
    13    revive:
    14      rules:
    15        - name: 'unused-parameter'
    16          disabled: true
    17  linters:
    18    enable:
    19      - 'bidichk'
    20      - 'bodyclose'
    21      - 'errcheck'
    22      - 'errname'
    23      - 'errorlint'
    24      - 'gofumpt'
    25      - 'goimports'
    26      - 'goprintffuncname'
    27      - 'gosec'
    28      - 'gosimple'
    29      - 'govet'
    30      - 'importas'
    31      - 'ineffassign'
    32      - 'makezero'
    33      - 'prealloc'
    34      - 'predeclared'
    35      - 'promlinter'
    36      - 'revive'
    37      - 'rowserrcheck'
    38      - 'staticcheck'
    39      - 'stylecheck'
    40      - 'tenv'
    41      - 'typecheck'
    42      - 'unconvert'
    43      - 'unused'
    44      - 'wastedassign'
    45      - 'whitespace'
    46  issues:
    47    exclude-rules:
    48      - text: 'tx.Rollback()'
    49        linters:
    50          - 'errcheck'
    51      # NOTE: temporarily disable deprecation checks for v0.
    52      - path: 'internal/services/'
    53        linters:
    54          - 'staticcheck'
    55        text: 'SA1019'
    56      - path: 'internal/middleware/consistency/'
    57        linters:
    58          - 'staticcheck'
    59        text: 'SA1019'
    60      - path: 'pkg/proto/core/v1/core.pb.validate.manual.go'  # Ignore manual definition of metadata map
    61        linters:
    62          - 'stylecheck'
    63        text: 'ST1003'
    64      - path: 'pkg/proto/core/v1/core.pb.validate.manual.go'  # Ignore manual definition of metadata map
    65        linters:
    66          - 'revive'
    67        text: 'var-naming'
    68      # Ignore receiver errors for generic types not understood by the linter.
    69      - linters:
    70          - 'revive'
    71        text: 'receiver-naming: receiver name \S+ should be consistent with previous receiver name \S+ for invalid-type'