Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
No problems detected. Good job!
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
-
grpc-proxy/proxy/codec.go
- Line 7: warning: cannot find package "." in: (ineffassign)
- Line 7: warning: could not import google.golang.org/grpc (invalid package name: "") (ineffassign)
- Line 7: warning: could not import google.golang.org/grpc (invalid package name: "") (ineffassign)
-
grpc-proxy/proxy/handler.go
- Line 11: warning: cannot find package "." in: (ineffassign)
- Line 11: warning: could not import google.golang.org/grpc/codes (invalid package name: "") (ineffassign)
- Line 32: warning: streamDesc declared but not used (ineffassign)
- Line 11: warning: could not import google.golang.org/grpc/codes (invalid package name: "") (ineffassign)
- Line 32: warning: streamDesc declared but not used (ineffassign)
-
grpc-proxy/proxy/examples_test.go
- Line 9: warning: cannot find package "." in: (ineffassign)
- Line 13: warning: cannot find package "." in: (ineffassign)
- Line 9: warning: could not import github.com/carapace/grpc-proxy/proxy (invalid package name: "") (ineffassign)
- Line 10: warning: could not import golang.org/x/net/context (invalid package name: "") (ineffassign)
- Line 11: warning: could not import google.golang.org/grpc (invalid package name: "") (ineffassign)
- Line 12: warning: could not import google.golang.org/grpc/codes (invalid package name: "") (ineffassign)
- Line 13: warning: could not import google.golang.org/grpc/metadata (invalid package name: "") (ineffassign)
-
grpc-proxy/proxy/handler_test.go
- Line 27: warning: cannot find package "." in: (ineffassign)
- Line 16: warning: cannot find package "." in: (ineffassign)
- Line 18: warning: cannot find package "." in: (ineffassign)
- Line 22: warning: cannot find package "." in: (ineffassign)
- Line 16: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
- Line 17: warning: could not import github.com/stretchr/testify/require (invalid package name: "") (ineffassign)
- Line 18: warning: could not import github.com/stretchr/testify/suite (invalid package name: "") (ineffassign)
- Line 22: warning: could not import google.golang.org/grpc/grpclog (invalid package name: "") (ineffassign)
- Line 27: warning: could not import github.com/carapace/grpc-proxy/testservice (invalid package name: "") (ineffassign)
- Line 121: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 122: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 136: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 137: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 138: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 139: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 144: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 145: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 146: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 153: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 154: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 155: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 160: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 164: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 172: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 173: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 175: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 177: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 179: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 182: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 195: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 197: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 202: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 206: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 229: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 233: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
- Line 239: warning: s.T undefined (type *ProxyHappySuite has no field or method T) (ineffassign)
-
grpc-proxy/proxy/director.go
- Line 7: warning: cannot find package "." in: (ineffassign)
- Line 7: warning: could not import golang.org/x/net/context (invalid package name: "") (ineffassign)
- Line 7: warning: could not import golang.org/x/net/context (invalid package name: "") (ineffassign)
Misspell Finds commonly misspelled English words
No problems detected. Good job!