Preparing report...

Report for github.com/jriquelme/SemanticMergeGO

A    Great!    Found 6 issues across 10 files

Tweet

gofmt90%

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!


gocyclo90%

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.


golint60%

Golint is a linter for Go source code.

    • SemanticMergeGO/smgo/declarations_tree.go
    • Line 16: warning: exported method File.AddNode should have comment or be unexported (golint)
    • Line 20: warning: exported method File.Nodes should have comment or be unexported (golint)
    • Line 24: warning: exported type NodeType should have comment or be unexported (golint)
    • Line 29: warning: exported const PackageNode should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type Container should have comment or be unexported (golint)
    • Line 50: warning: exported method Container.AddNode should have comment or be unexported (golint)
    • Line 54: warning: exported method Container.Nodes should have comment or be unexported (golint)
    • Line 58: warning: exported type Terminal should have comment or be unexported (golint)
    • Line 65: warning: exported type ParsingError should have comment or be unexported (golint)
    • Line 70: warning: exported type Location should have comment or be unexported (golint)
    • Line 79: warning: exported type LocationSpan should have comment or be unexported (golint)
    • Line 88: warning: exported type RuneSpan should have comment or be unexported (golint)
    • SemanticMergeGO/smgo/parser.go
    • Line 16: warning: exported var ErrUnsupportedEncoding should have comment or be unexported (golint)
    • Line 277: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 405: warning: should omit 2nd value from range; this loop is equivalent to `for cg := range ...` (golint)
    • SemanticMergeGO/smgo-cli/yaml.go
    • Line 5: warning: exported type File should have comment or be unexported (golint)
    • Line 15: warning: exported type Container should have comment or be unexported (golint)
    • Line 24: warning: exported type Terminal should have comment or be unexported (golint)
    • Line 31: warning: exported type ParsingError should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell90%

Misspell Finds commonly misspelled English words