Preparing report...

Report for github.com/LogPulse/Pulse

A+    Excellent!    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!


gocyclo77%

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.

    • Pulse/pulse/pulse.go
    • Line 248: warning: cyclomatic complexity 34 of function matchPattern() is high (> 15) (gocyclo)
    • Line 381: warning: cyclomatic complexity 19 of function findPattern() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign33%

IneffAssign detects ineffectual assignments in Go code.

    • Pulse/LogPulse/file/file_test.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/gophergala2016/Pulse/LogPulse/file (invalid package name: "") (ineffassign)
    • Line 16: warning: undeclared name: Read (ineffassign)
    • Line 40: warning: undeclared name: UnGZip (ineffassign)
    • Line 58: warning: undeclared name: Write (ineffassign)
    • Line 63: warning: undeclared name: Write (ineffassign)
    • Line 8: warning: "github.com/gophergala2016/Pulse/LogPulse/file" imported but not used (ineffassign)
    • Pulse/LogPulse/email/email.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import github.com/gophergala2016/Pulse/LogPulse/config (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/gophergala2016/Pulse/LogPulse/file (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/mailgun/mailgun-go (invalid package name: "") (ineffassign)
    • Line 123: warning: undeclared name: mailgun (ineffassign)
    • Line 131: warning: undeclared name: mailgun (ineffassign)
    • Line 135: warning: undeclared name: mailgun (ineffassign)
    • Line 15: warning: "github.com/mailgun/mailgun-go" imported but not used (ineffassign)
    • Pulse/LogPulse/api/api.go
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 21: warning: cannot find package "." in: (ineffassign)
    • Line 22: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: could not import github.com/davecgh/go-spew/spew (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import github.com/gophergala2016/Pulse/LogPulse/config (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/gophergala2016/Pulse/LogPulse/email (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/gophergala2016/Pulse/LogPulse/file (invalid package name: "") (ineffassign)
    • Line 22: warning: could not import github.com/gophergala2016/Pulse/pulse (invalid package name: "") (ineffassign)
    • Pulse/LogPulse/config/config.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/mitchellh/go-homedir (invalid package name: "") (ineffassign)
    • Line 86: warning: undeclared name: homedir (ineffassign)
    • Line 9: warning: "github.com/mitchellh/go-homedir" imported but not used (ineffassign)
    • Pulse/LogPulse/config/config_test.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/gophergala2016/Pulse/LogPulse/config (invalid package name: "") (ineffassign)
    • Line 10: warning: undeclared name: Configuration (ineffassign)
    • Line 21: warning: undeclared name: Load (ineffassign)
    • Line 56: warning: undeclared name: SMTPConfig (ineffassign)
    • Line 61: warning: undeclared name: LoadSMTP (ineffassign)
    • Line 80: warning: undeclared name: SecretConfig (ineffassign)
    • Line 85: warning: undeclared name: LoadSecret (ineffassign)
    • Line 6: warning: "github.com/gophergala2016/Pulse/LogPulse/config" imported but not used (ineffassign)
    • Pulse/LogPulse/main.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/gophergala2016/Pulse/LogPulse/api (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/gophergala2016/Pulse/LogPulse/config (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/gophergala2016/Pulse/LogPulse/email (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/gophergala2016/Pulse/LogPulse/file (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/gophergala2016/Pulse/pulse (invalid package name: "") (ineffassign)

misspell77%

Misspell Finds commonly misspelled English words