github.com/decred/dcrlnd@v0.7.6/.golangci.yml (about) 1 run: 2 deadline: 10m 3 4 linters: 5 # Skip autogenerated files for mobile and gRPC. 6 skip-files: 7 - "mobile\\/.*generated\\.go" 8 - "\\.pb\\.go$" 9 - "\\.pb\\.gw\\.go$" 10 11 disable-all: true 12 enable: 13 - asciicheck 14 - bidichk 15 - bodyclose 16 - errchkjson 17 - exportloopref 18 - gofmt 19 - gosimple 20 - govet 21 - grouper 22 - ineffassign 23 - nosprintfhostport 24 - reassign 25 - rowserrcheck 26 - typecheck 27 - unconvert 28 - unused 29 - vetshadow 30 31 issues: 32 # Only show newly introduced problems. 33 new-from-rev: 01f696afce2f9c0d4ed854edefa3846891d01d8a 34 35 exclude-rules: 36 # Exclude gosec from running for tests so that tests with weak randomness 37 # (math/rand) will pass the linter. 38 - path: _test\.go 39 linters: 40 - gosec 41 42 # Fix false positives because of build flags in itest directory. 43 - path: lntest/itest/.* 44 linters: 45 - unused 46 - deadcode 47 - unparam 48 - govet 49 50 # Ignore govet.lostcancel in integration test files. The 51 # integration tests make substantial use of context.WithTimeout() 52 # without corresponding cancel() calls, which trigger this. So 53 # disable these warnings for now until this is fixed upstream 54 # (otherwise merging upstream itest changes will become 55 # significantly harder) 56 - path: lntest/ 57 text: lostcancel