github.com/codeready-toolchain/api@v0.0.0-20240507023248-73662d6db2c5/.golangci.yml (about)

     1  service:
     2    project-path: github.com/codeready-toolchain/api
     3  
     4  run:
     5    # timeout for analysis, e.g. 30s, 5m, default is 1m
     6    timeout: 10m
     7    
     8  linters:
     9    enable:
    10      - megacheck
    11      - gocyclo
    12      - gofmt
    13      - revive
    14      - misspell
    15    presets: # groups of linters. See https://golangci-lint.run/usage/linters/
    16      - bugs
    17      - unused
    18    disable: 
    19      - golint # deprecated, use 'revive'
    20      - scopelint # deprecated, use 'exportloopref'
    21      - contextcheck # too many false-positives
    22      - noctx # not needed
    23  
    24  # all available settings of specific linters
    25  linters-settings:
    26    unparam:
    27      # Inspect exported functions, default is false. Set to true if no external program/library imports your code.
    28      # XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
    29      # if it's called for subdir of a project it can't find external interfaces. All text editor integrations
    30      # with golangci-lint call it on a directory with the changed file.
    31      check-exported: true
    32