Preparing report...

Report for github.com/rodrigo-brito/gocity

A+    Excellent!    Found 10 issues across 20 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!


golint50%

Golint is a linter for Go source code.

    • gocity/analyzer/analyzer.go
    • Line 17: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 29: warning: exported type Option should have comment or be unexported (golint)
    • Line 31: warning: exported function NewAnalyzer should have comment or be unexported (golint)
    • Line 45: warning: exported function WithIgnoreList should have comment or be unexported (golint)
    • Line 63: warning: receiver name a should be consistent with previous receiver name p for analyzer (golint)
    • gocity/model/node.go
    • Line 12: warning: exported type NodeType should have comment or be unexported (golint)
    • Line 15: warning: exported const StructType should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type Node should have comment or be unexported (golint)
    • Line 37: warning: exported const BaseTypeFlag should have comment (or a comment on this block) or be unexported (golint)
    • Line 62: warning: exported method Node.GenerateChildList should have comment or be unexported (golint)
    • Line 76: warning: exported method Node.GenerateChildrenPosition should have comment or be unexported (golint)
    • Line 110: warning: exported function New should have comment or be unexported (golint)
    • gocity/model/position.go
    • Line 7: warning: exported type Position should have comment or be unexported (golint)
    • Line 24: warning: exported function NewGenerator should have comment or be unexported (golint)
    • gocity/lib/cache.go
    • Line 9: warning: exported type Cache should have comment or be unexported (golint)
    • Line 15: warning: exported function NewCache should have comment or be unexported (golint)
    • gocity/lib/file.go
    • Line 15: warning: exported function TrimGoPath should have comment or be unexported (golint)
    • Line 19: warning: exported function GetFileAndStruct should have comment or be unexported (golint)
    • Line 32: warning: exported function GetIdentifier should have comment or be unexported (golint)
    • Line 40: warning: exported function IsGoFile should have comment or be unexported (golint)
    • Line 44: warning: exported function GetGithubBaseURL should have comment or be unexported (golint)
    • gocity/analyzer/visitor.go
    • Line 10: warning: exported type NodeInfo should have comment or be unexported (golint)
    • Line 19: warning: exported type Visitor should have comment or be unexported (golint)
    • Line 30: warning: exported method Visitor.Visit should have comment or be unexported (golint)
    • gocity/lib/fetch.go
    • Line 12: warning: exported type Fetcher should have comment or be unexported (golint)
    • Line 16: warning: exported function NewFetcher should have comment or be unexported (golint)
    • gocity/handle/analyzer.go
    • Line 22: warning: exported type AnalyzerHandle should have comment or be unexported (golint)
    • Line 27: warning: exported method AnalyzerHandle.Handler should have comment or be unexported (golint)
    • Line 74: warning: exported method AnalyzerHandle.SetProjectURL should have comment or be unexported (golint)
    • Line 78: warning: exported method AnalyzerHandle.Serve 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!


misspell95%

Misspell Finds commonly misspelled English words