github.com/google/cadvisor@v0.49.1/.golangci.yml (about) 1 run: 2 timeout: 5m 3 linters-settings: 4 govet: 5 enable-all: true 6 gofmt: 7 simplify: true 8 goimports: 9 local-prefixes: github.com/google/cadvisor 10 linters: 11 disable-all: true 12 enable: 13 - govet 14 - errcheck 15 - staticcheck 16 - unused 17 - gosimple 18 - ineffassign 19 - typecheck 20 - gofmt 21 - goimports 22 issues: 23 max-issues-per-linter: 0 24 max-same-issues: 0 25 exclude-case-sensitive: true 26 exclude: 27 # integration/tests/api/event_test.go:66:6: func `waitForStaticEvent` is unused (unused) 28 # Flaky test skipped. 29 - waitForStaticEvent 30 # Initialism or acronyms for fields, vars and types: 31 - "(struct field|var|type|const) `[A-Z].*` should be `.*`" 32 # Initialism or acronyms - renaming exported methods and functions can be tricky: 33 - "(method|func) [A-Z].* should be .*" 34 # Stuttering affects exported names: 35 - "type name will be used as .*\\.[A-Z]{1}.* by other packages, and that stutters" 36 exclude-rules: 37 # utils/cpuload/netlink/netlink.go:102:15: Error return value of `binary.Write` is not checked (errcheck) 38 # There are more similar issues in this file 39 - path: utils/cpuload/netlink/netlink.go 40 text: "Error return value of `binary.Write` is not checked"