Preparing report...

Report for github.com/ahmdrz/rp

A    Great!    Found 5 issues across 6 files

Tweet

gofmt83%

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!


golint66%

Golint is a linter for Go source code.

    • rp/cli/cli.go
    • Line 9: warning: exported type Application should have comment or be unexported (golint)
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 54: warning: exported method Application.Run should have comment or be unexported (golint)
    • rp/reverse-proxy/reverse-proxy.go
    • Line 44: warning: exported type ReverseProxy should have comment or be unexported (golint)
    • Line 49: warning: exported function New should have comment or be unexported (golint)
    • Line 55: warning: exported method ReverseProxy.ChangeDNS should have comment or be unexported (golint)
    • Line 83: warning: exported method ReverseProxy.Log should have comment or be unexported (golint)
    • Line 87: warning: exported method ReverseProxy.Add should have comment or be unexported (golint)
    • Line 141: warning: exported method ReverseProxy.ListenAndServe 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.

    • rp/cli/serve.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/ahmdrz/rp/reverse-proxy (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import gopkg.in/yaml.v2 (invalid package name: "") (ineffassign)
    • Line 27: warning: undeclared name: yaml (ineffassign)
    • Line 40: warning: undeclared name: yaml (ineffassign)
    • Line 12: warning: "gopkg.in/yaml.v2" imported but not used (ineffassign)
    • rp/cli/cli.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/urfave/cli (invalid package name: "") (ineffassign)
    • Line 17: warning: app.Name undefined (type *Application has no field or method Name) (ineffassign)
    • Line 18: warning: app.Version undefined (type *Application has no field or method Version) (ineffassign)
    • Line 19: warning: app.Usage undefined (type *Application has no field or method Usage) (ineffassign)
    • Line 20: warning: app.Author undefined (type *Application has no field or method Author) (ineffassign)
    • Line 22: warning: app.Flags undefined (type *Application has no field or method Flags) (ineffassign)
    • Line 36: warning: app.Commands undefined (type *Application has no field or method Commands) (ineffassign)
    • rp/main.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/ahmdrz/rp/cli (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!