Preparing report...

Report for github.com/lpimem/goblog

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


golint0%

Golint is a linter for Go source code.

    • goblog/app/init.go
    • Line 5: warning: exported var DocBaseDir should have comment or be unexported (golint)
    • Line 6: warning: exported var BaseDir should have comment or be unexported (golint)
    • Line 7: warning: exported var SiteTitle should have comment or be unexported (golint)
    • Line 42: warning: comment on exported var HeaderFilter should be of the form "HeaderFilter ..." (golint)
    • goblog/app/visitor.go
    • Line 14: warning: exported var VisitorCount should have comment or be unexported (golint)
    • Line 16: warning: exported var ReaderCounts should have comment or be unexported (golint)
    • Line 28: warning: exported function RecordVisit should have comment or be unexported (golint)
    • goblog/app/filescan.go
    • Line 18: warning: exported var ArticleCache should have comment or be unexported (golint)
    • Line 19: warning: exported var ArticleList should have comment or be unexported (golint)
    • Line 21: warning: exported function LoadContent should have comment or be unexported (golint)
    • goblog/tests/apptest.go
    • Line 5: warning: exported type AppTest should have comment or be unexported (golint)
    • Line 9: warning: exported method AppTest.Before should have comment or be unexported (golint)
    • Line 13: warning: exported method AppTest.TestThatIndexPageWorks should have comment or be unexported (golint)
    • Line 19: warning: exported method AppTest.After should have comment or be unexported (golint)
    • goblog/app/controllers/app.go
    • Line 13: warning: exported type App should have comment or be unexported (golint)
    • Line 17: warning: exported method App.Index should have comment or be unexported (golint)
    • Line 23: warning: exported method App.Doc should have comment or be unexported (golint)
    • goblog/app/models/article.go
    • Line 5: warning: exported type ArticleInfo should have comment or be unexported (golint)
    • Line 13: warning: exported method ArticleInfo.MTimeRepr should have comment or be unexported (golint)
    • goblog/app/htmlconv/postprocess.go
    • Line 8: warning: don't use underscores in Go names; var ptn_youtube should be ptnYoutube (golint)
    • Line 9: warning: don't use underscores in Go names; var prefix_youtube should be prefixYoutube (golint)
    • Line 10: warning: don't use underscores in Go names; var suffix_youtube should be suffixYoutube (golint)
    • Line 22: warning: exported function PostProcessHTML should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign60%

IneffAssign detects ineffectual assignments in Go code.

    • goblog/tests/apptest.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/revel/revel/testing (invalid package name: "") (ineffassign)
    • Line 14: warning: t.Get undefined (type *AppTest has no field or method Get) (ineffassign)
    • Line 15: warning: t.AssertOk undefined (type *AppTest has no field or method AssertOk) (ineffassign)
    • Line 16: warning: t.AssertContentType undefined (type *AppTest has no field or method AssertContentType) (ineffassign)
    • goblog/app/controllers/app.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import goblog/app (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import goblog/app/routes (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/revel/revel (invalid package name: "") (ineffassign)
    • Line 20: warning: c.Render undefined (type App has no field or method Render) (ineffassign)
    • Line 37: warning: c.Flash undefined (type App has no field or method Flash) (ineffassign)
    • Line 44: warning: c.Render undefined (type App has no field or method Render) (ineffassign)
    • goblog/app/htmlconv/markdown.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/microcosm-cc/bluemonday (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/russross/blackfriday (invalid package name: "") (ineffassign)
    • goblog/app/filescan.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import goblog/app/models (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import goblog/app/htmlconv (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/bradfitz/slice (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/revel/revel (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!