Preparing report...

Report for github.com/aserto-dev/runtime

A+    Excellent!    Found 12 issues across 22 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!


golint45%

Golint is a linter for Go source code.

    • runtime/example/plugins/decision_log/factory.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 12: warning: exported type PluginFactory should have comment or be unexported (golint)
    • Line 14: warning: exported function NewPluginFactory should have comment or be unexported (golint)
    • Line 18: warning: exported method PluginFactory.New should have comment or be unexported (golint)
    • Line 23: warning: exported method PluginFactory.Validate should have comment or be unexported (golint)
    • runtime/options.go
    • Line 9: warning: exported type RuntimeOption should have comment or be unexported (golint)
    • Line 11: warning: exported function WithPlugin should have comment or be unexported (golint)
    • Line 17: warning: exported function WithBuiltin1 should have comment or be unexported (golint)
    • Line 28: warning: exported function WithBuiltin2 should have comment or be unexported (golint)
    • Line 39: warning: exported function WithBuiltin3 should have comment or be unexported (golint)
    • Line 50: warning: exported function WithBuiltin4 should have comment or be unexported (golint)
    • Line 61: warning: exported function WithBuiltinDyn should have comment or be unexported (golint)
    • runtime/example/plugins/decision_log/plugin.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 14: warning: exported const PluginName should have comment or be unexported (golint)
    • Line 16: warning: exported type Config should have comment or be unexported (golint)
    • Line 20: warning: exported type DecisionLogger should have comment or be unexported (golint)
    • Line 41: warning: exported method DecisionLogger.Start should have comment or be unexported (golint)
    • Line 48: warning: exported method DecisionLogger.Stop should have comment or be unexported (golint)
    • Line 53: warning: exported method DecisionLogger.Reconfigure should have comment or be unexported (golint)
    • Line 56: warning: exported type Event should have comment or be unexported (golint)
    • Line 61: warning: exported method DecisionLogger.Log should have comment or be unexported (golint)
    • Line 70: warning: exported function Lookup should have comment or be unexported (golint)
    • runtime/example/build.go
    • Line 12: warning: exported type BuildCmd should have comment or be unexported (golint)
    • Line 18: warning: exported method BuildCmd.Run should have comment or be unexported (golint)
    • runtime/example/query.go
    • Line 14: warning: exported type QueryCmd should have comment or be unexported (golint)
    • Line 21: warning: exported method QueryCmd.Run should have comment or be unexported (golint)
    • runtime/example/queryx.go
    • Line 19: warning: exported type QueryXCmd should have comment or be unexported (golint)
    • Line 26: warning: exported method QueryXCmd.Run should have comment or be unexported (golint)
    • runtime/example/sig.go
    • Line 13: warning: exported type SigCmd should have comment or be unexported (golint)
    • Line 17: warning: exported method SigCmd.Run should have comment or be unexported (golint)
    • runtime/build.go
    • Line 25: warning: exported const Rego should have comment (or a comment on this block) or be unexported (golint)
    • runtime/config.go
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 28: warning: exported type LocalBundlesConfig should have comment or be unexported (golint)
    • Line 36: warning: exported type OPAConfig should have comment or be unexported (golint)
    • runtime/runtime.go
    • Line 48: warning: exported type BundleState should have comment or be unexported (golint)
    • Line 56: warning: exported type RuntimeState should have comment or be unexported (golint)
    • Line 161: warning: exported method Runtime.BuiltinRequirements should have comment or be unexported (golint)
    • Line 207: warning: exported method Runtime.Status should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign81%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!