github.com/ldez/motoko@v0.3.0/.golangci.yml (about)

     1  run:
     2    timeout: 2m
     3    skip-files: []
     4  
     5  linters-settings:
     6    govet:
     7      check-shadowing: true
     8    gocyclo:
     9      min-complexity: 14
    10    goconst:
    11      min-len: 3
    12      min-occurrences: 3
    13    misspell:
    14      locale: US
    15    gofumpt:
    16      extra-rules: true
    17    depguard:
    18      rules:
    19        main:
    20          deny:
    21            - pkg: "github.com/instana/testify"
    22              desc: not allowed
    23            - pkg: "github.com/pkg/errors"
    24              desc: Should be replaced by standard lib errors package
    25    godox:
    26      keywords:
    27        - FIXME
    28    gocritic:
    29      enabled-tags:
    30        - diagnostic
    31        - style
    32        - performance
    33      disabled-checks:
    34        - unnamedResult
    35        - sloppyReassign
    36        - rangeValCopy
    37        - octalLiteral
    38        - paramTypeCombine # already handle by gofumpt.extra-rules
    39      settings:
    40        hugeParam:
    41          sizeThreshold: 100
    42    forbidigo:
    43      forbid:
    44        - '^print(ln)?$'
    45        - '^panic$'
    46        - '^spew\.Print(f|ln)?$'
    47        - '^spew\.Dump$'
    48    gosec:
    49      excludes:
    50        - G306
    51        - G304
    52  
    53  linters:
    54    enable-all: true
    55    disable:
    56      - scopelint # deprecated
    57      - interfacer # deprecated
    58      - maligned # deprecated
    59      - golint # deprecated
    60      - exhaustivestruct # deprecated
    61      - scopelint # deprecated
    62      - varcheck # deprecated
    63      - structcheck # deprecated
    64      - nosnakecase # deprecated
    65      - deadcode # deprecated
    66      - ifshort # deprecated
    67      - sqlclosecheck # not relevant (SQL)
    68      - rowserrcheck # not relevant (SQL)
    69      - cyclop # duplicate of gocyclo
    70      - lll
    71      - dupl
    72      - wsl
    73      - nlreturn
    74      - gomnd
    75      - goerr113
    76      - wrapcheck
    77      - testpackage
    78      - paralleltest
    79      - tparallel
    80      - noctx
    81      - exhaustive
    82      - exhaustruct
    83      - makezero
    84      - varnamelen
    85  
    86  issues:
    87    exclude-use-default: false
    88    max-issues-per-linter: 0
    89    max-same-issues: 0
    90    exclude:
    91      - 'package-comments: should have a package comment'
    92    exclude-rules:
    93      - path: (.+)_test.go
    94        linters:
    95          - funlen
    96      - path: version.go
    97        text: (version|date|commit) is a global variable
    98      - path: fixtures_test.go
    99        text: (sampleMain20|sampleGoMod20) is a global variable
   100      - path: upgrader.go
   101        text: cognitive complexity (\d+) of func `updatePackages` is high
   102      - linters: [ perfsprint ]
   103        text: 'fmt.Sprintf can be replaced with string'