Preparing report...

Report for github.com/Pixelgaffer/dicod

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


golint55%

Golint is a linter for Go source code.

    • dicod/log_formatter.go
    • Line 29: warning: exported type TextFormatter should have comment or be unexported (golint)
    • Line 31: warning: exported method TextFormatter.Format should have comment or be unexported (golint)
    • dicod/stats.go
    • Line 13: warning: exported type AccumulatedStats should have comment or be unexported (golint)
    • Line 21: warning: exported method AccumulatedStats.Reset should have comment or be unexported (golint)
    • Line 30: warning: exported method AccumulatedStats.With should have comment or be unexported (golint)
    • Line 36: warning: exported type Stats should have comment or be unexported (golint)
    • Line 65: warning: exported method Stats.Pulse should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign44%

IneffAssign detects ineffectual assignments in Go code.

    • dicod/taskGen.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/Mrmaxmeier/strgen (invalid package name: "") (ineffassign)
    • dicod/connection.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/Pixelgaffer/dico-proto (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/Sirupsen/logrus (invalid package name: "") (ineffassign)
    • dicod/main.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/bobziuchkovski/writ (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/evalphobia/logrus_sentry (invalid package name: "") (ineffassign)
    • dicod/stats.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/influxdata/influxdb/client/v2 (invalid package name: "") (ineffassign)
    • dicod/log_formatter.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/mgutz/ansi (invalid package name: "") (ineffassign)

misspell88%

Misspell Finds commonly misspelled English words