github.com/justincormack/cli@v0.0.0-20201215022714-831ebeae9675/.golangci.yml (about)

     1  linters:
     2    enable:
     3      - bodyclose
     4      - deadcode
     5      - dogsled
     6      - gocyclo
     7      - goimports
     8      - golint
     9      - gosec
    10      - gosimple
    11      - govet
    12      - ineffassign
    13      - interfacer
    14      - lll
    15      - megacheck
    16      - misspell
    17      - nakedret
    18      - staticcheck
    19      - structcheck
    20      - typecheck
    21      - unconvert
    22      - unparam
    23      - unused
    24      - varcheck
    25  
    26    disable:
    27      - errcheck
    28  
    29  run:
    30    timeout: 5m
    31    skip-dirs:
    32      - cli/command/stack/kubernetes/api/openapi
    33      - cli/command/stack/kubernetes/api/client
    34    skip-files:
    35      - cli/compose/schema/bindata.go
    36      - .*generated.*
    37  
    38  linters-settings:
    39    gocyclo:
    40      min-complexity: 16
    41    govet:
    42      check-shadowing: false
    43    lll:
    44      line-length: 200
    45    nakedret:
    46      command: nakedret
    47      pattern: ^(?P<path>.*?\\.go):(?P<line>\\d+)\\s*(?P<message>.*)$
    48  
    49  issues:
    50    # The default exclusion rules are a bit too permissive, so copying the relevant ones below
    51    exclude-use-default: false
    52  
    53    exclude:
    54      - parameter .* always receives
    55  
    56    exclude-rules:
    57      # These are copied from the default exclude rules, except for "ineffective break statement"
    58      # and GoDoc checks.
    59      # https://github.com/golangci/golangci-lint/blob/0cc87df732aaf1d5ad9ce9ca538d38d916918b36/pkg/config/config.go#L36
    60      - text: "Error return value of .((os\\.)?std(out|err)\\..*|.*Close|.*Flush|os\\.Remove(All)?|.*printf?|os\\.(Un)?Setenv). is not checked"
    61        linters:
    62          - errcheck
    63      - text: "func name will be used as test\\.Test.* by other packages, and that stutters; consider calling this"
    64        linters:
    65          - golint
    66      - text: "G103: Use of unsafe calls should be audited"
    67        linters:
    68          - gosec
    69      - text: "G104: Errors unhandled"
    70        linters:
    71          - gosec
    72      - text: "G204: Subprocess launch(ed with (variable|function call)|ing should be audited)"
    73        linters:
    74          - gosec
    75      - text: "(G301|G302): (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)"
    76        linters:
    77          - gosec
    78      - text: "G304: Potential file inclusion via variable"
    79        linters:
    80          - gosec
    81      - text: "(G201|G202): SQL string (formatting|concatenation)"
    82        linters:
    83          - gosec