github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/.golangci.yaml (about)

     1  linters:
     2    # Disable all linters enabled by default.
     3    # See: https://golangci-lint.run/usage/linters
     4    disable-all: true  
     5    # Enabling specified linters.
     6    # See: https://github.com/web-platform-tests/wpt.fyi/issues/2983
     7    enable: 
     8      - staticcheck
     9      - errcheck
    10      - gosimple
    11      - govet
    12      - typecheck
    13      - unused
    14      - ineffassign
    15      - containedctx
    16      - dupl
    17      - dogsled
    18      - errname
    19      - errorlint
    20      - exhaustive
    21      - exhaustruct
    22      - exportloopref
    23      - gochecknoglobals
    24      - gocognit
    25      - goconst
    26      - gocyclo
    27      - godot
    28      - godox
    29      - gofmt
    30      - goheader
    31      - gomoddirectives
    32      - gosec
    33      - importas
    34      - ireturn
    35      - lll
    36      - misspell
    37      - nakedret
    38      - nestif
    39      - nilerr
    40      - nilnil
    41      - nlreturn  
    42      - noctx
    43      - prealloc
    44      - revive
    45      - unparam
    46      - usestdlibvars
    47  issues:
    48    max-issues-per-linter: 0
    49    max-same-issues: 0
    50  linters-settings:
    51    exhaustruct:
    52      # List of regular expressions to exclude struct packages and names from check.
    53      # We exclude third-party structs with entirely optional (omitempty) fields.
    54      exclude: 
    55        - 'github\.com/google/go-github/v47/github\.CheckRunOutput'
    56        - 'github\.com/google/go-github/v47/github\.ListCheckRunsOptions'
    57        - 'github\.com/google/go-github/v47/github\.ListOptions'
    58        - 'github\.com/golang-jwt/jwt\.StandardClaims'
    59        - 'net/http\.Client'
    60    gomoddirectives:  
    61      # List of allowed `replace directives`
    62      # See: https://github.com/web-platform-tests/wpt.fyi/blob/main/go.mod
    63      replace-allow-list:
    64        - launchpad.net/gocheck
    65    errcheck:
    66      # TODO: Remove following line when version 1.58.3 is released.
    67      ignore: ""