Preparing report...

Report for github.com/kedgeproject/kedge

A+    Excellent!    Found 16 issues across 42 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!


gocyclo92%

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.


golint69%

Golint is a linter for Go source code.

    • kedge/cmd/build.go
    • Line 29: warning: exported var Dockerfile should have comment or be unexported (golint)
    • Line 30: warning: exported var BuilderImage should have its own declaration (golint)
    • Line 31: warning: exported var DockerContext should have comment or be unexported (golint)
    • Line 32: warning: exported var PushImage should have comment or be unexported (golint)
    • kedge/cmd/init.go
    • Line 47: warning: exported type Deployments should have comment or be unexported (golint)
    • Line 51: warning: exported type DeploymentConfigs should have comment or be unexported (golint)
    • Line 55: warning: exported type Containers should have comment or be unexported (golint)
    • Line 59: warning: exported type Service should have comment or be unexported (golint)
    • Line 63: warning: exported type App should have comment or be unexported (golint)
    • kedge/pkg/spec/resources.go
    • Line 237: warning: exported method App.Fix should have comment or be unexported (golint)
    • Line 507: warning: comment on exported method App.CreateK8sObjects should be of the form "CreateK8sObjects ..." (golint)
    • Line 654: warning: exported method App.Validate should have comment or be unexported (golint)
    • kedge/pkg/spec/types.go
    • Line 86: warning: comment on exported type RouteSpecMod should be of the form "RouteSpecMod ..." (with optional leading article) (golint)
    • Line 155: warning: comment on exported type ImageStreamSpecMod should be of the form "ImageStreamSpecMod ..." (with optional leading article) (golint)
    • Line 173: warning: comment on exported type App should be of the form "App ..." (with optional leading article) (golint)
    • Line 261: warning: comment on exported type DeploymentConfigSpecMod should be of the form "DeploymentConfigSpecMod ..." (with optional leading article) (golint)
    • kedge/pkg/spec/util.go
    • Line 57: warning: comment on exported function GetScheme should be of the form "GetScheme ..." (golint)
    • Line 102: warning: comment on exported function SetGVK should be of the form "SetGVK ..." (golint)
    • Line 125: warning: exported function PrettyPrintObjects should have comment or be unexported (golint)
    • kedge/pkg/validation/validation.go
    • Line 12: warning: comment on exported type ValidFormat should be of the form "ValidFormat ..." (with optional leading article) (golint)
    • Line 43: warning: comment on exported function Validate should be of the form "Validate ..." (golint)
    • kedge/pkg/build/build.go
    • Line 36: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 43: warning: exported function BuildPushDockerImage should have comment or be unexported (golint)
    • Line 200: warning: comment on exported function GetImageTag should be of the form "GetImageTag ..." (golint)
    • Line 225: warning: exported function GetImageName should have comment or be unexported (golint)
    • Line 240: warning: exported function BuildS2I should have comment or be unexported (golint)
    • kedge/pkg/cmd/commands.go
    • Line 35: warning: comment on exported function CreateArtifacts should be of the form "CreateArtifacts ..." (golint)
    • Line 138: warning: comment on exported function RunClusterCommand should be of the form "RunClusterCommand ..." (golint)
    • kedge/tests/e2e/e2e.go
    • Line 28: warning: comment on exported var ProjectPath should be of the form "ProjectPath ..." (golint)
    • Line 30: warning: exported var TestPath should have comment or be unexported (golint)
    • Line 31: warning: exported var BinaryLocation should have comment or be unexported (golint)
    • Line 32: warning: exported var BinaryCommand should have comment or be unexported (golint)
    • Line 76: warning: comment on exported function RunBinary should be of the form "RunBinary ..." (golint)
    • Line 109: warning: comment on exported function PodsStarted should be of the form "PodsStarted ..." (golint)
    • Line 244: warning: comment on exported type ServicePort should be of the form "ServicePort ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell92%

Misspell Finds commonly misspelled English words