@@ -208,6 +208,7 @@ Disabled by default linters:
208208bodyclose: checks whether HTTP response body is closed successfully [fast: false, auto-fix: false]
209209depguard: Go linter that checks if package imports are in a list of acceptable packages [fast: true, auto-fix: false]
210210dupl: Tool for code clone detection [fast: true, auto-fix: false]
211+ funlen: Tool for detection of long functions [fast: true, auto-fix: false]
211212gochecknoglobals: Checks that no globals are present in Go code [fast: true, auto-fix: false]
212213gochecknoinits: Checks that no init functions are present in Go code [fast: true, auto-fix: false]
213214goconst: Finds repeated strings that could be replaced by a constant [fast: true, auto-fix: false]
@@ -440,6 +441,7 @@ golangci-lint help linters
440441- [gocritic](https://github.com/go-critic/go-critic) - The most opinionated Go source code linter
441442- [gochecknoinits](https://github.com/leighmcculloch/gochecknoinits) - Checks that no init functions are present in Go code
442443- [gochecknoglobals](https://github.com/leighmcculloch/gochecknoglobals) - Checks that no globals are present in Go code
444+ - [funlen](https://github.com/ultraware/funlen) - Tool for detection of long functions
443445
444446## Configuration
445447
@@ -629,6 +631,11 @@ linters-settings:
629631 # path to a file containing a list of functions to exclude from checking
630632 # see https://github.com/kisielk/errcheck#excluding-functions for details
631633 exclude: /path/to/file.txt
634+
635+ funlen:
636+ lines: 60
637+ statements: 40
638+
632639 govet:
633640 # report about shadowed variables
634641 check-shadowing: true
@@ -859,6 +866,7 @@ linters:
859866 - maligned
860867 - prealloc
861868 - gochecknoglobals
869+ - funlen
862870
863871run:
864872 skip-dirs:
@@ -999,6 +1007,7 @@ Thanks to developers and authors of used linters:
9991007- [kyoh86](https://github.com/kyoh86)
10001008- [go-critic](https://github.com/go-critic)
10011009- [leighmcculloch](https://github.com/leighmcculloch)
1010+ - [ultraware](https://github.com/ultraware)
10021011
10031012## Changelog
10041013
0 commit comments