Preparing report...

Report for github.com/Supme/directEmail

B    Not bad!    Found 9 issues across 9 files

Tweet

gofmt77%

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!


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.


golint11%

Golint is a linter for Go source code.

    • directEmail/dkim.go
    • Line 1: warning: don't use MixedCaps in package name; directEmail should be directemail (golint)
    • Line 7: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • directEmail/helpers.go
    • Line 1: warning: don't use MixedCaps in package name; directEmail should be directemail (golint)
    • Line 14: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 47: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 51: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • directEmail/message.go
    • Line 1: warning: don't use MixedCaps in package name; directEmail should be directemail (golint)
    • Line 15: warning: comment on exported method Email.SetRawMessageBytes should be of the form "SetRawMessageBytes ..." (golint)
    • Line 22: warning: comment on exported method Email.SetRawMessageString should be of the form "SetRawMessageString ..." (golint)
    • Line 29: warning: comment on exported method Email.GetRawMessageBytes should be of the form "GetRawMessageBytes ..." (golint)
    • Line 34: warning: comment on exported method Email.GetRawMessageString should be of the form "GetRawMessageString ..." (golint)
    • Line 166: warning: comment on exported method Email.RenderWithDkim should be of the form "RenderWithDkim ..." (golint)
    • directEmail/network.go
    • Line 1: warning: don't use MixedCaps in package name; directEmail should be directemail (golint)
    • Line 37: warning: comment on exported method Email.SetInterfaceSocks should be of the form "SetInterfaceSocks ..." (golint)
    • directEmail/send.go
    • Line 2: warning: don't use MixedCaps in package name; directEmail should be directemail (golint)
    • Line 58: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 92: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 115: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 123: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 172: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 183: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign55%

IneffAssign detects ineffectual assignments in Go code.

    • directEmail/helpers.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import golang.org/x/net/idna (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import golang.org/x/net/idna (invalid package name: "") (ineffassign)
    • directEmail/connect.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import golang.org/x/net/proxy (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import golang.org/x/net/proxy (invalid package name: "") (ineffassign)
    • directEmail/dkim.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/toorop/go-dkim (invalid package name: "") (ineffassign)
    • Line 4: warning: could not import github.com/toorop/go-dkim (invalid package name: "") (ineffassign)

misspell88%

Misspell Finds commonly misspelled English words