Preparing report...

Report for git.randomchars.net/Reviath/embed-util

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


golint92%

Golint is a linter for Go source code.

    • /git.randomchars.net/Reviath/embed-util/embed.go
    • Line 7: warning: exported type Embed should have comment or be unexported (golint)
    • Line 12: warning: exported const EmbedLimitTitle should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported function NewEmbed should have comment or be unexported (golint)
    • Line 25: warning: exported method Embed.SetTitle should have comment or be unexported (golint)
    • Line 30: warning: exported method Embed.SetDescription should have comment or be unexported (golint)
    • Line 38: warning: exported method Embed.AddField should have comment or be unexported (golint)
    • Line 91: warning: exported method Embed.SetFooter should have comment or be unexported (golint)
    • Line 118: warning: exported method Embed.SetImage should have comment or be unexported (golint)
    • Line 138: warning: exported method Embed.SetThumbnail should have comment or be unexported (golint)
    • Line 158: warning: exported method Embed.SetAuthor should have comment or be unexported (golint)
    • Line 192: warning: exported method Embed.SetURL should have comment or be unexported (golint)
    • Line 197: warning: exported method Embed.SetColor should have comment or be unexported (golint)
    • Line 202: warning: exported method Embed.InlineAllFields should have comment or be unexported (golint)
    • Line 209: warning: exported method Embed.Truncate should have comment or be unexported (golint)
    • Line 217: warning: exported method Embed.TruncateFields should have comment or be unexported (golint)
    • Line 236: warning: exported method Embed.TruncateDescription should have comment or be unexported (golint)
    • Line 243: warning: exported method Embed.TruncateTitle should have comment or be unexported (golint)
    • Line 250: warning: exported method Embed.TruncateFooter should have comment or be unexported (golint)

gocyclo100%

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.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!