refactor: enhance detection processing logic in processor.go #679
Annotations
10 errors
golangci-lint:
internal/analysis/file.go#L145
cognitive complexity 119 of func `processAudioFile` is high (> 50) (gocognit)
|
golangci-lint:
internal/analysis/processor/processor.go#L343
cognitive complexity 60 of func `(*Processor).pendingDetectionsFlusher` is high (> 50) (gocognit)
|
golangci-lint:
internal/httpcontroller/handlers/settings.go#L191
cognitive complexity 125 of func `updateStructFromForm` is high (> 50) (gocognit)
|
golangci-lint:
cmd/benchmark/benchmark.go#L133
unnamedResult: consider giving a name to these results (gocritic)
|
golangci-lint:
internal/analysis/processor/actions.go#L72
hugeParam: a is heavy (288 bytes); consider passing it by pointer (gocritic)
|
golangci-lint:
internal/analysis/processor/actions.go#L91
hugeParam: a is heavy (328 bytes); consider passing it by pointer (gocritic)
|
golangci-lint:
internal/analysis/processor/actions.go#L170
hugeParam: a is heavy (320 bytes); consider passing it by pointer (gocritic)
|
golangci-lint:
internal/analysis/processor/actions.go#L206
hugeParam: a is heavy (312 bytes); consider passing it by pointer (gocritic)
|
golangci-lint:
internal/analysis/processor/processor.go#L149
hugeParam: item is heavy (112 bytes); consider passing it by pointer (gocritic)
|
golangci-lint:
internal/analysis/processor/processor.go#L197
hugeParam: item is heavy (112 bytes); consider passing it by pointer (gocritic)
|
Loading