Preparing report...

Report for github.com/olegsu/iris

A+    Excellent!    Found 14 issues across 33 files

Tweet

gofmt96%

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!


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!


golint60%

Golint is a linter for Go source code.

    • iris/pkg/util/util.go
    • Line 13: warning: exported var BuildDate should have its own declaration (golint)
    • Line 16: warning: exported function UnmarshalOrDie should have comment or be unexported (golint)
    • Line 24: warning: exported function MapToObjectOrDie should have comment or be unexported (golint)
    • Line 37: warning: exported function EchoError should have comment or be unexported (golint)
    • iris/pkg/reader/reader.go
    • Line 26: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 38: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • iris/pkg/filter/filter.go
    • Line 8: warning: exported const TypeReason should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type Filter should have comment or be unexported (golint)
    • Line 21: warning: exported function ApplyFilter should have comment or be unexported (golint)
    • iris/pkg/destination/destination.go
    • Line 10: warning: exported const TypeDefault should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported var UserAgent should have comment or be unexported (golint)
    • Line 18: warning: exported type Destination should have comment or be unexported (golint)
    • Line 24: warning: exported function NewDestination should have comment or be unexported (golint)
    • iris/pkg/destination/service.go
    • Line 17: warning: comment on exported type Service should be of the form "Service ..." (with optional leading article) (golint)
    • Line 53: warning: exported function Exec should have comment or be unexported (golint)
    • iris/pkg/logger/logger.go
    • Line 8: warning: exported type Logger should have comment or be unexported (golint)
    • Line 12: warning: exported type Options should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • iris/pkg/app/app.go
    • Line 11: warning: exported type ApplicationOptions should have comment or be unexported (golint)
    • Line 18: warning: exported function NewApplicationOptions should have comment or be unexported (golint)
    • Line 27: warning: exported function CreateApp should have comment or be unexported (golint)
    • iris/pkg/dal/dal.go
    • Line 13: warning: exported type Dal should have comment or be unexported (golint)
    • Line 20: warning: exported function GetDal should have comment or be unexported (golint)
    • Line 24: warning: exported function CreateDalFromBytes should have comment or be unexported (golint)
    • iris/pkg/dal/integration.go
    • Line 13: warning: exported type Integration should have comment or be unexported (golint)
    • Line 20: warning: exported method Integration.Exec should have comment or be unexported (golint)
    • iris/pkg/kube/kube.go
    • Line 18: warning: exported type WatchFn should have comment or be unexported (golint)
    • Line 20: warning: exported type Kube should have comment or be unexported (golint)
    • Line 72: warning: exported function NewKubeManager should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!