Preparing report...

Report for github.com/zc2638/arceus

A    Great!    Found 20 issues across 21 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!


golint4%

Golint is a linter for Go source code.

    • arceus/global/config.go
    • Line 1: warning: package comment should be of the form "Package global ..." (golint)
    • Line 22: warning: exported function Init should have comment or be unexported (golint)
    • arceus/static/static.go
    • Line 1: warning: package comment should be of the form "Package static ..." (golint)
    • Line 20: warning: exported const KubernetesDir should have comment or be unexported (golint)
    • Line 22: warning: exported const UIDir should have comment or be unexported (golint)
    • arceus/pkg/version/version.go
    • Line 3: warning: package comment should be of the form "Package version ..." (golint)
    • Line 24: warning: exported type Version should have comment or be unexported (golint)
    • Line 32: warning: exported function Get should have comment or be unexported (golint)
    • arceus/pkg/types/template.go
    • Line 1: warning: package comment should be of the form "Package types ..." (golint)
    • Line 18: warning: exported type Template should have comment or be unexported (golint)
    • Line 24: warning: exported type TemplateSpec should have comment or be unexported (golint)
    • Line 30: warning: exported type TemplateSpecTemplate should have comment or be unexported (golint)
    • arceus/pkg/types/resource.go
    • Line 1: warning: package comment should be of the form "Package types ..." (golint)
    • Line 24: warning: exported type Resource should have comment or be unexported (golint)
    • Line 30: warning: exported function BuildResourceList should have comment or be unexported (golint)
    • arceus/handler/handler.go
    • Line 1: warning: package comment should be of the form "Package handler ..." (golint)
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • arceus/global/define.go
    • Line 1: warning: package comment should be of the form "Package global ..." (golint)
    • Line 19: warning: exported const ResourcePath should have comment (or a comment on this block) or be unexported (golint)
    • arceus/cmd/app/app.go
    • Line 1: warning: package comment should be of the form "Package app ..." (golint)
    • Line 35: warning: exported function NewServerCommand should have comment or be unexported (golint)
    • arceus/handler/web/web.go
    • Line 1: warning: package comment should be of the form "Package web ..." (golint)
    • Line 27: warning: exported function New should have comment or be unexported (golint)
    • arceus/pkg/types/tree.go
    • Line 1: warning: package comment should be of the form "Package types ..." (golint)
    • Line 27: warning: exported const NodeRoot should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported const TypeObject should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: comment on exported const TreeNodeArray should be of the form "TreeNodeArray ..." (golint)
    • Line 44: warning: exported type TNodeDesc should have comment or be unexported (golint)
    • Line 49: warning: exported type TNode should have comment or be unexported (golint)
    • Line 61: warning: exported function BuildNode should have comment or be unexported (golint)
    • arceus/pkg/types/types.go
    • Line 1: warning: package comment should be of the form "Package types ..." (golint)
    • Line 19: warning: exported const Group should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type TypeMeta should have comment or be unexported (golint)
    • Line 32: warning: exported type ObjectMeta should have comment or be unexported (golint)
    • Line 38: warning: exported type ArceusResourceDefinition should have comment or be unexported (golint)
    • Line 45: warning: exported type ArceusResourceDefinitionSpec should have comment or be unexported (golint)
    • Line 63: warning: exported type ArceusResourceDefinitionNames should have comment or be unexported (golint)
    • Line 90: warning: exported type ArceusResourceDefinitionVersion should have comment or be unexported (golint)
    • Line 98: warning: exported type ArceusResourceValidation should have comment or be unexported (golint)
    • arceus/pkg/util/util.go
    • Line 1: warning: package comment should be of the form "Package util ..." (golint)
    • Line 36: warning: exported function MkdirAll should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!