Preparing report...

Report for moul.io/sgtm

A+    Excellent!    Found 14 issues across 33 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!


gocyclo90%

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.


golint66%

Golint is a linter for Go source code.

    • /moul.io/sgtm/pkg/sgtm/api.go
    • Line 27: warning: exported method Service.Me should have comment or be unexported (golint)
    • Line 40: warning: exported method Service.Ping should have comment or be unexported (golint)
    • Line 44: warning: exported method Service.Status should have comment or be unexported (golint)
    • Line 53: warning: exported method Service.UserList should have comment or be unexported (golint)
    • Line 61: warning: exported method Service.PostList should have comment or be unexported (golint)
    • /moul.io/sgtm/pkg/sgtm/http_server.go
    • Line 48: warning: exported method Service.StartServer should have comment or be unexported (golint)
    • Line 140: warning: exported method Service.CloseServer should have comment or be unexported (golint)
    • Line 151: warning: exported method Service.ServerListenerAddr should have comment or be unexported (golint)
    • Line 359: warning: exported method Service.AuthFuncOverride should have comment or be unexported (golint)
    • /moul.io/sgtm/pkg/sgtmpb/helpers.go
    • Line 14: warning: exported method Post.ApplyDefaults should have comment or be unexported (golint)
    • Line 24: warning: exported method Post.CanonicalURL should have comment or be unexported (golint)
    • Line 31: warning: exported method Post.GoDuration should have comment or be unexported (golint)
    • Line 35: warning: exported method Post.SafeDescription should have comment or be unexported (golint)
    • Line 42: warning: exported method Post.SafeTitle should have comment or be unexported (golint)
    • Line 52: warning: exported method Post.SafeLyrics should have comment or be unexported (golint)
    • Line 56: warning: exported method Post.Filter should have comment or be unexported (golint)
    • Line 61: warning: exported method Post.IsSoundCloud should have comment or be unexported (golint)
    • Line 62: warning: exported method Post.IsIPFS should have comment or be unexported (golint)
    • Line 64: warning: exported method Post.TagList should have comment or be unexported (golint)
    • Line 77: warning: exported method User.ApplyDefaults should have comment or be unexported (golint)
    • Line 81: warning: exported method User.CanonicalURL should have comment or be unexported (golint)
    • Line 88: warning: exported method User.Fullname should have comment or be unexported (golint)
    • Line 93: warning: exported method User.DisplayName should have comment or be unexported (golint)
    • Line 100: warning: exported method User.OtherLinksList should have comment or be unexported (golint)
    • Line 108: warning: exported method User.HasSomethingAroundTheWeb should have comment or be unexported (golint)
    • Line 115: warning: exported method User.Filter should have comment or be unexported (golint)
    • /moul.io/sgtm/pkg/sgtm/opts.go
    • Line 13: warning: exported type Opts should have comment or be unexported (golint)
    • Line 94: warning: exported method Opts.Filtered should have comment or be unexported (golint)
    • Line 111: warning: exported function DefaultOpts should have comment or be unexported (golint)
    • /moul.io/sgtm/pkg/sgtm/processing.go
    • Line 21: warning: exported type Download should have comment or be unexported (golint)
    • Line 28: warning: exported function DownloadPost should have comment or be unexported (golint)
    • Line 72: warning: exported type ReadSeekerCloser should have comment or be unexported (golint)
    • Line 77: warning: exported function StreamPost should have comment or be unexported (golint)
    • Line 84: warning: exported function ExtractBPM should have comment or be unexported (golint)
    • Line 129: warning: exported type YoutubeDLOutput should have comment or be unexported (golint)

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!