github.com/GoogleCloudPlatform/terraformer@v0.8.18/.golangci.yml (about)

     1  # This file contains all available configuration options
     2  # with their default values.
     3  
     4  # options for analysis running
     5  run:
     6    # default concurrency is a available CPU number
     7    concurrency: 8
     8    # timeout for analysis, e.g. 30s, 5m, default is 1m
     9    timeout: 30m
    10    # exit code when at least one issue was found, default is 1
    11    issues-exit-code: 1
    12  
    13    # which dirs to skip: issues from them won't be reported;
    14    # can use regexp here: generated.*, regexp is applied on full path;
    15    # default value is empty list, but default dirs are skipped independently
    16    # from this option's value (see skip-dirs-use-default).
    17    skip-dirs:
    18  
    19    # default is true. Enables skipping of directories:
    20    #   vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
    21    skip-dirs-use-default: true
    22  
    23    # which files to skip: they will be analyzed, but issues from them
    24    # won't be reported. Default value is empty list, but there is
    25    # no need to include all autogenerated files, we confidently recognize
    26    # autogenerated files. If it's not please let us know.
    27    skip-files:
    28  
    29    # by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
    30    # If invoked with -mod=readonly, the go command is disallowed from the implicit
    31    # automatic updating of go.mod described above. Instead, it fails when any changes
    32    # to go.mod are needed. This setting is most useful to check that go.mod does
    33    # not need updates, such as in a continuous integration and testing system.
    34    # If invoked with -mod=vendor, the go command assumes that the vendor
    35    # directory holds the correct copies of dependencies and ignores
    36    # the dependency descriptions in go.mod.
    37    modules-download-mode: readonly
    38  
    39  
    40  # output configuration options
    41  output:
    42    # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
    43    format: colored-line-number
    44  
    45    # print lines of code with issue, default is true
    46    print-issued-lines: true
    47  
    48    # print linter name in the end of issue text, default is true
    49    print-linter-name: true
    50  
    51    # make issues output unique by line, default is true
    52    uniq-by-line: true
    53  issues:
    54    max-issues-per-linter: 0
    55    max-same-issues: 0
    56  linters:
    57    enable:
    58    - deadcode
    59    - errcheck
    60    - gosimple
    61    - govet
    62    - ineffassign
    63    - staticcheck
    64    - structcheck
    65    - typecheck
    66    - unused
    67    - varcheck
    68    - gofmt
    69    - golint
    70    - goimports
    71    - gocritic
    72    - unconvert
    73    - unparam
    74    fast: false