Preparing report...

Report for github.com/zitryss/go-sample

A+    Excellent!    Found 9 issues across 21 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!


gocyclo95%

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.


golint57%

Golint is a linter for Go source code.

    • go-sample/internal/context/context.go
    • Line 15: warning: exported function WithCreatedOn should have comment or be unexported (golint)
    • Line 19: warning: exported function CreatedOn should have comment or be unexported (golint)
    • Line 23: warning: exported function WithCreatedBy should have comment or be unexported (golint)
    • Line 27: warning: exported function CreatedBy should have comment or be unexported (golint)
    • go-sample/domain/entity.go
    • Line 10: warning: exported var ErrNotEnoughAttributes should have comment or be unexported (golint)
    • Line 14: warning: exported type Job should have comment or be unexported (golint)
    • Line 24: warning: exported type Usecaser should have comment or be unexported (golint)
    • Line 34: warning: exported type Databaser should have comment or be unexported (golint)
    • go-sample/internal/log/log.go
    • Line 13: warning: don't use underscores in Go names; const error_ should be error (golint)
    • Line 29: warning: exported function Setup should have comment or be unexported (golint)
    • Line 34: warning: exported function Debug should have comment or be unexported (golint)
    • Line 40: warning: exported function Info should have comment or be unexported (golint)
    • Line 46: warning: exported function Warn should have comment or be unexported (golint)
    • Line 52: warning: exported function Error should have comment or be unexported (golint)
    • Line 58: warning: exported function Critical should have comment or be unexported (golint)
    • go-sample/internal/testing/testing.go
    • Line 8: warning: exported function CheckStatusCode should have comment or be unexported (golint)
    • Line 17: warning: exported function CheckContentType should have comment or be unexported (golint)
    • Line 26: warning: exported function CheckBody 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!