Preparing report...

Report for github.com/cloudson/pizzeria

A    Great!    Found 8 issues across 11 files

Tweet

gofmt90%

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!


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!


golint36%

Golint is a linter for Go source code.

    • pizzeria/graph/bar.go
    • Line 10: warning: exported type BarService should have comment or be unexported (golint)
    • Line 13: warning: exported type Bar should have comment or be unexported (golint)
    • Line 20: warning: exported method Bar.Height should have comment or be unexported (golint)
    • Line 24: warning: exported method Bar.Width should have comment or be unexported (golint)
    • Line 28: warning: exported method Bar.Values should have comment or be unexported (golint)
    • Line 32: warning: exported function NewBarGraph should have comment or be unexported (golint)
    • Line 49: warning: exported method BarService.Build should have comment or be unexported (golint)
    • pizzeria/graph/line.go
    • Line 10: warning: exported type LineService should have comment or be unexported (golint)
    • Line 13: warning: exported type Line should have comment or be unexported (golint)
    • Line 19: warning: exported method Line.Height should have comment or be unexported (golint)
    • Line 23: warning: exported method Line.Width should have comment or be unexported (golint)
    • Line 27: warning: exported method Line.Values should have comment or be unexported (golint)
    • Line 31: warning: exported function NewLineGraph should have comment or be unexported (golint)
    • Line 58: warning: exported method LineService.Build should have comment or be unexported (golint)
    • pizzeria/graph/pie.go
    • Line 10: warning: exported type PieService should have comment or be unexported (golint)
    • Line 13: warning: exported type Pie should have comment or be unexported (golint)
    • Line 20: warning: exported method Pie.Height should have comment or be unexported (golint)
    • Line 24: warning: exported method Pie.Width should have comment or be unexported (golint)
    • Line 28: warning: exported method Pie.Values should have comment or be unexported (golint)
    • Line 32: warning: exported function NewPieGraph should have comment or be unexported (golint)
    • Line 49: warning: exported method PieService.Build should have comment or be unexported (golint)
    • pizzeria/graph/timeseries.go
    • Line 10: warning: don't use underscores in Go names; const Time_YMDHIS should be TimeYMDHIS (golint)
    • Line 10: warning: exported const Time_YMDHIS should have comment or be unexported (golint)
    • Line 12: warning: exported type TimeSeriesService should have comment or be unexported (golint)
    • Line 15: warning: exported type TimeSeries should have comment or be unexported (golint)
    • Line 21: warning: exported method TimeSeries.Height should have comment or be unexported (golint)
    • Line 25: warning: exported method TimeSeries.Width should have comment or be unexported (golint)
    • Line 29: warning: exported method TimeSeries.Values should have comment or be unexported (golint)
    • Line 33: warning: exported function NewTimeSeriesGraph should have comment or be unexported (golint)
    • Line 50: warning: exported method TimeSeriesService.Build should have comment or be unexported (golint)
    • pizzeria/cache.go
    • Line 16: warning: exported type CacheWriter should have comment or be unexported (golint)
    • Line 34: warning: exported function DecorateCacheWritter should have comment or be unexported (golint)
    • Line 63: warning: exported function WriteFromCache should have comment or be unexported (golint)
    • pizzeria/graph.go
    • Line 9: warning: exported type Graph should have comment or be unexported (golint)
    • Line 15: warning: exported type GraphService should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign45%

