github.com/alecthomas/golangci-lint@v1.4.2-0.20180609094924-581a3564ff68/.golangci.example.yml (about) 1 run: 2 concurrency: 4 3 deadline: 1m 4 issues-exit-code: 1 5 tests: true 6 build-tags: 7 - mytag 8 skip-dirs: 9 - external_libs 10 skip-files: 11 - ".*\\.pb\\.go$" 12 13 output: 14 format: colored-line-number 15 print-issued-lines: true 16 print-linter-name: true 17 18 linters-settings: 19 errcheck: 20 check-type-assertions: false 21 check-blank: false 22 govet: 23 check-shadowing: true 24 golint: 25 min-confidence: 0.8 26 gofmt: 27 simplify: true 28 gocyclo: 29 min-complexity: 10 30 maligned: 31 suggest-new: true 32 dupl: 33 threshold: 50 34 goconst: 35 min-len: 3 36 min-occurrences: 3 37 depguard: 38 list-type: blacklist 39 include-go-root: false 40 packages: 41 - github.com/davecgh/go-spew/spew 42 43 linters: 44 enable: 45 - megacheck 46 - vet 47 enable-all: true 48 disable: 49 maligned 50 disable-all: false 51 presets: 52 - bugs 53 - unused 54 fast: false 55 56 issues: 57 exclude: 58 - abcdef 59 exclude-use-default: true 60 max-per-linter: 0 61 max-same: 0 62 new: false 63 new-from-rev: "" 64 new-from-patch: ""