github.com/willabides/benchdiff@v0.9.1/.golangci.yml (about)

     1  # configure golangci-lint
     2  # see https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
     3  issues:
     4    exclude-use-default: false
     5    exclude-rules:
     6      - path: _test\.go
     7        linters:
     8          - dupl
     9          - gosec
    10          - goconst
    11    exclude:
    12      - "G302: Expect file permissions to be 0600 or less"
    13      - "G304: Potential file inclusion via variable"
    14      - "G204: Subprocess launched with a potential tainted input or cmd arguments"
    15      - "G306: Expect WriteFile permissions to be 0600 or less"
    16  linters:
    17    enable:
    18      - gosec
    19      - unconvert
    20      - gocyclo
    21      - goconst
    22      - goimports
    23      - gocritic
    24      - gofumpt
    25      - revive
    26  linters-settings:
    27    gocritic:
    28      enabled-tags:
    29        - style
    30        - diagnostic
    31        - performance
    32    errcheck:
    33      # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
    34      # default is false: such cases aren't reported by default.
    35      check-blank: true
    36    govet:
    37      # report about shadowed variables
    38      check-shadowing: true
    39    maligned:
    40      # print struct with more effective memory layout or not, false by default
    41      suggest-new: true
    42    revive:
    43      rules:
    44        - name: package-comments
    45          disabled: true