Preparing report...

Report for github.com/jrcichra/karmen

A+    Excellent!    Found 5 issues across 8 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!


golint62%

Golint is a linter for Go source code.

    • karmen/goclient/karmen/client.go
    • Line 14: warning: exported type KarmenClient should have comment or be unexported (golint)
    • Line 20: warning: exported type Result should have comment or be unexported (golint)
    • Line 22: warning: exported method KarmenClient.Init should have comment or be unexported (golint)
    • Line 39: warning: exported method KarmenClient.Register should have comment or be unexported (golint)
    • Line 88: warning: exported method KarmenClient.RunEvent should have comment or be unexported (golint)
    • Line 93: warning: exported method KarmenClient.AddAction should have comment or be unexported (golint)
    • karmen/parser.go
    • Line 46: warning: exported method Config.LoadConfig should have comment or be unexported (golint)
    • karmen/store.go
    • Line 5: warning: exported type Config should have comment or be unexported (golint)
    • Line 9: warning: exported type Event should have comment or be unexported (golint)
    • Line 15: warning: exported type Block should have comment or be unexported (golint)
    • Line 20: warning: exported type Action should have comment or be unexported (golint)
    • Line 27: warning: exported type Host should have comment or be unexported (golint)
    • Line 35: warning: exported type BlockType should have comment or be unexported (golint)
    • Line 36: warning: exported type ParameterName should have comment or be unexported (golint)
    • Line 37: warning: exported type ParameterValue should have comment or be unexported (golint)
    • Line 38: warning: exported type ConditionName should have comment or be unexported (golint)
    • Line 39: warning: exported type ConditionValue should have comment or be unexported (golint)
    • Line 40: warning: exported type EventName should have comment or be unexported (golint)
    • Line 41: warning: exported type ActionName should have comment or be unexported (golint)
    • Line 42: warning: exported type HostName should have comment or be unexported (golint)
    • Line 43: warning: exported type Variable should have comment or be unexported (golint)
    • Line 44: warning: exported type VariableValue should have comment or be unexported (golint)
    • Line 45: warning: exported type UUID should have comment or be unexported (golint)
    • Line 47: warning: exported type Results should have comment or be unexported (golint)
    • Line 48: warning: exported type State should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign62%

IneffAssign detects ineffectual assignments in Go code.

    • karmen/goclient/karmen/client.go
    • Line 10: warning: no required module provides package github.com/jrcichra/karmen/goclient/grpc; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/jrcichra/karmen/goclient/grpc (invalid package name: "") (ineffassign)
    • Line 10: warning: no required module provides package github.com/jrcichra/karmen/goclient/grpc; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/jrcichra/karmen/goclient/grpc (invalid package name: "") (ineffassign)
    • karmen/goclient/main.go
    • Line 16: warning: result.Code undefined (type *karmen.Result has no field or method Code) (ineffassign)
    • Line 21: warning: result.Code undefined (type *karmen.Result has no field or method Code) (ineffassign)
    • karmen/grpcfunctions.go
    • Line 11: warning: no required module provides package github.com/jrcichra/karmen/grpc; to add it: (ineffassign)
    • Line 11: warning: could not import github.com/jrcichra/karmen/grpc (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!