syzkaller/.golangci.yml
Dmitry Vyukov 0f33548a39 tools/syz-trace2syz: disable golangci-lint
A new version of golangci-lint started failing trying to build syz-trace2syz
(because we already ignore some files).
Ignore the rest of files to fix the failure.
2019-10-08 12:31:54 +02:00

72 lines
1.6 KiB
YAML

# Copyright 2019 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
run:
deadline: 8m
skip-dirs:
- pkg/kd
- tools/syz-trace2syz
# Autogenerated files take too much time and memory to load,
# even if we skip them with skip-dirs.
# So we define this tag and use it in the autogenerated files.
build-tags:
- codeanalysis
linters:
enable:
- lll
- vet
- gofmt
- golint
- structcheck
- unconvert
- deadcode
- goconst
- unused
- gosimple
- varcheck
- misspell
- gocyclo
- vetshadow
- megacheck
- stylecheck
- govet
disable:
- typecheck
- ineffassign
- errcheck
- interfacer
- unparam
- nakedret
- prealloc
- scopelint
- gocritic
linters-settings:
lll:
line-length: 120
gocyclo:
min-complexity: 24
dupl:
threshold: 60
goconst:
min-len: 7
min-occurrences: 4
issues:
exclude-use-default: false
exclude:
- "exported .* should have comment"
- "comment on .* should be of the form"
- "declaration of \"err\" shadows"
- "should not use ALL_CAPS in Go names"
- "at least one file in a package should have a package comment"
- "methods on the same type should have the same receiver name"
- "assigning the result of this type assertion to a variable"
exclude-rules:
- path: (pkg/csource/generated.go|pkg/report/linux.go|pkg/build/linux_generated.go)
linters:
- lll
- path: (sys/.*/init.*|sys/targets/common.go)
text: "don't use ALL_CAPS in Go names"