Preparing report...

Report for github.com/wzshiming/profile_stats

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

    • profile_stats/render/funcs.go
    • Line 13: warning: exported var Funcs should have comment or be unexported (golint)
    • Line 88: warning: exported function GetBuffer should have comment or be unexported (golint)
    • Line 94: warning: exported function PutBuffer should have comment or be unexported (golint)
    • Line 98: warning: exported function NewCompressedSpacesWriter should have comment or be unexported (golint)
    • profile_stats/generator/now/now.go
    • Line 11: warning: exported type Now should have comment or be unexported (golint)
    • Line 14: warning: exported function NewNow should have comment or be unexported (golint)
    • Line 18: warning: exported method Now.Generate should have comment or be unexported (golint)
    • profile_stats/source/github.go
    • Line 14: warning: exported const MaxPageSize should have comment or be unexported (golint)
    • Line 16: warning: exported type Stat should have comment or be unexported (golint)
    • Line 27: warning: exported type OrgStat should have comment or be unexported (golint)
    • Line 36: warning: exported function NewSource should have comment or be unexported (golint)
    • Line 47: warning: exported type Source should have comment or be unexported (golint)
    • Line 52: warning: exported method Source.Stat should have comment or be unexported (golint)
    • Line 101: warning: exported method Source.OrgStat should have comment or be unexported (golint)
    • Line 140: warning: exported method Source.CommitCounter should have comment or be unexported (golint)
    • Line 150: warning: exported type PullRequest should have comment or be unexported (golint)
    • Line 168: warning: exported method Source.PullRequests should have comment or be unexported (golint)
    • profile_stats/generator/generator.go
    • Line 24: warning: exported type Handler should have comment or be unexported (golint)
    • Line 28: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 45: warning: exported method Handler.Handle should have comment or be unexported (golint)
    • profile_stats/generator/placeholder/placeholder.go
    • Line 12: warning: exported type PlaceHolder should have comment or be unexported (golint)
    • Line 15: warning: exported function NewPlaceHolder should have comment or be unexported (golint)
    • Line 19: warning: exported method PlaceHolder.Generate should have comment or be unexported (golint)
    • Line 27: warning: exported method PlaceHolder.Get should have comment or be unexported (golint)
    • profile_stats/generator/activities/activities.go
    • Line 15: warning: exported type Activities should have comment or be unexported (golint)
    • Line 19: warning: exported function NewActivities should have comment or be unexported (golint)
    • Line 25: warning: exported method Activities.Generate should have comment or be unexported (golint)
    • Line 63: warning: exported method Activities.Get should have comment or be unexported (golint)
    • profile_stats/interface.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported type Args should have comment or be unexported (golint)
    • Line 13: warning: exported type Generator should have comment or be unexported (golint)
    • profile_stats/generator/stats/stats.go
    • Line 15: warning: exported type Stats should have comment or be unexported (golint)
    • Line 19: warning: exported function NewStats should have comment or be unexported (golint)
    • Line 25: warning: exported method Stats.Generate should have comment or be unexported (golint)
    • Line 39: warning: exported method Stats.Get should have comment or be unexported (golint)
    • profile_stats/source/enum.go
    • Line 7: warning: exported type PullRequestState should have comment or be unexported (golint)
    • Line 10: warning: exported const PullRequestStateOpen should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type IssueOrderField should have comment or be unexported (golint)
    • Line 18: warning: exported const IssueOrderFieldCreatedAt should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type OrderDirection should have comment or be unexported (golint)
    • Line 26: warning: exported const OrderDirectionAsc should have comment (or a comment on this block) 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!