Preparing report...

Report for github.com/uxtoolkit/reconcile

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


gocyclo66%

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.


golint0%

Golint is a linter for Go source code.

    • reconcile/domnode.go
    • Line 16: warning: exported const ElementNodeType should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type Positions should have comment or be unexported (golint)
    • Line 28: warning: exported type Attribute should have comment or be unexported (golint)
    • Line 33: warning: exported type DOMNode should have comment or be unexported (golint)
    • Line 47: warning: exported function NewDOMNode should have comment or be unexported (golint)
    • Line 62: warning: exported method DOMNode.Create should have comment or be unexported (golint)
    • Line 90: warning: exported method DOMNode.Locate should have comment or be unexported (golint)
    • Line 99: warning: exported method DOMNode.IsEqual should have comment or be unexported (golint)
    • Line 108: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 136: warning: exported method DOMNode.GetHTMLContents should have comment or be unexported (golint)
    • Line 139: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 145: warning: exported method DOMNode.AttributesMap should have comment or be unexported (golint)
    • reconcile/parsetree.go
    • Line 20: warning: exported function IsEmptyElement should have comment or be unexported (golint)
    • Line 23: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 28: warning: exported type ParseTree should have comment or be unexported (golint)
    • Line 34: warning: exported function NewParseTree should have comment or be unexported (golint)
    • Line 43: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 166: warning: exported method ParseTree.Compare should have comment or be unexported (golint)
    • Line 166: warning: receiver name t should be consistent with previous receiver name pt for ParseTree (golint)
    • Line 240: warning: exported method ParseTree.ReverseFind should have comment or be unexported (golint)
    • reconcile/reconcile.go
    • Line 15: warning: exported const SetNodeAttributeAction should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type ReconcileParams should have comment or be unexported (golint)
    • Line 25: warning: exported type Reconciler should have comment or be unexported (golint)
    • Line 35: warning: exported method Reconciler.ApplyChange should have comment or be unexported (golint)
    • Line 55: warning: exported type Changes should have comment or be unexported (golint)
    • Line 57: warning: exported method Reconciler.AppendChildNode should have comment or be unexported (golint)
    • Line 68: warning: exported method Reconciler.ReplaceNode should have comment or be unexported (golint)
    • Line 80: warning: exported method Reconciler.RemoveNode should have comment or be unexported (golint)
    • Line 107: warning: exported method Reconciler.RemoveNodeAttribute should have comment or be unexported (golint)
    • Line 112: warning: exported method Reconciler.SetNodeAttribute should have comment or be unexported (golint)
    • Line 117: warning: exported method Changes.ApplyChanges should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign33%

IneffAssign detects ineffectual assignments in Go code.

    • reconcile/parsetree.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import golang.org/x/net/html (invalid package name: "") (ineffassign)
    • reconcile/domnode.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import honnef.co/go/js/dom (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!