Preparing report...

Report for github.com/apolloconfig/agollo

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


gocyclo98%

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.


golint93%

Golint is a linter for Go source code.

    • agollo/env/config/apollo_config.go
    • Line 39: warning: comment on exported method CurrentApolloConfig.Set should be of the form "Set ..." (golint)
    • Line 47: warning: comment on exported method CurrentApolloConfig.Get should be of the form "Get ..." (golint)
    • Line 55: warning: comment on exported method CurrentApolloConfig.GetReleaseKey should be of the form "GetReleaseKey ..." (golint)
    • agollo/storage/change_event.go
    • Line 21: warning: exported const ADDED should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: comment on exported type ConfigChangeType should be of the form "ConfigChangeType ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type ChangeEvent should be of the form "ChangeEvent ..." (with optional leading article) (golint)
    • Line 50: warning: exported type ConfigChange should have comment or be unexported (golint)
    • Line 56: warning: comment on exported type FullChangeEvent should be of the form "FullChangeEvent ..." (with optional leading article) (golint)
    • agollo/env/server/server.go
    • Line 39: warning: exported type Info should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function GetServers should be of the form "GetServers ..." (golint)
    • Line 66: warning: exported function SetServers should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!