IneffAssign detects ineffectual assignments in Go code.

    • pizzeria/graph/timeseries.go
    • Line 59: warning: undeclared name: chart (ineffassign)
    • Line 62: warning: undeclared name: chart (ineffassign)
    • Line 63: warning: undeclared name: chart (ineffassign)
    • Line 67: warning: undeclared name: chart (ineffassign)
    • Line 68: warning: undeclared name: chart (ineffassign)
    • Line 72: warning: undeclared name: chart (ineffassign)
    • Line 73: warning: undeclared name: chart (ineffassign)
    • Line 80: warning: undeclared name: chart (ineffassign)
    • Line 7: warning: "github.com/wcharczuk/go-chart" imported but not used (ineffassign)
    • Line 59: warning: undeclared name: chart (ineffassign)
    • Line 62: warning: undeclared name: chart (ineffassign)
    • Line 63: warning: undeclared name: chart (ineffassign)
    • Line 67: warning: undeclared name: chart (ineffassign)
    • Line 68: warning: undeclared name: chart (ineffassign)
    • Line 72: warning: undeclared name: chart (ineffassign)
    • Line 73: warning: undeclared name: chart (ineffassign)
    • Line 80: warning: undeclared name: chart (ineffassign)
    • Line 7: warning: "github.com/wcharczuk/go-chart" imported but not used (ineffassign)
    • pizzeria/graph.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/cloudson/pizzeria/graph (invalid package name: "") (ineffassign)
    • pizzeria/cache.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/spf13/viper (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import gopkg.in/redis.v4 (invalid package name: "") (ineffassign)
    • Line 19: warning: undeclared name: redis (ineffassign)
    • Line 43: warning: undeclared name: redis (ineffassign)
    • Line 43: warning: undeclared name: redis (ineffassign)
    • Line 10: warning: "gopkg.in/redis.v4" imported but not used (ineffassign)
    • pizzeria/graph/bar.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/wcharczuk/go-chart (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/wcharczuk/go-chart/drawing (invalid package name: "") (ineffassign)
    • Line 51: warning: undeclared name: chart (ineffassign)
    • Line 53: warning: undeclared name: chart (ineffassign)
    • Line 59: warning: undeclared name: chart (ineffassign)
    • Line 66: warning: undeclared name: chart (ineffassign)
    • Line 69: warning: undeclared name: chart (ineffassign)
    • Line 72: warning: undeclared name: chart (ineffassign)
    • Line 73: warning: undeclared name: chart (ineffassign)
    • Line 80: warning: undeclared name: chart (ineffassign)
    • Line 6: warning: "github.com/wcharczuk/go-chart" imported but not used (ineffassign)
    • Line 6: warning: could not import github.com/wcharczuk/go-chart (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/wcharczuk/go-chart/drawing (invalid package name: "") (ineffassign)
    • Line 51: warning: undeclared name: chart (ineffassign)
    • Line 53: warning: undeclared name: chart (ineffassign)
    • Line 59: warning: undeclared name: chart (ineffassign)
    • Line 66: warning: undeclared name: chart (ineffassign)
    • Line 69: warning: undeclared name: chart (ineffassign)
    • Line 72: warning: undeclared name: chart (ineffassign)
    • Line 73: warning: undeclared name: chart (ineffassign)
    • Line 80: warning: undeclared name: chart (ineffassign)
    • Line 6: warning: "github.com/wcharczuk/go-chart" imported but not used (ineffassign)
    • pizzeria/graph/line.go
    • Line 61: warning: undeclared name: chart (ineffassign)
    • Line 66: warning: undeclared name: chart (ineffassign)
    • Line 71: warning: undeclared name: chart (ineffassign)
    • Line 74: warning: undeclared name: chart (ineffassign)
    • Line 75: warning: undeclared name: chart (ineffassign)
    • Line 79: warning: undeclared name: chart (ineffassign)
    • Line 80: warning: undeclared name: chart (ineffassign)
    • Line 85: warning: undeclared name: chart (ineffassign)
    • Line 86: warning: undeclared name: chart (ineffassign)
    • Line 93: warning: undeclared name: chart (ineffassign)
    • Line 7: warning: "github.com/wcharczuk/go-chart" imported but not used (ineffassign)
    • Line 61: warning: undeclared name: chart (ineffassign)
    • Line 66: warning: undeclared name: chart (ineffassign)
    • Line 71: warning: undeclared name: chart (ineffassign)
    • Line 74: warning: undeclared name: chart (ineffassign)
    • Line 75: warning: undeclared name: chart (ineffassign)
    • Line 79: warning: undeclared name: chart (ineffassign)
    • Line 80: warning: undeclared name: chart (ineffassign)
    • Line 85: warning: undeclared name: chart (ineffassign)
    • Line 86: warning: undeclared name: chart (ineffassign)
    • Line 93: warning: undeclared name: chart (ineffassign)
    • Line 7: warning: "github.com/wcharczuk/go-chart" imported but not used (ineffassign)
    • pizzeria/graph/pie.go
    • Line 51: warning: undeclared name: chart (ineffassign)
    • Line 53: warning: undeclared name: chart (ineffassign)
    • Line 59: warning: undeclared name: chart (ineffassign)
    • Line 65: warning: undeclared name: chart (ineffassign)
    • Line 71: warning: undeclared name: chart (ineffassign)
    • Line 6: warning: "github.com/wcharczuk/go-chart" imported but not used (ineffassign)
    • Line 51: warning: undeclared name: chart (ineffassign)
    • Line 53: warning: undeclared name: chart (ineffassign)
    • Line 59: warning: undeclared name: chart (ineffassign)
    • Line 65: warning: undeclared name: chart (ineffassign)
    • Line 71: warning: undeclared name: chart (ineffassign)
    • Line 6: warning: "github.com/wcharczuk/go-chart" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!