github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/.golangci.yml (about)

     1  # Copyright 2019 Google Inc.  All Rights Reserved.
     2  
     3  run:
     4    deadline: 5m
     5    skip-dirs:
     6      thirdparty/
     7  
     8  linters:
     9    # please, do not use `enable-all`: it's deprecated and will be removed soon.
    10    # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
    11    disable-all: true
    12    enable:
    13      - bodyclose
    14      - deadcode
    15      - depguard
    16      - dogsled
    17      - dupl
    18      - errcheck
    19  # funlen triggers on test functions which it shouldn't
    20  #    - funlen
    21      - exportloopref
    22      - gochecknoinits
    23      - goconst
    24      - gocritic
    25      - gocyclo
    26      - gofmt
    27      - goimports
    28  #    - gosec
    29      - gosimple
    30      - govet
    31      - ineffassign
    32      - lll
    33      - misspell
    34      - nakedret
    35      - staticcheck
    36      - structcheck
    37      - stylecheck
    38      - revive
    39      - typecheck
    40      - unconvert
    41      - unparam
    42      - unused
    43      - varcheck
    44      - whitespace
    45  
    46  issues:
    47    exclude:
    48       - Using the variable on range scope `tc` in function literal
    49  
    50  linters-settings:
    51    dupl:
    52      threshold: 400
    53    lll:
    54      line-length: 170
    55    gocyclo:
    56      min-complexity: 30
    57    golint:
    58      min-confidence: 0.85