Preparing report...

Report for github.com/gogap/go-wkhtmltox

A    Great!    Found 6 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!


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!


golint44%

Golint is a linter for Go source code.

    • go-wkhtmltox/server/server.go
    • Line 38: warning: exported type ConvertData should have comment or be unexported (golint)
    • Line 42: warning: exported type ConvertArgs should have comment or be unexported (golint)
    • Line 49: warning: exported type TemplateArgs should have comment or be unexported (golint)
    • Line 55: warning: exported type ConvertResponse should have comment or be unexported (golint)
    • Line 115: warning: exported type WKHtmlToXServer should have comment or be unexported (golint)
    • Line 120: warning: exported function New should have comment or be unexported (golint)
    • Line 234: warning: exported method WKHtmlToXServer.Run should have comment or be unexported (golint)
    • Line 378: warning: exported type RespHelper should have comment or be unexported (golint)
    • Line 390: warning: exported method RespHelper.SetHeader should have comment or be unexported (golint)
    • Line 399: warning: exported method RespHelper.Hold should have comment or be unexported (golint)
    • Line 406: warning: exported method RespHelper.Holding should have comment or be unexported (golint)
    • Line 415: warning: exported method RespHelper.WriteHeader should have comment or be unexported (golint)
    • go-wkhtmltox/wkhtmltox/wkhtmltox.go
    • Line 19: warning: exported type ToFormat should have comment or be unexported (golint)
    • Line 21: warning: exported type Orientation should have comment or be unexported (golint)
    • Line 24: warning: exported const Landscape should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type CropOptions should have comment or be unexported (golint)
    • Line 35: warning: exported type ExtendParams should have comment or be unexported (golint)
    • Line 65: warning: exported type ConvertOptions should have comment or be unexported (golint)
    • Line 71: warning: exported type ToImageOptions should have comment or be unexported (golint)
    • Line 133: warning: exported type ToPDFOptions should have comment or be unexported (golint)
    • Line 189: warning: exported type FetcherOptions should have comment or be unexported (golint)
    • Line 194: warning: exported type WKHtmlToX should have comment or be unexported (golint)
    • Line 200: warning: exported function New should have comment or be unexported (golint)
    • Line 262: warning: exported method WKHtmlToX.Convert should have comment or be unexported (golint)
    • go-wkhtmltox/wkhtmltox/fetcher/data/data.go
    • Line 10: warning: exported type DataFetcher should have comment or be unexported (golint)
    • Line 13: warning: exported type Params should have comment or be unexported (golint)
    • Line 17: warning: exported method Params.Validation should have comment or be unexported (golint)
    • Line 34: warning: exported function NewDataFetcher should have comment or be unexported (golint)
    • Line 39: warning: exported method DataFetcher.Fetch should have comment or be unexported (golint)
    • go-wkhtmltox/wkhtmltox/fetcher/fetcher.go
    • Line 10: warning: exported type Fetcher should have comment or be unexported (golint)
    • Line 14: warning: exported type FetchParams should have comment or be unexported (golint)
    • Line 16: warning: exported method FetchParams.Unmarshal should have comment or be unexported (golint)
    • Line 31: warning: exported type NewFetcherFunc should have comment or be unexported (golint)
    • Line 37: warning: exported function New should have comment or be unexported (golint)
    • Line 47: warning: exported function RegisterFetcher should have comment or be unexported (golint)
    • go-wkhtmltox/wkhtmltox/fetcher/http/http.go
    • Line 14: warning: exported type HttpFetcher should have comment or be unexported (golint)
    • Line 18: warning: exported type Params should have comment or be unexported (golint)
    • Line 26: warning: exported method Params.Validation should have comment or be unexported (golint)
    • Line 54: warning: exported function NewHttpFetcher should have comment or be unexported (golint)
    • Line 62: warning: exported method HttpFetcher.Fetch should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign33%

IneffAssign detects ineffectual assignments in Go code.

    • go-wkhtmltox/main.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/gogap/config (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/gogap/go-wkhtmltox/server (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/urfave/cli (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/gogap/go-wkhtmltox/wkhtmltox/fetcher/data (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/gogap/go-wkhtmltox/wkhtmltox/fetcher/http (invalid package name: "") (ineffassign)
    • go-wkhtmltox/wkhtmltox/wkhtmltox.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import github.com/gogap/config (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/pborman/uuid (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/gogap/go-wkhtmltox/wkhtmltox/fetcher (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/gogap/config (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/pborman/uuid (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/gogap/go-wkhtmltox/wkhtmltox/fetcher (invalid package name: "") (ineffassign)
    • go-wkhtmltox/server/server.go
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • 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 23: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: could not import github.com/TV4/graceful (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/gogap/config (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/gogap/go-wkhtmltox/wkhtmltox (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import github.com/gorilla/mux (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/phyber/negroni-gzip/gzip (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/rs/cors (invalid package name: "") (ineffassign)
    • Line 22: warning: could not import github.com/spf13/cast (invalid package name: "") (ineffassign)
    • Line 23: warning: could not import github.com/urfave/negroni (invalid package name: "") (ineffassign)
    • go-wkhtmltox/wkhtmltox/fetcher/http/http.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/gogap/config (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/gogap/go-wkhtmltox/wkhtmltox/fetcher (invalid package name: "") (ineffassign)
    • go-wkhtmltox/wkhtmltox/fetcher/data/data.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/gogap/config (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/gogap/go-wkhtmltox/wkhtmltox/fetcher (invalid package name: "") (ineffassign)

misspell88%

Misspell Finds commonly misspelled English words