...

Text file src/github.com/hashicorp/golang-lru/v2/.golangci.yml

Documentation: github.com/hashicorp/golang-lru/v2

     1# Copyright (c) HashiCorp, Inc.
     2# SPDX-License-Identifier: MPL-2.0
     3
     4linters:
     5  fast: false
     6  disable-all: true
     7  enable:
     8    - revive
     9    - megacheck
    10    - govet
    11    - unconvert
    12    - gas
    13    - gocyclo
    14    - dupl
    15    - misspell
    16    - unparam
    17    - unused
    18    - typecheck
    19    - ineffassign
    20    # - stylecheck
    21    - exportloopref
    22    - gocritic
    23    - nakedret
    24    - gosimple
    25    - prealloc
    26
    27# golangci-lint configuration file
    28linters-settings:
    29  revive:
    30    ignore-generated-header: true
    31    severity: warning
    32    rules:
    33      - name: package-comments
    34        severity: warning
    35        disabled: true
    36      - name: exported
    37        severity: warning
    38        disabled: false
    39        arguments: ["checkPrivateReceivers", "disableStutteringCheck"]
    40
    41issues:
    42  exclude-use-default: false
    43  exclude-rules:
    44    - path: _test\.go
    45      linters:
    46        - dupl

View as plain text