Preparing report...

Report for github.com/joaosoft/dbr-sync

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


gocyclo87%

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.

    • dbr-sync/dbr-sync.go
    • Line 94: warning: cyclomatic complexity 17 of function (*DbrSync).consumeRabbitMessage() is high (> 15) (gocyclo)

golint0%

Golint is a linter for Go source code.

    • dbr-sync/utils.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 14: warning: exported function GetEnv should have comment or be unexported (golint)
    • Line 23: warning: exported function Exists should have comment or be unexported (golint)
    • Line 32: warning: exported function ReadFile should have comment or be unexported (golint)
    • Line 58: warning: exported function ReadFileLines should have comment or be unexported (golint)
    • Line 83: warning: exported function WriteFile should have comment or be unexported (golint)
    • Line 96: warning: exported function EncodeString should have comment or be unexported (golint)
    • dbr-sync/examples/main.go
    • Line 16: warning: exported type Example should have comment or be unexported (golint)
    • Line 121: warning: exported function HandleSuccessEventProducer should have comment or be unexported (golint)
    • dbr-sync/config.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 17: warning: exported type RabbitmqConfig should have comment or be unexported (golint)
    • Line 23: warning: comment on exported type DbrSyncConfig should be of the form "DbrSyncConfig ..." (with optional leading article) (golint)
    • dbr-sync/consts.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported const ModeDetails should have comment (or a comment on this block) or be unexported (golint)
    • dbr-sync/dbr-sync.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 18: warning: exported type DbrSync should have comment or be unexported (golint)
    • dbr-sync/errors.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported var ErrorNotFound should have comment or be unexported (golint)
    • dbr-sync/messages.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 5: warning: exported type Operation should have comment or be unexported (golint)
    • Line 11: warning: exported type Details should have comment or be unexported (golint)
    • Line 17: warning: exported type OperationList 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!