github.com/tunabay/go-bitarray@v1.3.1/.ci/golangci-lint.yml (about)

     1  run:
     2    timeout: 5m
     3    tests: true
     4    fast: false
     5    skip-dirs-use-default: true
     6    print-issued-lines: true
     7    print-linter-name: true
     8  
     9  linters:
    10    disable-all: true
    11    fast: false
    12    enable:
    13      - deadcode
    14      - errcheck
    15      - gosimple
    16      - govet
    17      - ineffassign
    18      - staticcheck
    19      - structcheck
    20      - typecheck
    21      - unused
    22      - varcheck
    23  
    24      - asciicheck
    25      - bodyclose
    26      - dogsled
    27      - errname
    28      - errorlint
    29      - exportloopref
    30      - forbidigo
    31      - forcetypeassert
    32      - goconst
    33      - gocritic
    34      - goerr113
    35      - gofmt
    36      - gofumpt
    37      - goimports
    38      - gomodguard
    39      - goprintffuncname
    40      - gosec
    41      - ifshort
    42      - importas
    43      - misspell
    44      - nakedret
    45      - noctx
    46      - nolintlint
    47      - prealloc
    48      - predeclared
    49      - revive
    50      - rowserrcheck
    51      - sqlclosecheck
    52      - stylecheck
    53      - testpackage
    54      - unconvert
    55      - unparam
    56      - wastedassign
    57      - whitespace
    58      - wrapcheck
    59  
    60  linters-settings:
    61    gofumpt:
    62      lang-version: "1.17"
    63    gosimple:
    64      go: "1.17"
    65    staticcheck:
    66      go: "1.17"
    67    stylecheck:
    68      go: "1.17"
    69    unused:
    70      go: "1.17"
    71  
    72    misspell:
    73      locale: US
    74  
    75    errcheck:
    76      exclude-functions:
    77        - io/ioutil.ReadFile
    78        - io.Copy(*bytes.Buffer)
    79        - io.Copy(os.Stdout)
    80        - (*github.com/tunabay/go-bitarray.Builder).WriteBit
    81        - (*github.com/tunabay/go-bitarray.Builder).WriteByte
    82        - (*github.com/tunabay/go-bitarray.Builder).WriteBitArray
    83  
    84  issues:
    85    max-issues-per-linter: 0
    86    max-same-issues: 0
    87    fix: false
    88  
    89    exclude-use-default: true
    90    exclude-rules:
    91  
    92      # ignore in unit tests
    93      - linters: [ gosec, goerr113, ifshort ]
    94        path: "_test\\.go$"
    95      - linters: [ staticcheck ]
    96        text: "^SA9003: empty branch"