Preparing report...

Report for github.com/skillkit/go-ghome

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


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!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

    • go-ghome/home.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import google.golang.org/api/dialogflow/v2 (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import google.golang.org/api/dialogflow/v2 (invalid package name: "") (ineffassign)
    • go-ghome/request.go
    • Line 14: warning: undeclared name: dialogflow (ineffassign)
    • Line 52: warning: undeclared name: dialogflow (ineffassign)
    • Line 57: warning: r.OriginalDetectIntentRequest undefined (type *Request has no field or method OriginalDetectIntentRequest) (ineffassign)
    • Line 58: warning: r.OriginalDetectIntentRequest undefined (type *Request has no field or method OriginalDetectIntentRequest) (ineffassign)
    • Line 63: warning: r.QueryResult undefined (type *Request has no field or method QueryResult) (ineffassign)
    • Line 64: warning: r.QueryResult undefined (type *Request has no field or method QueryResult) (ineffassign)
    • Line 74: warning: r.QueryResult undefined (type *Request has no field or method QueryResult) (ineffassign)
    • Line 79: warning: r.QueryResult undefined (type *Request has no field or method QueryResult) (ineffassign)
    • Line 94: warning: r.Session undefined (type *Request has no field or method Session) (ineffassign)
    • Line 7: warning: "google.golang.org/api/dialogflow/v2" imported but not used (ineffassign)
    • Line 14: warning: undeclared name: dialogflow (ineffassign)
    • Line 52: warning: undeclared name: dialogflow (ineffassign)
    • Line 57: warning: r.OriginalDetectIntentRequest undefined (type *Request has no field or method OriginalDetectIntentRequest) (ineffassign)
    • Line 58: warning: r.OriginalDetectIntentRequest undefined (type *Request has no field or method OriginalDetectIntentRequest) (ineffassign)
    • Line 63: warning: r.QueryResult undefined (type *Request has no field or method QueryResult) (ineffassign)
    • Line 64: warning: r.QueryResult undefined (type *Request has no field or method QueryResult) (ineffassign)
    • Line 74: warning: r.QueryResult undefined (type *Request has no field or method QueryResult) (ineffassign)
    • Line 79: warning: r.QueryResult undefined (type *Request has no field or method QueryResult) (ineffassign)
    • Line 94: warning: r.Session undefined (type *Request has no field or method Session) (ineffassign)
    • Line 7: warning: "google.golang.org/api/dialogflow/v2" imported but not used (ineffassign)
    • go-ghome/response.go
    • Line 22: warning: undeclared name: dialogflow (ineffassign)
    • Line 28: warning: undeclared name: dialogflow (ineffassign)
    • Line 29: warning: undeclared name: dialogflow (ineffassign)
    • Line 30: warning: undeclared name: dialogflow (ineffassign)
    • Line 37: warning: undeclared name: dialogflow (ineffassign)
    • Line 38: warning: r.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 38: warning: r.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 43: warning: undeclared name: dialogflow (ineffassign)
    • Line 44: warning: r.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 44: warning: r.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 37: warning: basic declared but not used (ineffassign)
    • Line 43: warning: card declared but not used (ineffassign)
    • Line 52: warning: undeclared name: dialogflow (ineffassign)
    • Line 52: warning: r.FollowupEventInput undefined (type *Response has no field or method FollowupEventInput) (ineffassign)
    • Line 62: warning: r.FollowupEventInput undefined (type *Response has no field or method FollowupEventInput) (ineffassign)
    • Line 69: warning: undeclared name: dialogflow (ineffassign)
    • Line 80: warning: r.OutputContexts undefined (type *Response has no field or method OutputContexts) (ineffassign)
    • Line 80: warning: r.OutputContexts undefined (type *Response has no field or method OutputContexts) (ineffassign)
    • Line 89: warning: r.Payload undefined (type *Response has no field or method Payload) (ineffassign)
    • Line 91: warning: r.Payload undefined (type *Response has no field or method Payload) (ineffassign)
    • Line 99: warning: r.Payload undefined (type *Response has no field or method Payload) (ineffassign)
    • Line 108: warning: r.FulfillmentText undefined (type *Response has no field or method FulfillmentText) (ineffassign)
    • Line 113: warning: r.Source undefined (type *Response has no field or method Source) (ineffassign)
    • Line 6: warning: "google.golang.org/api/dialogflow/v2" imported but not used (ineffassign)
    • Line 22: warning: undeclared name: dialogflow (ineffassign)
    • Line 28: warning: undeclared name: dialogflow (ineffassign)
    • Line 29: warning: undeclared name: dialogflow (ineffassign)
    • Line 30: warning: undeclared name: dialogflow (ineffassign)
    • Line 37: warning: undeclared name: dialogflow (ineffassign)
    • Line 38: warning: r.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 38: warning: r.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 43: warning: undeclared name: dialogflow (ineffassign)
    • Line 44: warning: r.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 44: warning: r.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 37: warning: basic declared but not used (ineffassign)
    • Line 43: warning: card declared but not used (ineffassign)
    • Line 52: warning: undeclared name: dialogflow (ineffassign)
    • Line 52: warning: r.FollowupEventInput undefined (type *Response has no field or method FollowupEventInput) (ineffassign)
    • Line 62: warning: r.FollowupEventInput undefined (type *Response has no field or method FollowupEventInput) (ineffassign)
    • Line 69: warning: undeclared name: dialogflow (ineffassign)
    • Line 80: warning: r.OutputContexts undefined (type *Response has no field or method OutputContexts) (ineffassign)
    • Line 80: warning: r.OutputContexts undefined (type *Response has no field or method OutputContexts) (ineffassign)
    • Line 89: warning: r.Payload undefined (type *Response has no field or method Payload) (ineffassign)
    • Line 91: warning: r.Payload undefined (type *Response has no field or method Payload) (ineffassign)
    • Line 99: warning: r.Payload undefined (type *Response has no field or method Payload) (ineffassign)
    • Line 108: warning: r.FulfillmentText undefined (type *Response has no field or method FulfillmentText) (ineffassign)
    • Line 113: warning: r.Source undefined (type *Response has no field or method Source) (ineffassign)
    • Line 6: warning: "google.golang.org/api/dialogflow/v2" imported but not used (ineffassign)
    • go-ghome/home_test.go
    • Line 16: warning: undeclared name: dialogflow (ineffassign)
    • Line 17: warning: undeclared name: dialogflow (ineffassign)
    • Line 44: warning: w.FulfillmentText undefined (type *Response has no field or method FulfillmentText) (ineffassign)
    • Line 45: warning: w.FulfillmentText undefined (type *Response has no field or method FulfillmentText) (ineffassign)
    • Line 9: warning: "google.golang.org/api/dialogflow/v2" imported but not used (ineffassign)
    • go-ghome/response_test.go
    • Line 12: warning: undeclared name: dialogflow (ineffassign)
    • Line 16: warning: undeclared name: dialogflow (ineffassign)
    • Line 24: warning: resp.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 25: warning: resp.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 28: warning: resp.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 29: warning: resp.FulfillmentMessages undefined (type *Response has no field or method FulfillmentMessages) (ineffassign)
    • Line 44: warning: resp.FollowupEventInput undefined (type *Response has no field or method FollowupEventInput) (ineffassign)
    • Line 45: warning: resp.FollowupEventInput undefined (type *Response has no field or method FollowupEventInput) (ineffassign)
    • Line 48: warning: resp.FollowupEventInput undefined (type *Response has no field or method FollowupEventInput) (ineffassign)
    • Line 49: warning: resp.FollowupEventInput undefined (type *Response has no field or method FollowupEventInput) (ineffassign)
    • Line 64: warning: resp.OutputContexts undefined (type *Response has no field or method OutputContexts) (ineffassign)
    • Line 65: warning: resp.OutputContexts undefined (type *Response has no field or method OutputContexts) (ineffassign)
    • Line 68: warning: resp.OutputContexts undefined (type *Response has no field or method OutputContexts) (ineffassign)
    • Line 69: warning: resp.OutputContexts undefined (type *Response has no field or method OutputContexts) (ineffassign)
    • Line 6: warning: "google.golang.org/api/dialogflow/v2" imported but not used (ineffassign)
    • go-ghome/examples/cards/main.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/skillkit/go-ghome (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import google.golang.org/api/dialogflow/v2 (invalid package name: "") (ineffassign)
    • Line 11: warning: undeclared name: ghome (ineffassign)
    • Line 13: warning: undeclared name: ghome (ineffassign)
    • Line 13: warning: undeclared name: ghome (ineffassign)
    • Line 14: warning: undeclared name: dialogflow (ineffassign)
    • Line 18: warning: undeclared name: dialogflow (ineffassign)
    • Line 26: warning: undeclared name: dialogflow (ineffassign)
    • Line 29: warning: undeclared name: dialogflow (ineffassign)
    • Line 33: warning: undeclared name: dialogflow (ineffassign)
    • Line 36: warning: undeclared name: dialogflow (ineffassign)
    • Line 6: warning: "github.com/skillkit/go-ghome" imported but not used (ineffassign)
    • Line 7: warning: "google.golang.org/api/dialogflow/v2" imported but not used (ineffassign)
    • go-ghome/examples/simple/main.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/skillkit/go-ghome (invalid package name: "") (ineffassign)
    • Line 10: warning: undeclared name: ghome (ineffassign)
    • Line 12: warning: undeclared name: ghome (ineffassign)
    • Line 12: warning: undeclared name: ghome (ineffassign)
    • Line 6: warning: "github.com/skillkit/go-ghome" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!