Preparing report...

Report for github.com/get-got/discord-downloader-go

A+    Excellent!    Found 9 issues across 12 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!


gocyclo25%

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.

    • discord-downloader-go/downloads.go
    • Line 566: warning: cyclomatic complexity 141 of function tryDownload() is high (> 15) (gocyclo)
    • Line 195: warning: cyclomatic complexity 60 of function getDownloadLinks() is high (> 15) (gocyclo)
    • Line 407: warning: cyclomatic complexity 44 of function startDownload() is high (> 15) (gocyclo)
    • Line 79: warning: cyclomatic complexity 19 of function getDownloadStatusString() is high (> 15) (gocyclo)
    • discord-downloader-go/config.go
    • Line 649: warning: cyclomatic complexity 37 of function channelDefault() is high (> 15) (gocyclo)
    • Line 412: warning: cyclomatic complexity 28 of function createConfig() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 24 of function loadConfig() is high (> 15) (gocyclo)
    • Line 782: warning: cyclomatic complexity 21 of function isChannelRegistered() is high (> 15) (gocyclo)
    • Line 843: warning: cyclomatic complexity 17 of function getChannelConfig() is high (> 15) (gocyclo)
    • discord-downloader-go/parse.go
    • Line 567: warning: cyclomatic complexity 17 of function getPossibleTistorySiteUrls() is high (> 15) (gocyclo)
    • Line 199: warning: cyclomatic complexity 17 of function getInstagramAlbumUrls() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!