aboutsummaryrefslogtreecommitdiffstats
path: root/.golangci.yml
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-06-04 23:07:55 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-06-05 12:23:19 +0200
commit2b2857bd2191458a131689502224abfe9cdd7a4a (patch)
tree1b27643621dc8e8174302291b8dd3e093c307932 /.golangci.yml
parent2fcb2b5c16e21d2a94741e19bbe7443d88127273 (diff)
.golangci.yml: enable funlen checker
Checks for too long functions (based on lines and statements).
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 553b6ff78..8c4834bcf 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -39,6 +39,7 @@ linters:
- goprintffuncname
- godot
- gocognit
+ - funlen
disable:
- bodyclose
- depguard
@@ -85,6 +86,10 @@ linters-settings:
gocognit:
# TODO: consider reducing this value.
min-complexity: 70
+ funlen:
+ # TODO: consider reducing these value.
+ lines: 200
+ statements: 80
issues:
exclude-use-default: false