Preparing report...

Report for github.com/ancene/go-rest-echo

A+    Excellent!    Found 24 issues across 43 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!


golint46%

Golint is a linter for Go source code.

    • go-rest-echo/internal/infrastructure/serialization/json.go
    • Line 3: warning: exported type Error should have comment or be unexported (golint)
    • Line 8: warning: exported type Response should have comment or be unexported (golint)
    • Line 15: warning: exported function OK should have comment or be unexported (golint)
    • Line 24: warning: exported function BadRequest should have comment or be unexported (golint)
    • Line 36: warning: exported function Unauthorized should have comment or be unexported (golint)
    • Line 48: warning: exported function Forbidden should have comment or be unexported (golint)
    • Line 60: warning: exported function NotFound should have comment or be unexported (golint)
    • Line 72: warning: exported function MethodNotAllowed should have comment or be unexported (golint)
    • Line 84: warning: exported function RequestTimeout should have comment or be unexported (golint)
    • Line 96: warning: exported function PayloadTooLarge should have comment or be unexported (golint)
    • Line 108: warning: exported function UnprocessableEntity should have comment or be unexported (golint)
    • Line 120: warning: exported function TooManyRequests should have comment or be unexported (golint)
    • Line 132: warning: exported function InternalServerError should have comment or be unexported (golint)
    • Line 144: warning: exported function ServiceUnavailable should have comment or be unexported (golint)
    • go-rest-echo/internal/infrastructure/handler/root.go
    • Line 9: warning: exported type RootHanlder should have comment or be unexported (golint)
    • Line 13: warning: exported function NewRootHandler should have comment or be unexported (golint)
    • Line 19: warning: exported method RootHanlder.Home should have comment or be unexported (golint)
    • Line 23: warning: exported method RootHanlder.Health should have comment or be unexported (golint)
    • go-rest-echo/internal/domain/todo.go
    • Line 5: warning: exported type TodoCreateDTO should have comment or be unexported (golint)
    • Line 10: warning: exported type TodoUpdateDTO should have comment or be unexported (golint)
    • Line 16: warning: exported type Todo should have comment or be unexported (golint)
    • Line 23: warning: exported type Todos should have comment or be unexported (golint)
    • Line 25: warning: exported function NewTodo should have comment or be unexported (golint)
    • Line 34: warning: exported function NewTodos should have comment or be unexported (golint)
    • Line 42: warning: exported method Todo.TableName 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!


misspell97%

Misspell Finds commonly misspelled English words