Preparing report...

Report for github.com/viant/cloudless

A+    Excellent!    Found 28 issues across 57 files

Tweet

gofmt96%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint54%

Golint is a linter for Go source code.

    • cloudless/resource/asset.go
    • Line 5: warning: exported type Assets should have comment or be unexported (golint)
    • Line 7: warning: exported method Assets.Deleted should have comment or be unexported (golint)
    • Line 16: warning: exported method Assets.Modified should have comment or be unexported (golint)
    • Line 27: warning: exported method Assets.Added should have comment or be unexported (golint)
    • Line 36: warning: exported function NewAssets should have comment or be unexported (golint)
    • cloudless/compute/cluster/discovery.go
    • Line 5: warning: exported type Discovery should have comment or be unexported (golint)
    • Line 12: warning: exported type HealthCheck should have comment or be unexported (golint)
    • Line 21: warning: exported type Discoveries should have comment or be unexported (golint)
    • cloudless/data/processor/config.go
    • Line 45: warning: exported method Config.ExpandDestinationURL should have comment or be unexported (golint)
    • Line 63: warning: comment on exported method Config.LoaderDeadline should be of the form "LoaderDeadline ..." (golint)
    • Line 119: warning: exported method Config.AdjustScannerBuffer should have comment or be unexported (golint)
    • cloudless/data/processor/reporter.go
    • Line 11: warning: exported type BaseReporter should have comment or be unexported (golint)
    • Line 16: warning: comment on exported method BaseReporter.BaseResponse should be of the form "BaseResponse ..." (golint)
    • cloudless/resource/const.go
    • Line 3: warning: exported type Operation should have comment or be unexported (golint)
    • Line 6: warning: exported const OperationUndefined should have comment (or a comment on this block) or be unexported (golint)
    • cloudless/sync/group.go
    • Line 8: warning: exported type Group should have comment or be unexported (golint)
    • Line 14: warning: exported method Group.Increment should have comment or be unexported (golint)
    • Line 18: warning: exported method Group.Decrement should have comment or be unexported (golint)
    • cloudless/compute/cluster/service.go
    • Line 10: warning: exported type Match should have comment or be unexported (golint)
    • Line 14: warning: exported function Register should have comment or be unexported (golint)
    • Line 18: warning: exported type Service should have comment or be unexported (golint)
    • Line 21: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported method Service.Discover should have comment or be unexported (golint)
    • Line 72: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • cloudless/data/processor/response.go
    • Line 10: warning: comment on exported type StatusSet should be of the form "StatusSet ..." (with optional leading article) (golint)
    • Line 14: warning: exported const StatusOk should have comment (or a comment on this block) or be unexported (golint)
    • cloudless/data/processor/sort.go
    • Line 15: warning: exported type Spec should have comment or be unexported (golint)
    • Line 26: warning: comment on exported type Field should be of the form "Field ..." (with optional leading article) (golint)
    • Line 40: warning: comment on exported type Fields should be of the form "Fields ..." (with optional leading article) (golint)
    • Line 46: warning: comment on exported method Fields.UnmarshalJSONObject should be of the form "UnmarshalJSONObject ..." (golint)
    • Line 74: warning: comment on exported method Fields.NKeys should be of the form "NKeys ..." (golint)
    • Line 79: warning: exported method Field.Value should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!