Preparing report...

Report for github.com/gen2brain/url2img

A+    Excellent!    Found 5 issues across 6 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!


gocyclo83%

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.

    • url2img/url2img/params.go
    • Line 53: warning: cyclomatic complexity 27 of function (*Params).FormValues() is high (> 15) (gocyclo)
    • Line 165: warning: cyclomatic complexity 20 of function (*Params).BodyValues() is high (> 15) (gocyclo)

golint83%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • url2img/cmd/url2img/main.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/gen2brain/url2img/url2img (invalid package name: "") (ineffassign)
    • url2img/url2img/server.go
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: could not import github.com/abbot/go-http-auth (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/lox/httpcache (invalid package name: "") (ineffassign)
    • Line 22: warning: undeclared name: auth (ineffassign)
    • Line 221: warning: undeclared name: auth (ineffassign)
    • Line 70: warning: s.Loader.Load undefined (type *Loader has no field or method Load) (ineffassign)
    • Line 194: warning: undeclared name: auth (ineffassign)
    • Line 194: warning: undeclared name: auth (ineffassign)
    • Line 15: warning: "github.com/abbot/go-http-auth" imported but not used (ineffassign)
    • url2img/url2img/loader.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import github.com/therecipe/qt/core (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/therecipe/qt/gui (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/therecipe/qt/network (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/therecipe/qt/webkit (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/therecipe/qt/widgets (invalid package name: "") (ineffassign)
    • Line 50: warning: undeclared name: NewObject (ineffassign)
    • Line 52: warning: l.ConnectLoad undefined (type *Loader has no field or method ConnectLoad) (ineffassign)
    • Line 60: warning: l.ConnectLoadFinished undefined (type *Loader has no field or method ConnectLoadFinished) (ineffassign)
    • Line 69: warning: l.QWidget_PTR undefined (type *Loader has no field or method QWidget_PTR) (ineffassign)
    • Line 130: warning: l.LoadFinished undefined (type *Loader has no field or method LoadFinished) (ineffassign)
    • Line 138: warning: l.LoadFinished undefined (type *Loader has no field or method LoadFinished) (ineffassign)
    • Line 153: warning: l.LoadFinished undefined (type *Loader has no field or method LoadFinished) (ineffassign)
    • Line 164: warning: l.LoadFinished undefined (type *Loader has no field or method LoadFinished) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!