diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-06-04 22:35:04 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-06-05 12:23:19 +0200 |
| commit | 2fcb2b5c16e21d2a94741e19bbe7443d88127273 (patch) | |
| tree | 13352ecf78a58fc120966ef47a6fc35a10f42551 /pkg/report/linux.go | |
| parent | e3d77cf2a3cefdc0b6781c32ca3b878568a5856b (diff) | |
.golangci.yml: enable gocognit checker
Finds too complex functions.
Similar to gocyclo, but uses somewhat different metric.
Diffstat (limited to 'pkg/report/linux.go')
| -rw-r--r-- | pkg/report/linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 760c9949c..6f968ada9 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -196,7 +196,7 @@ func (ctx *linux) findFirstOops(output []byte) (oops *oops, startPos int, contex } // Yes, it is complex, but all state and logic are tightly coupled. It's unclear how to simplify it. -// nolint: gocyclo +// nolint: gocyclo, gocognit func (ctx *linux) findReport(output []byte, oops *oops, startPos int, context string, useQuestionable bool) ( endPos, reportEnd int, report []byte, prefix [][]byte) { // Prepend 5 lines preceding start of the report, |
