Preparing report...

Report for github.com/gochore/emailt

A+    Excellent!    Found 10 issues across 17 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!


gocyclo94%

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.

    • emailt/table.go
    • Line 43: warning: cyclomatic complexity 20 of function (*Table).Render() is high (> 15) (gocyclo)

golint41%

Golint is a linter for Go source code.

    • emailt/style/attribute.go
    • Line 10: warning: exported type Attributes should have comment or be unexported (golint)
    • Line 20: warning: exported method Attributes.Merge should have comment or be unexported (golint)
    • emailt/style/theme.go
    • Line 3: warning: exported type Theme should have comment or be unexported (golint)
    • Line 8: warning: exported type MapTheme should have comment or be unexported (golint)
    • Line 10: warning: exported method MapTheme.Attributes should have comment or be unexported (golint)
    • Line 17: warning: exported method MapTheme.Exists should have comment or be unexported (golint)
    • Line 25: warning: exported type Attribute should have comment or be unexported (golint)
    • emailt/table.go
    • Line 14: warning: exported type Column should have comment or be unexported (golint)
    • Line 19: warning: exported type Columns should have comment or be unexported (golint)
    • Line 21: warning: exported type Table should have comment or be unexported (golint)
    • Line 27: warning: exported function NewTable should have comment or be unexported (golint)
    • Line 31: warning: exported method Table.SetDataset should have comment or be unexported (golint)
    • Line 35: warning: exported method Table.SetColumns should have comment or be unexported (golint)
    • Line 39: warning: exported method Table.SetFuncs should have comment or be unexported (golint)
    • Line 43: warning: exported method Table.Render should have comment or be unexported (golint)
    • emailt/theme.go
    • Line 6: warning: exported var DefaultTheme should have comment or be unexported (golint)
    • emailt/internal/rend/chain_theme.go
    • Line 5: warning: exported type ChainTheme should have comment or be unexported (golint)
    • Line 10: warning: exported method ChainTheme.Attributes should have comment or be unexported (golint)
    • Line 20: warning: exported method ChainTheme.Exists should have comment or be unexported (golint)
    • emailt/htmlt/html.go
    • Line 14: warning: exported type Html should have comment or be unexported (golint)
    • Line 106: warning: comment on exported function ImgEmbedded should be of the form "ImgEmbedded ..." (golint)
    • emailt/element.go
    • Line 13: warning: exported type Element should have comment or be unexported (golint)
    • Line 17: warning: exported type Template should have comment or be unexported (golint)
    • Line 23: warning: exported method Template.Render should have comment or be unexported (golint)
    • emailt/email.go
    • Line 11: warning: exported type Email should have comment or be unexported (golint)
    • Line 16: warning: exported type Option should have comment or be unexported (golint)
    • Line 18: warning: exported function WithTheme should have comment or be unexported (golint)
    • Line 24: warning: exported function NewEmail should have comment or be unexported (golint)
    • Line 34: warning: exported method Email.Add should have comment or be unexported (golint)
    • Line 39: warning: exported method Email.Render should have comment or be unexported (golint)
    • emailt/list.go
    • Line 11: warning: exported type List should have comment or be unexported (golint)
    • Line 16: warning: exported function NewUnordered should have comment or be unexported (golint)
    • Line 20: warning: exported function NewOrdered should have comment or be unexported (golint)
    • Line 26: warning: exported method List.Ordered should have comment or be unexported (golint)
    • Line 30: warning: exported method List.Add should have comment or be unexported (golint)
    • Line 34: warning: exported method List.Render should have comment or be unexported (golint)
    • emailt/internal/rend/rend.go
    • Line 13: warning: exported type FmtWriter should have comment or be unexported (golint)
    • Line 18: warning: exported function NewFmtWriter should have comment or be unexported (golint)
    • Line 34: warning: exported method FmtWriter.Err should have comment or be unexported (golint)
    • Line 38: warning: exported method FmtWriter.Print should have comment or be unexported (golint)
    • Line 45: warning: exported method FmtWriter.Println should have comment or be unexported (golint)
    • Line 52: warning: exported method FmtWriter.Printlnf should have comment or be unexported (golint)
    • Line 56: warning: exported method FmtWriter.Printf should have comment or be unexported (golint)
    • Line 63: warning: exported function WriteTheme should have comment or be unexported (golint)
    • Line 74: warning: exported function MergeThemes should have comment or be unexported (golint)
    • Line 85: warning: exported function RenderTheme 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!