Preparing report...

Report for github.com/layer5io/meshsync

A+    Excellent!    Found 11 issues across 14 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!


golint21%

Golint is a linter for Go source code.

    • meshsync/meshsync/error.go
    • Line 22: warning: exported const ErrGetObjectCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function ErrGetObject should have comment or be unexported (golint)
    • Line 32: warning: exported function ErrNewPipeline should have comment or be unexported (golint)
    • Line 36: warning: exported function ErrNewInformer should have comment or be unexported (golint)
    • Line 40: warning: exported function ErrKubeConfig should have comment or be unexported (golint)
    • meshsync/pkg/model/model_converter.go
    • Line 13: warning: exported function ParseList should have comment or be unexported (golint)
    • Line 85: warning: exported function IsObject should have comment or be unexported (golint)
    • Line 89: warning: exported function SetID should have comment or be unexported (golint)
    • meshsync/internal/pipeline/error.go
    • Line 8: warning: exported const ErrListCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported function ErrDynamicClient should have comment or be unexported (golint)
    • Line 17: warning: exported function ErrList should have comment or be unexported (golint)
    • Line 21: warning: exported function ErrPublish should have comment or be unexported (golint)
    • meshsync/internal/config/error.go
    • Line 8: warning: exported const ErrInitConfigCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported function ErrInitConfig should have comment or be unexported (golint)
    • meshsync/internal/config/types.go
    • Line 4: warning: exported const ServerKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type PipelineConfigs should have comment or be unexported (golint)
    • Line 14: warning: exported type PipelineConfig should have comment or be unexported (golint)
    • meshsync/pkg/model/model.go
    • Line 8: warning: exported const KindLabel should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type Object should have comment or be unexported (golint)
    • Line 28: warning: exported type KeyValue should have comment or be unexported (golint)
    • Line 36: warning: exported type ResourceObjectMeta should have comment or be unexported (golint)
    • Line 57: warning: exported type ResourceSpec should have comment or be unexported (golint)
    • Line 62: warning: exported type ResourceStatus should have comment or be unexported (golint)
    • Line 67: warning: exported method Object.BeforeCreate should have comment or be unexported (golint)
    • Line 72: warning: exported method Object.BeforeSave should have comment or be unexported (golint)
    • Line 77: warning: exported method Object.BeforeDelete 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!