Preparing report...

Report for github.com/wuhan005/Elaina

A+    Excellent!    Found 15 issues across 19 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!


golint21%

Golint is a linter for Go source code.

    • Elaina/internal/route/template/template.go
    • Line 14: warning: exported function ListTemplatesHandler should have comment or be unexported (golint)
    • Line 22: warning: exported function GetTemplateHandler should have comment or be unexported (golint)
    • Line 36: warning: exported function CreateTemplateHandler should have comment or be unexported (golint)
    • Line 77: warning: exported function UpdateTemplateHandler should have comment or be unexported (golint)
    • Line 128: warning: exported function DeleteTemplateHandler should have comment or be unexported (golint)
    • Elaina/internal/route/task/run.go
    • Line 15: warning: exported function SandboxMiddleware should have comment or be unexported (golint)
    • Line 28: warning: exported function EditorHandler should have comment or be unexported (golint)
    • Line 62: warning: exported function RunTaskHandler should have comment or be unexported (golint)
    • Elaina/internal/ratelimit/ratelimit.go
    • Line 8: warning: error var RateLimitError should have name of the form ErrFoo (golint)
    • Line 8: warning: exported var RateLimitError should have comment or be unexported (golint)
    • Line 27: warning: exported function Add should have comment or be unexported (golint)
    • Line 53: warning: exported function Get should have comment or be unexported (golint)
    • Line 67: warning: exported function Done should have comment or be unexported (golint)
    • Elaina/internal/db/sandboxes.go
    • Line 10: warning: exported type SandboxStore should have comment or be unexported (golint)
    • Line 25: warning: exported var Sandboxes should have comment or be unexported (golint)
    • Line 48: warning: exported type CreateSandboxOptions should have comment or be unexported (golint)
    • Line 65: warning: exported type UpdateSandboxOptions should have comment or be unexported (golint)
    • Elaina/internal/db/tpls.go
    • Line 11: warning: exported type TplStore should have comment or be unexported (golint)
    • Line 24: warning: exported var Tpls should have comment or be unexported (golint)
    • Line 43: warning: exported type CreateTplOptions should have comment or be unexported (golint)
    • Line 83: warning: exported type UpdateTplOptions should have comment or be unexported (golint)
    • Elaina/internal/auth/auth.go
    • Line 13: warning: exported function LoginMiddleware should have comment or be unexported (golint)
    • Line 31: warning: exported function LoginHandler should have comment or be unexported (golint)
    • Line 53: warning: exported function LogoutHandler should have comment or be unexported (golint)
    • Line 60: warning: exported function CheckStatusHandlers should have comment or be unexported (golint)
    • Elaina/internal/route/sandbox/sandbox.go
    • Line 14: warning: exported function ListSandboxesHandler should have comment or be unexported (golint)
    • Line 22: warning: exported function GetSandboxHandler should have comment or be unexported (golint)
    • Line 36: warning: exported function CreateSandboxHandler should have comment or be unexported (golint)
    • Line 76: warning: exported function UpdateSandboxHandler should have comment or be unexported (golint)
    • Line 127: warning: exported function DeleteSandboxHandler should have comment or be unexported (golint)
    • Elaina/internal/task/task.go
    • Line 28: warning: exported type Task should have comment or be unexported (golint)
    • Line 43: warning: exported type Output should have comment or be unexported (golint)
    • Line 48: warning: exported function NewTask should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!