Preparing report...

Report for github.com/jezerdave/go-covid19

A+    Excellent!    Found 7 issues across 18 files

Tweet

gofmt88%

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!


gocyclo88%

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.


golint77%

Golint is a linter for Go source code.

    • go-covid19/src/storage/kv.go
    • Line 71: warning: comment on exported type Storage should be of the form "Storage ..." (with optional leading article) (golint)
    • Line 79: warning: comment on exported function NewStorage should be of the form "NewStorage ..." (golint)
    • go-covid19/src/http/rest/handler.go
    • Line 15: warning: comment on exported type Handler should be of the form "Handler ..." (with optional leading article) (golint)
    • Line 200: warning: comment on exported method Handler.GetHistories should be of the form "GetHistories ..." (golint)
    • Line 226: warning: comment on exported method Handler.FindCountryHistories should be of the form "FindCountryHistories ..." (golint)
    • go-covid19/covid/util/date.go
    • Line 9: warning: exported const YEARFORMAT should have comment or be unexported (golint)
    • Line 10: warning: exported const DATEFORMAT should have comment or be unexported (golint)
    • Line 11: warning: exported const TIMEFORMAT should have comment or be unexported (golint)
    • Line 12: warning: exported const TIMEFORMAT2 should have comment or be unexported (golint)
    • Line 13: warning: exported const DATETIMEFORMAT should have comment or be unexported (golint)
    • Line 14: warning: exported const DATETIMEFORMA2 should have comment or be unexported (golint)
    • Line 16: warning: exported type JSONDateTime should have comment or be unexported (golint)
    • Line 20: warning: exported method JSONDateTime.MarshalJSON should have comment or be unexported (golint)
    • Line 25: warning: exported method JSONDateTime.UnmarshalJSON should have comment or be unexported (golint)
    • Line 44: warning: exported type JSONDate should have comment or be unexported (golint)
    • Line 48: warning: exported method JSONDate.MarshalJSON should have comment or be unexported (golint)
    • Line 53: warning: exported method JSONDate.UnmarshalJSON should have comment or be unexported (golint)
    • Line 66: warning: exported type JSONTime should have comment or be unexported (golint)
    • Line 70: warning: exported method JSONTime.MarshalJSON should have comment or be unexported (golint)
    • Line 75: warning: exported method JSONTime.UnmarshalJSON should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.

    • go-covid19/main.go
    • Line 9: warning: no required module provides package github.com/jezerdave/go-covid19/docs; to add it: (ineffassign)
    • Line 9: warning: could not import github.com/jezerdave/go-covid19/docs (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!