Preparing report...

Report for github.com/gogap/go-pandoc

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


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.


golint33%

Golint is a linter for Go source code.

    • go-pandoc/pandoc/pandoc.go
    • Line 19: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 20: warning: exported type Variable should have comment or be unexported (golint)
    • Line 21: warning: exported type RequestHeader should have comment or be unexported (golint)
    • Line 23: warning: exported type ConvertOptions should have comment or be unexported (golint)
    • Line 575: warning: exported type FetcherOptions should have comment or be unexported (golint)
    • Line 580: warning: exported type Pandoc should have comment or be unexported (golint)
    • Line 595: warning: exported function New should have comment or be unexported (golint)
    • Line 667: warning: exported method Pandoc.Convert should have comment or be unexported (golint)
    • go-pandoc/pandoc/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-pandoc/pandoc/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-pandoc/pandoc/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)
    • go-pandoc/server/server.go
    • Line 37: warning: exported type ConvertData should have comment or be unexported (golint)
    • Line 41: warning: exported type ConvertArgs should have comment or be unexported (golint)
    • Line 47: warning: exported type TemplateArgs should have comment or be unexported (golint)
    • Line 54: warning: exported type ConvertResponse should have comment or be unexported (golint)
    • Line 114: warning: exported type PandocServer should have comment or be unexported (golint)
    • Line 119: warning: exported function New should have comment or be unexported (golint)
    • Line 233: warning: exported method PandocServer.Run should have comment or be unexported (golint)
    • Line 366: warning: exported type RespHelper should have comment or be unexported (golint)
    • Line 378: warning: exported method RespHelper.SetHeader should have comment or be unexported (golint)
    • Line 387: warning: exported method RespHelper.Hold should have comment or be unexported (golint)
    • Line 394: warning: exported method RespHelper.Holding should have comment or be unexported (golint)
    • Line 403: warning: exported method RespHelper.WriteHeader should have comment or be unexported (golint)
    • go-pandoc/pandoc/file.go
    • Line 19: warning: exported type File should have comment or be unexported (golint)
    • Line 32: warning: exported method File.Path should have comment or be unexported (golint)
    • Line 206: warning: exported method File.Cleanup should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign22%

IneffAssign detects ineffectual assignments in Go code.

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

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!