github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/.golangci.yml (about) 1 linters: 2 disable-all: true 3 enable: 4 - bodyclose 5 - deadcode 6 - depguard 7 - dogsled 8 - errcheck 9 - goconst 10 - gocritic 11 - gofmt 12 - goimports 13 - golint 14 - gosec 15 - gosimple 16 - govet 17 - ineffassign 18 - interfacer 19 - misspell 20 - maligned 21 - nakedret 22 - prealloc 23 - scopelint 24 - staticcheck 25 - structcheck 26 - stylecheck 27 - typecheck 28 - unconvert 29 - unused 30 - varcheck 31 32 issues: 33 exclude-rules: 34 - text: "Use of weak random number generator" 35 linters: 36 - gosec 37 - text: "comment on exported var" 38 linters: 39 - golint 40 - text: "don't use an underscore in package name" 41 linters: 42 - golint 43 - text: "ST1003:" 44 linters: 45 - stylecheck 46 47 linters-settings: 48 dogsled: 49 max-blank-identifiers: 3 50 maligned: 51 # print struct with more effective memory layout or not, false by default 52 suggest-new: true 53 errcheck: 54 # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`; 55 # default is false: such cases aren't reported by default. 56 check-blank: true 57 golint: 58 # minimal confidence for issues, default is 0.8 59 min-confidence: 0 60 # prealloc: 61 # # XXX: we don't recommend using this linter before doing performance profiling. 62 # # For most programs usage of prealloc will be a premature optimization. 63 # 64 # # Report preallocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them. 65 # # True by default. 66 # simple: false 67 # range-loops: true # Report preallocation suggestions on range loops, true by default 68 # for-loops: true # Report preallocation suggestions on for loops, false by default