Preparing report...

Report for github.com/ant-libs-go/config

A    Great!    Found 5 issues across 6 files

Tweet

gofmt83%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint16%

Golint is a linter for Go source code.

    • config/parser/toml.go
    • Line 18: warning: exported type TomlImport should have comment or be unexported (golint)
    • Line 22: warning: exported type TomlParser should have comment or be unexported (golint)
    • Line 24: warning: exported function NewTomlParser should have comment or be unexported (golint)
    • Line 28: warning: exported method TomlParser.Unmarshal should have comment or be unexported (golint)
    • Line 28: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 41: warning: exported method TomlParser.GetLastModTime should have comment or be unexported (golint)
    • Line 41: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 58: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 74: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • config/parser/toml_apollo.go
    • Line 21: warning: exported type TomlApolloEntrance should have comment or be unexported (golint)
    • Line 27: warning: exported type TomlApolloParser should have comment or be unexported (golint)
    • Line 33: warning: exported function NewTomlApolloParser should have comment or be unexported (golint)
    • Line 38: warning: exported method TomlApolloParser.Unmarshal should have comment or be unexported (golint)
    • Line 38: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 80: warning: exported method TomlApolloParser.GetLastModTime should have comment or be unexported (golint)
    • Line 80: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 100: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 110: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 130: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • config/config.go
    • Line 20: warning: exported var Instance should have comment or be unexported (golint)
    • Line 30: warning: exported type Config should have comment or be unexported (golint)
    • Line 37: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 62: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 98: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 109: warning: exported function Get should have comment or be unexported (golint)
    • config/options/options.go
    • Line 10: warning: exported type Options should have comment or be unexported (golint)
    • Line 17: warning: exported type Option should have comment or be unexported (golint)
    • Line 19: warning: exported function WithCfgSource should have comment or be unexported (golint)
    • Line 28: warning: exported function WithCheckInterval should have comment or be unexported (golint)
    • Line 34: warning: exported function WithOnErrorFn should have comment or be unexported (golint)
    • Line 40: warning: exported function WithOnChangeFn should have comment or be unexported (golint)
    • Line 46: warning: exported type OpOptions should have comment or be unexported (golint)
    • Line 51: warning: exported type OpOption should have comment or be unexported (golint)
    • Line 53: warning: exported function WithOpOnErrorFn should have comment or be unexported (golint)
    • Line 59: warning: exported function WithOpOnChangeFn should have comment or be unexported (golint)
    • config/parser/parser.go
    • Line 17: warning: exported type Parser should have comment or be unexported (golint)
    • Line 22: warning: exported function ParseFileLastModTime should have comment 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!