rollbar/terraform-provider-rollbar

View on GitHub
.golangci.yml

Summary

Maintainability
Test Coverage
linters-settings:
 govet:
   check-shadowing: true
 golint:
   min-confidence: 0
 gocyclo:
   min-complexity: 24
 maligned:
   suggest-new: true
 dupl:
   threshold: 200
 goconst:
   min-len: 2
   min-occurrences: 2
 misspell:
   locale: US
 lll:
   line-length: 140
 gocritic:
   enabled-tags:
     - performance
     - style
     - experimental
   disabled-checks:
     - wrapperFunc
     - hugeParam
     - rangeValCopy

linters:
 disable-all: true
 enable:
   - deadcode
   - dupl
   - gas
   - gocritic
   - gocyclo
   - gosimple
   - govet
   - ineffassign
   - megacheck
   - misspell
   - nakedret
   - prealloc
   - structcheck
   - stylecheck
   - typecheck
   - unconvert
   - unparam
   - varcheck
 fast: false

run:
 skip-dirs:
   - vendor
 concurrency: 4

issues:
 exclude-rules:
   - text: "weak cryptographic primitive" 
     linters:
       - gosec
   - text: "TLS InsecureSkipVerify set true"
     linters:
       - gosec
   - text: "Potential hardcoded credentials"
     linters:
       - gosec
   - text: "error strings should not be capitalized"
     linters:
       - stylecheck
 exclude-use-default: false

service:
 golangci-lint-version: 1.17.x