Preparing report...

Report for github.com/tphakala/birdnet-go

(v0.6.4)

A+    Excellent!    Found 27 issues across 150 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo82%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • internal/myaudio/capture.go
    • Line 539: warning: cyclomatic complexity 29 of function captureAudioMalgo() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 20 of function ReconfigureRTSPStreams() is high (> 15) (gocyclo)
    • internal/myaudio/ffmpeg_input.go
    • Line 410: warning: cyclomatic complexity 25 of function manageFfmpegLifecycle() is high (> 15) (gocyclo)
    • Line 238: warning: cyclomatic complexity 16 of function (*FFmpegProcess).processAudio() is high (> 15) (gocyclo)
    • internal/httpcontroller/handlers/birdweather.go
    • Line 28: warning: cyclomatic complexity 21 of function (*Handlers).TestBirdWeather() is high (> 15) (gocyclo)
    • Line 228: warning: cyclomatic complexity 19 of function extractURLFromError() is high (> 15) (gocyclo)
    • Line 177: warning: cyclomatic complexity 19 of function generateBirdWeatherTroubleshootingHint() is high (> 15) (gocyclo)
    • internal/api/v2/settings.go
    • Line 443: warning: cyclomatic complexity 32 of function updateSettingsSectionWithTracking() is high (> 15) (gocyclo)
    • Line 746: warning: cyclomatic complexity 18 of function processFieldLegacy() is high (> 15) (gocyclo)
    • Line 812: warning: cyclomatic complexity 17 of function validateField() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words