mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 11:29:46 +00:00
05359321bb
Newer version started producing more warnings. Fix them.
76 lines
1.7 KiB
YAML
76 lines
1.7 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
|
|
|
|
output:
|
|
print-linter-name: false
|
|
|
|
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
|
|
max-same-issues: 0
|
|
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"
|