Preparing report...

Report for github.com/iFaceless/portal

A+    Excellent!    Found 10 issues across 30 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!


golint66%

Golint is a linter for Go source code.

    • portal/field/lower.go
    • Line 8: warning: exported type LowerString should have comment or be unexported (golint)
    • Line 10: warning: exported method LowerString.MarshalJSON should have comment or be unexported (golint)
    • portal/field/timestamp.go
    • Line 12: warning: exported type Timestamp should have comment or be unexported (golint)
    • Line 14: warning: exported method Timestamp.Value should have comment or be unexported (golint)
    • Line 18: warning: exported method Timestamp.SetValue should have comment or be unexported (golint)
    • Line 30: warning: exported method Timestamp.MarshalJSON should have comment or be unexported (golint)
    • Line 38: warning: exported method Timestamp.UnmarshalJSON should have comment or be unexported (golint)
    • portal/field/upper.go
    • Line 8: warning: exported type UpperString should have comment or be unexported (golint)
    • Line 10: warning: exported method UpperString.MarshalJSON should have comment or be unexported (golint)
    • portal/util.go
    • Line 188: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • portal/type.go
    • Line 3: warning: exported type Valuer should have comment or be unexported (golint)
    • Line 7: warning: exported type ValueSetter should have comment or be unexported (golint)
    • portal/cache.go
    • Line 11: warning: exported type Cacher should have comment or be unexported (golint)
    • Line 16: warning: exported type ErrNil should have comment or be unexported (golint)
    • Line 22: warning: exported type MapCache should have comment or be unexported (golint)
    • Line 32: warning: exported method MapCache.Set should have comment or be unexported (golint)
    • Line 37: warning: exported method MapCache.Get should have comment or be unexported (golint)
    • Line 49: warning: exported var DefaultCache should have comment or be unexported (golint)
    • portal/chell.go
    • Line 80: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 99: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 105: warning: comment on exported method Chell.SetExcludeFields should be of the form "SetExcludeFields ..." (golint)
    • Line 116: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 228: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 232: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • portal/field.go
    • Line 117: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 177: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 232: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 253: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • portal/log.go
    • Line 11: warning: exported function SetDebug should have comment or be unexported (golint)
    • Line 19: warning: exported type LogLevel should have comment or be unexported (golint)
    • Line 22: warning: exported const ErrorLevel should have comment (or a comment on this block) or be unexported (golint)

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!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!