vendor/github.com/go-rod/rod/.golangci.yml

110 lines · 1780 bytes

  1linters:
  2  enable-all: true
  3  disable:
  4    - gochecknoinits
  5    - paralleltest
  6    - wrapcheck
  7    - gosec
  8    - gochecknoglobals
  9    - musttag
 10    - varnamelen
 11    - wsl
 12    - nonamedreturns
 13    - tagliatelle
 14    - nlreturn
 15    - nakedret
 16    - gomnd
 17    - mnd
 18    - err113
 19    - exhaustruct
 20    - godox
 21    - depguard
 22    - testpackage
 23    - exhaustive
 24    - containedctx
 25    - prealloc
 26    - perfsprint
 27    - ireturn
 28    - contextcheck
 29    - canonicalheader
 30    - copyloopvar
 31    - intrange
 32
 33    # Deprecated ones:
 34    - execinquery
 35    - structcheck
 36    - interfacer
 37    - deadcode
 38    - varcheck
 39    - ifshort
 40    - exhaustivestruct
 41    - golint
 42    - maligned
 43    - nosnakecase
 44    - scopelint
 45
 46linters-settings:
 47  cyclop:
 48    max-complexity: 15
 49  gocyclo:
 50    min-complexity: 15
 51  nestif:
 52    min-complexity: 6
 53  funlen:
 54    lines: 120
 55
 56issues:
 57  exclude-use-default: false
 58
 59  exclude-rules:
 60    - path: _test.go$
 61      linters:
 62        - lll
 63        - funlen
 64        - dupword
 65        - goconst
 66        - contextcheck
 67        - errorlint
 68        - testableexamples
 69        - forcetypeassert
 70
 71    # Generated code
 72    - path: lib/proto/
 73      linters:
 74        - lll
 75        - gocritic
 76        - dupword
 77        - forcetypeassert
 78    - path: lib/devices/list.go
 79      linters:
 80        - lll
 81    - path: lib/js/helper.go
 82      linters:
 83        - lll
 84
 85    - path: /fixtures/
 86      linters:
 87        - forbidigo
 88
 89    - path: lib/examples/
 90      linters:
 91        - forbidigo
 92        - noctx
 93        - gocritic
 94
 95    - path: examples?_test.go$
 96      linters:
 97        - forbidigo
 98        - noctx
 99        - gocritic
100
101    - path: main.go$
102      linters:
103        - forbidigo
104        - noctx
105        - forcetypeassert
106        - lll
107
108    - path: lib/assets/
109      linters:
110        - lll