Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
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.
-
apiai-go-client/models/query_response.go
- Line 5: warning: exported type QueryResponse should have comment or be unexported (golint)
- Line 14: warning: exported type Result should have comment or be unexported (golint)
- Line 26: warning: exported type Fulfillment should have comment or be unexported (golint)
-
apiai-go-client/models/intent.go
- Line 3: warning: exported type Intent should have comment or be unexported (golint)
- Line 19: warning: exported type CortanaCommand should have comment or be unexported (golint)
- Line 24: warning: exported type UserSay should have comment or be unexported (golint)
- Line 31: warning: exported type Response should have comment or be unexported (golint)
- Line 39: warning: exported type Data should have comment or be unexported (golint)
-
apiai-go-client/request.go
- Line 9: warning: should not use dot imports (golint)
- Line 12: warning: exported type Request should have comment or be unexported (golint)
- Line 20: warning: comment on exported function NewRequest should be of the form "NewRequest ..." (golint)
- Line 39: warning: comment on exported method Request.Perform should be of the form "Perform ..." (golint)
-
apiai-go-client/models/options.go
- Line 3: warning: exported type Options should have comment or be unexported (golint)
- Line 11: warning: exported var AVAILABLE_LANGUAGES should have comment or be unexported (golint)
- Line 30: warning: exported const VERSION should have comment (or a comment on this block) or be unexported (golint)
-
apiai-go-client/models/query.go
- Line 8: warning: exported type Query should have comment or be unexported (golint)
- Line 23: warning: exported type Location should have comment or be unexported (golint)
- Line 28: warning: exported type OriginalRequest should have comment or be unexported (golint)
- Line 33: warning: exported method Query.ToMap should have comment or be unexported (golint)
-
apiai-go-client/apiai.go
- Line 8: warning: should not use dot imports (golint)
- Line 12: warning: exported type DialogFlowClient should have comment or be unexported (golint)
- Line 20: warning: comment on exported function NewDialogFlowClient should be of the form "NewDialogFlowClient ..." (golint)
- Line 21: warning: error should be the last type when returning multiple items (golint)
- Line 54: warning: comment on exported method DialogFlowClient.QueryFindRequest should be of the form "QueryFindRequest ..." (golint)
- Line 93: warning: comment on exported method DialogFlowClient.QueryCreateRequest should be of the form "QueryCreateRequest ..." (golint)
- Line 119: warning: comment on exported method DialogFlowClient.EntitiesFindAllRequest should be of the form "EntitiesFindAllRequest ..." (golint)
- Line 141: warning: comment on exported method DialogFlowClient.EntitiesFindByIdRequest should be of the form "EntitiesFindByIdRequest ..." (golint)
- Line 167: warning: comment on exported method DialogFlowClient.EntitiesCreateRequest should be of the form "EntitiesCreateRequest ..." (golint)
- Line 193: warning: comment on exported method DialogFlowClient.EntitiesAddEntryRequest should be of the form "EntitiesAddEntryRequest ..." (golint)
- Line 219: warning: comment on exported method DialogFlowClient.EntitiesUpdateRequest should be of the form "EntitiesUpdateRequest ..." (golint)
- Line 245: warning: comment on exported method DialogFlowClient.EntitiesUpdateEntityRequest should be of the form "EntitiesUpdateEntityRequest ..." (golint)
- Line 271: warning: comment on exported method DialogFlowClient.EntitiesUpdateEntityEntriesRequest should be of the form "EntitiesUpdateEntityEntriesRequest ..." (golint)
- Line 297: warning: comment on exported method DialogFlowClient.EntitiesDeleteRequest should be of the form "EntitiesDeleteRequest ..." (golint)
- Line 323: warning: comment on exported method DialogFlowClient.EntitiesDeleteEntriesRequest should be of the form "EntitiesDeleteEntriesRequest ..." (golint)
- Line 349: warning: comment on exported method DialogFlowClient.UserEntitiesCreateRequest should be of the form "UserEntitiesCreateRequest ..." (golint)
- Line 381: warning: comment on exported method DialogFlowClient.UserEntitiesUpdateRequest should be of the form "UserEntitiesUpdateRequest ..." (golint)
- Line 407: warning: comment on exported method DialogFlowClient.UserEntitiesFindByNameRequest should be of the form "UserEntitiesFindByNameRequest ..." (golint)
- Line 433: warning: comment on exported method DialogFlowClient.UserEntitiesDeleteByNameRequest should be of the form "UserEntitiesDeleteByNameRequest ..." (golint)
- Line 459: warning: comment on exported method DialogFlowClient.IntentsFindAllRequest should be of the form "IntentsFindAllRequest ..." (golint)
- Line 481: warning: comment on exported method DialogFlowClient.IntentsFindByIdRequest should be of the form "IntentsFindByIdRequest ..." (golint)
- Line 507: warning: comment on exported method DialogFlowClient.IntentsCreateRequest should be of the form "IntentsCreateRequest ..." (golint)
- Line 533: warning: comment on exported method DialogFlowClient.IntentsUpdateRequest should be of the form "IntentsUpdateRequest ..." (golint)
- Line 559: warning: comment on exported method DialogFlowClient.IntentsDeleteRequest should be of the form "IntentsDeleteRequest ..." (golint)
- Line 585: warning: comment on exported method DialogFlowClient.ContextsFindAllRequest should be of the form "ContextsFindAllRequest ..." (golint)
- Line 607: warning: comment on exported method DialogFlowClient.ContextsFindByNameRequest should be of the form "ContextsFindByNameRequest ..." (golint)
- Line 633: warning: comment on exported method DialogFlowClient.ContextsCreateRequest should be of the form "ContextsCreateRequest ..." (golint)
- Line 659: warning: comment on exported method DialogFlowClient.ContextsDeleteRequest should be of the form "ContextsDeleteRequest ..." (golint)
- Line 681: warning: comment on exported method DialogFlowClient.ContextsDeleteByNameRequest should be of the form "ContextsDeleteByNameRequest ..." (golint)
- Line 707: warning: comment on exported method DialogFlowClient.GetAccessToken should be of the form "GetAccessToken ..." (golint)
- Line 712: warning: comment on exported method DialogFlowClient.GetApiVersion should be of the form "GetApiVersion ..." (golint)
- Line 720: warning: comment on exported method DialogFlowClient.GetApiLang should be of the form "GetApiLang ..." (golint)
- Line 728: warning: comment on exported method DialogFlowClient.GetBaseUrl should be of the form "GetBaseUrl ..." (golint)
- Line 736: warning: comment on exported method DialogFlowClient.GetSessionID should be of the form "GetSessionID ..." (golint)
- Line 741: warning: comment on exported method DialogFlowClient.SetSessionID should be of the form "SetSessionID ..." (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!