aboutsummaryrefslogtreecommitdiffstats
path: root/.golangci.yml
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-07-02 18:38:27 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-07-04 15:05:30 +0200
commitc992206a1d8b6e537fe1782d025c25ea77bce06d (patch)
tree724ed6ceb179555b56bf63afb4a82eca7c948f25 /.golangci.yml
parentfcb219b67eb296b6781f81074e9cb5b09163f734 (diff)
tools/syz-linter: add custom linter
For now we have 2 simple checks: 1. for multiline comments: /* */ -> // 2. for string len comparison with 0: len(str) != 0 -> str != "" Update #1876
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
index e645b3910..624fc58e8 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -41,6 +41,7 @@ linters:
- gocognit
- funlen
- dupl
+ - syz-linter
disable:
- bodyclose
- depguard
@@ -90,6 +91,9 @@ linters-settings:
# TODO: consider reducing these value.
lines: 140
statements: 80
+ custom:
+ syz-linter:
+ path: bin/syz-linter.so
issues:
exclude-use-default: false