github.com/grafana/pyroscope@v1.18.0/.golangci.yml (about)

     1  version: "2"
     2  run:
     3    concurrency: 16
     4    go: "1.21"
     5    modules-download-mode: readonly
     6    issues-exit-code: 1
     7    tests: true
     8  output:
     9    formats:
    10      text:
    11        path: stdout
    12        print-linter-name: true
    13        print-issued-lines: true
    14  linters:
    15    enable:
    16      - depguard
    17      - goconst
    18      - misspell
    19      - revive
    20      - unconvert
    21      - unparam
    22    settings:
    23      depguard:
    24        rules:
    25          main:
    26            deny:
    27              - pkg: github.com/go-kit/kit/log
    28                desc: Use github.com/go-kit/log instead of github.com/go-kit/kit/log
    29      revive:
    30        rules:
    31          - name: receiver-naming
    32            disabled: true
    33    exclusions:
    34      generated: lax
    35      presets:
    36        - comments
    37        - common-false-positives
    38        - legacy
    39        - std-error-handling
    40      rules:
    41        - path: (.+)\.go$
    42          text: Error return value of .*log\.Logger\)\.Log\x60 is not checked
    43        - path: (.+)\.go$
    44          text: Error return value of .*.Log.* is not checked
    45        - path: (.+)\.go$
    46          text: Error return value of `` is not checked
    47        - path: (.+)\.go$
    48          text: grpc.Dial(.*) is deprecated
    49      paths:
    50        - .*.pb.go
    51        - .*.y.go
    52        - .*.rl.go
    53        - win_eventlog$
    54        - pkg/og
    55        - third_party$
    56        - builtin$
    57        - examples$
    58  formatters:
    59    enable:
    60      - gofmt
    61      - goimports
    62    settings:
    63      goimports:
    64        local-prefixes:
    65          - github.com/grafana/pyroscope/
    66          - github.com/grafana/pyroscope/api
    67          - github.com/grafana/pyroscope/tools
    68          - github.com/grafana/pyroscope/ebpf
    69    exclusions:
    70      generated: lax
    71      paths:
    72        - .*.pb.go
    73        - .*.y.go
    74        - .*.rl.go
    75        - win_eventlog$
    76        - pkg/og
    77        - third_party$
    78        - builtin$
    79        - examples$