Preparing report...

Report for github.com/kcarretto/paragon

A+    Excellent!    Found 29 issues across 129 files

Tweet

gofmt94%

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!


gocyclo96%

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.


golint88%

Golint is a linter for Go source code.

    • paragon/pkg/worker/ssh.go
    • Line 18: warning: exported method SSHConnector.Connect should have comment or be unexported (golint)
    • Line 48: warning: exported method SSHConnector.Close should have comment or be unexported (golint)
    • paragon/pkg/service/service.go
    • Line 11: warning: exported type Authenticator should have comment or be unexported (golint)
    • Line 15: warning: exported type Authorizer should have comment or be unexported (golint)
    • Line 19: warning: exported type ErrorPresenter should have comment or be unexported (golint)
    • Line 23: warning: exported type Handler should have comment or be unexported (golint)
    • Line 27: warning: exported function HTTPHandler should have comment or be unexported (golint)
    • Line 34: warning: exported type HandlerFn should have comment or be unexported (golint)
    • Line 36: warning: exported method HandlerFn.Handle should have comment or be unexported (golint)
    • Line 40: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 87: warning: exported method Endpoint.PresentError should have comment or be unexported (golint)
    • Line 97: warning: exported method Endpoint.Authenticate should have comment or be unexported (golint)
    • Line 105: warning: exported method Endpoint.Authorize should have comment or be unexported (golint)
    • paragon/pkg/auth/authenticate.go
    • Line 18: warning: exported const SessionTokenLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported type MultiAuthenticator should have comment or be unexported (golint)
    • Line 56: warning: exported method MultiAuthenticator.Authenticate should have comment or be unexported (golint)
    • paragon/www/sphinx/gen_pydoc.go
    • Line 14: warning: exported type ParamSpec should have comment or be unexported (golint)
    • Line 19: warning: exported type FunctionSpec should have comment or be unexported (golint)
    • Line 26: warning: exported type LibrarySpec should have comment or be unexported (golint)
    • Line 30: warning: exported type Spec should have comment or be unexported (golint)
    • Line 34: warning: exported const SpecPath should have comment or be unexported (golint)
    • Line 35: warning: exported const SphinxDir should have comment or be unexported (golint)
    • Line 36: warning: exported const RSTDir should have comment or be unexported (golint)
    • Line 37: warning: exported const PublicDir should have comment or be unexported (golint)
    • paragon/pkg/auth/http.go
    • Line 4: warning: exported const SessionCookieName should have comment (or a comment on this block) or be unexported (golint)
    • paragon/pkg/worker/worker.go
    • Line 29: warning: exported const ServiceTag should have comment or be unexported (golint)
    • Line 31: warning: exported type Worker should have comment or be unexported (golint)
    • Line 38: warning: exported method Worker.HandleTaskQueued should have comment or be unexported (golint)
    • Line 78: warning: exported method Worker.ExecTargetTask should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words