sigs.k8s.io/gateway-api@v1.0.0/.golangci.yml (about)

     1  run:
     2    timeout: 10m
     3    issues-exit-code: 1
     4    max-issues-per-linter: 0
     5    max-same-issues: 0
     6    tests: true
     7    skip-dirs-use-default: true
     8    modules-download-mode: readonly
     9    allow-parallel-runners: false
    10  
    11  linters:
    12    fast: false
    13    enable:
    14    - errcheck
    15    - exportloopref
    16    - gocritic
    17    - gofumpt
    18    - goimports
    19    - gomodguard
    20    - gosec
    21    - govet
    22    - misspell
    23    - revive
    24    - unconvert
    25    - unparam
    26    - unused
    27    - whitespace
    28    disable:
    29    - scopelint
    30    disable-all: false
    31    presets:
    32    - bugs
    33    - unused
    34  
    35  # all available settings of specific linters
    36  linters-settings:
    37    gofmt:
    38      # simplify code: gofmt with `-s` option, true by default
    39      simplify: true
    40    goimports:
    41      local-prefixes: sigs.k8s.io/gateway-api
    42    golint:
    43      min-confidence: 0.9
    44    govet:
    45      # report about shadowed variables
    46      check-shadowing: true
    47    misspell:
    48      locale: US
    49      ignore-words: []
    50    gomodguard:
    51      blocked:
    52      # List of blocked modules.
    53        modules:
    54          - io/ioutil:
    55              recommendations:
    56                - io
    57                - os
    58              reason: "Deprecation of package ioutil in Go 1.16."
    59  
    60  issues:
    61    exclude-rules:
    62      # Exclude some linters from running on tests files.
    63      - path: _test\.go
    64        linters:
    65          - gocyclo
    66          - errcheck
    67          - dupl
    68    exclude:
    69      - Using the variable on range scope `tc` in function literal