Preparing report...

Report for github.com/viant/gmetric

A+    Excellent!    Found 14 issues across 24 files

Tweet

gofmt91%

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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • gmetric/counter.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/viant/gmetric/counter (invalid package name: "") (ineffassign)
    • Line 3: warning: could not import github.com/viant/gmetric/counter (invalid package name: "") (ineffassign)
    • gmetric/service.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/viant/gmetric/stat (invalid package name: "") (ineffassign)
    • Line 58: warning: operation.Index undefined (type *Operation has no field or method Index) (ineffassign)
    • Line 59: warning: operation.Recent undefined (type *Operation has no field or method Recent) (ineffassign)
    • Line 79: warning: operation.Index undefined (type *Operation has no field or method Index) (ineffassign)
    • Line 80: warning: operation.Recent undefined (type *Operation has no field or method Recent) (ineffassign)
    • Line 134: warning: operation.Provider undefined (type *Operation has no field or method Provider) (ineffassign)
    • Line 10: warning: could not import github.com/viant/gmetric/stat (invalid package name: "") (ineffassign)
    • Line 58: warning: operation.Index undefined (type *Operation has no field or method Index) (ineffassign)
    • Line 59: warning: operation.Recent undefined (type *Operation has no field or method Recent) (ineffassign)
    • Line 79: warning: operation.Index undefined (type *Operation has no field or method Index) (ineffassign)
    • Line 80: warning: operation.Recent undefined (type *Operation has no field or method Recent) (ineffassign)
    • Line 134: warning: operation.Provider undefined (type *Operation has no field or method Provider) (ineffassign)
    • gmetric/handler.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/viant/toolbox (invalid package name: "") (ineffassign)
    • Line 14: warning: h.Route undefined (type *handler has no field or method Route) (ineffassign)
    • Line 4: warning: could not import github.com/viant/toolbox (invalid package name: "") (ineffassign)
    • Line 14: warning: h.Route undefined (type *handler has no field or method Route) (ineffassign)
    • gmetric/service_test.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • Line 52: warning: counter.Begin undefined (type Operation has no field or method Begin) (ineffassign)
    • Line 55: warning: counter.Count undefined (type Operation has no field or method Count) (ineffassign)
    • gmetric/example_test.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/viant/gmetric (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/viant/gmetric/counter/base (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/viant/gmetric/stat (invalid package name: "") (ineffassign)
    • gmetric/counter/values.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/viant/gmetric/stat (invalid package name: "") (ineffassign)
    • Line 3: warning: could not import github.com/viant/gmetric/stat (invalid package name: "") (ineffassign)
    • gmetric/window/operation.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/viant/gmetric/counter (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/viant/gmetric/counter (invalid package name: "") (ineffassign)
    • gmetric/counter/operation_test.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/viant/gmetric/counter/base (invalid package name: "") (ineffassign)
    • gmetric/window/operation_test.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/viant/gmetric/counter/base (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/viant/gmetric/stat (invalid package name: "") (ineffassign)
    • Line 58: warning: op.CountValue undefined (type Operation has no field or method CountValue) (ineffassign)
    • Line 67: warning: op.Counters undefined (type Operation has no field or method Counters) (ineffassign)
    • gmetric/operation.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/viant/gmetric/window (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/viant/gmetric/window (invalid package name: "") (ineffassign)
    • gmetric/counter/base/provider.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/viant/gmetric/stat (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/viant/toolbox (invalid package name: "") (ineffassign)
    • gmetric/counter/multi.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/viant/toolbox (invalid package name: "") (ineffassign)
    • Line 4: warning: could not import github.com/viant/toolbox (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!