Preparing report...

Report for github.com/lcomrade/horizon

A    Great!    Found 5 issues across 4 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!


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!


golint25%

Golint is a linter for Go source code.

    • horizon/cmd/horizon.go
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 36: warning: comment on exported type TemplateType should be of the form "TemplateType ..." (with optional leading article) (golint)
    • Line 44: warning: exported type FilesType should have comment or be unexported (golint)
    • Line 56: warning: comment on exported function MainHandler should be of the form "MainHandler ..." (golint)
    • Line 67: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • horizon/internal/logger/logger.go
    • Line 1: warning: package comment should be of the form "Package logger ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 27: warning: exported var Info should have comment or be unexported (golint)
    • Line 28: warning: exported var Warning should have comment or be unexported (golint)
    • Line 29: warning: exported var Error should have comment or be unexported (golint)
    • horizon/internal/settings/settings.go
    • Line 1: warning: package comment should be of the form "Package settings ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 35: warning: comment on exported type ConfigType should be of the form "ConfigType ..." (with optional leading article) (golint)
    • Line 41: warning: exported type HttpServerType should have comment or be unexported (golint)
    • Line 48: warning: comment on exported var ConfigDefault should be of the form "ConfigDefault ..." (golint)
    • Line 58: warning: comment on exported function GetFilePath should be of the form "GetFilePath ..." (golint)
    • Line 100: warning: comment on exported function ReadConfig should be of the form "ReadConfig ..." (golint)
    • Line 128: warning: comment on exported function GetHtmlPageTemplate should be of the form "GetHtmlPageTemplate ..." (golint)
    • Line 184: warning: comment on exported var ArgDir should be of the form "ArgDir ..." (golint)
    • Line 186: warning: exported var ArgConfigDir should have comment or be unexported (golint)
    • Line 187: warning: exported var Config should have comment or be unexported (golint)
    • Line 188: warning: exported var HtmlTemplate should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!