github.com/go-graphite/carbonapi@v0.17.0/.golangci.yaml (about)

     1  .golangci.yaml# Options for analysis running.
     2  run:
     3    # The default concurrency value is the number of available CPU.
     4    # concurrency: 8
     5    # Timeout for analysis, e.g. 30s, 5m.
     6    # Default: 1m
     7    timeout: 5m
     8    # Exit code when at least one issue was found.
     9    # Default: 1
    10    # issues-exit-code: 2
    11    # Include test files or not.
    12    # Default: true
    13    tests: false
    14    # List of build tags, all linters use it.
    15    # Default: [].
    16    # build-tags:
    17    #  - mytag
    18    # Which dirs to skip: issues from them won't be reported.
    19    # Can use regexp here: `generated.*`, regexp is applied on full path.
    20    # Default value is empty list,
    21    # but default dirs are skipped independently of this option's value (see skip-dirs-use-default).
    22    # "/" will be replaced by current OS file path separator to properly work on Windows.
    23    skip-dirs:
    24    # Enables skipping of directories:
    25      - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
    26    # Default: true
    27    skip-dirs-use-default: false
    28    # Which files to skip: they will be analyzed, but issues from them won't be reported.
    29    # Default value is empty list,
    30    # but there is no need to include all autogenerated files,
    31    # we confidently recognize autogenerated files.
    32    # If it's not please let us know.
    33    # "/" will be replaced by current OS file path separator to properly work on Windows.
    34    # skip-files:
    35    #   - ".*\\.my\\.go$"
    36    #   - lib/bad.go
    37    # If set we pass it to "go list -mod={option}". From "go help modules":
    38    # If invoked with -mod=readonly, the go command is disallowed from the implicit
    39    # automatic updating of go.mod described above. Instead, it fails when any changes
    40    # to go.mod are needed. This setting is most useful to check that go.mod does
    41    # not need updates, such as in a continuous integration and testing system.
    42    # If invoked with -mod=vendor, the go command assumes that the vendor
    43    # directory holds the correct copies of dependencies and ignores
    44    # the dependency descriptions in go.mod.
    45    #
    46    # Allowed values: readonly|vendor|mod
    47    # By default, it isn't set.
    48    modules-download-mode: readonly
    49    # Allow multiple parallel golangci-lint instances running.
    50    # If false (default) - golangci-lint acquires file lock on start.
    51    allow-parallel-runners: false
    52    # Define the Go version limit.
    53    # Mainly related to generics support in go1.18.
    54    # Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17
    55    go: '1.18'
    56  linters:
    57    # Disable all linters.
    58    # Default: false
    59    # disable-all: true
    60    # Enable specific linter
    61    # https://golangci-lint.run/usage/linters/#enabled-by-default-linters
    62    # Enable all available linters.
    63    # Default: false
    64    enable-all: true
    65    # Disable specific linter
    66    # https://golangci-lint.run/usage/linters/#disabled-by-default-linters--e--enable
    67    disable:
    68      - scopelint
    69      - exhaustivestruct
    70      - interfacer
    71      - golint
    72      - maligned
    73    # Enable presets.
    74    # https://golangci-lint.run/usage/linters
    75    # presets:
    76    #  - bugs
    77    #  - comment
    78    #  - complexity
    79    #  - error
    80    #  - format
    81    #  - import
    82    #  - metalinter
    83    #  - module
    84    #  - performance
    85    #  - sql
    86    #  - style
    87    #  - test
    88    #  - unused
    89    # Run only fast linters from enabled linters set (first run won't be fast)
    90    # Default: false
    91    fast: false