Preparing report...

Report for github.com/dragosv/delta

A    Great!    Found 5 issues across 9 files

Tweet

gofmt88%

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!


gocyclo88%

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.


golint44%

Golint is a linter for Go source code.

    • delta/db/xliff.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 11: warning: exported type Job should have comment or be unexported (golint)
    • Line 16: warning: exported type File should have comment or be unexported (golint)
    • Line 24: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 33: warning: exported type TransUnit should have comment or be unexported (golint)
    • Line 49: warning: exported type Note should have comment or be unexported (golint)
    • Line 58: warning: exported function OpenDatabase should have comment or be unexported (golint)
    • delta/xliff/xliff.go
    • Line 12: warning: exported type Tool should have comment or be unexported (golint)
    • Line 19: warning: exported type Header should have comment or be unexported (golint)
    • Line 23: warning: exported type TransUnit should have comment or be unexported (golint)
    • Line 31: warning: exported type Note should have comment or be unexported (golint)
    • Line 37: warning: exported type Source should have comment or be unexported (golint)
    • Line 42: warning: exported type Target should have comment or be unexported (golint)
    • Line 49: warning: exported type Body should have comment or be unexported (golint)
    • Line 53: warning: exported type File should have comment or be unexported (golint)
    • Line 62: warning: exported type Document should have comment or be unexported (golint)
    • Line 67: warning: exported type ValidationErrorCode should have comment or be unexported (golint)
    • Line 70: warning: exported const UnsupportedVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 82: warning: exported type ValidationError should have comment or be unexported (golint)
    • Line 114: warning: exported function From should have comment or be unexported (golint)
    • Line 123: warning: comment on exported method Document.Validate should be of the form "Validate ..." (golint)
    • Line 220: warning: comment on exported method Document.IsComplete should be of the form "IsComplete ..." (golint)
    • Line 233: warning: comment on exported method Document.IncompleteTransUnits should be of the form "IncompleteTransUnits ..." (golint)
    • Line 249: warning: exported method TransUnit.IsComplete should have comment or be unexported (golint)
    • Line 257: warning: exported method Document.File 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!