Preparing report...

Report for github.com/durd07/go-control-plane

A    Great!    Found 12 issues across 27 files

Tweet

gofmt92%

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!


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.


golint77%

Golint is a linter for Go source code.

    • go-control-plane/pkg/server/sotw/v2/server.go
    • Line 34: warning: exported type Server should have comment or be unexported (golint)
    • Line 38: warning: exported type Callbacks should have comment or be unexported (golint)
    • Line 65: warning: comment on exported type Stream should be of the form "Stream ..." (with optional leading article) (golint)
    • go-control-plane/pkg/cache/v2/linear.go
    • Line 55: warning: comment on exported type LinearCacheOption should be of the form "LinearCacheOption ..." (with optional leading article) (golint)
    • Line 167: warning: exported method LinearCache.CreateWatch should have comment or be unexported (golint)
    • Line 240: warning: exported method LinearCache.Fetch should have comment or be unexported (golint)
    • Line 244: warning: comment on exported method LinearCache.NumWatches should be of the form "NumWatches ..." (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign85%

IneffAssign detects ineffectual assignments in Go code.

    • go-control-plane/pkg/log/log_test.go
    • Line 20: warning: missing go.sum entry for module providing package github.com/stretchr/testify/assert (imported by github.com/durd07/go-control-plane/pkg/log); to add: (ineffassign)
    • Line 20: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • go-control-plane/pkg/conversion/struct_test.go
    • Line 22: warning: missing go.sum entry for module providing package github.com/google/go-cmp/cmp (imported by github.com/durd07/go-control-plane/pkg/conversion); to add: (ineffassign)
    • Line 22: warning: could not import github.com/google/go-cmp/cmp (invalid package name: "") (ineffassign)
    • go-control-plane/pkg/cache/v2/cache_test.go
    • Line 13: warning: missing go.sum entry for module providing package github.com/stretchr/testify/assert (imported by github.com/durd07/go-control-plane/pkg/cache/v2); to add: (ineffassign)
    • Line 13: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)

misspell96%

Misspell Finds commonly misspelled English words