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.
-
apiai-go/client.go
- Line 16: warning: exported type ClientConfig should have comment or be unexported (golint)
- Line 24: warning: exported type ApiClient should have comment or be unexported (golint)
- Line 28: warning: exported type Client should have comment or be unexported (golint)
- Line 52: warning: exported function NewClient should have comment or be unexported (golint)
-
apiai-go/contexts.go
- Line 10: warning: exported type Context should have comment or be unexported (golint)
- Line 16: warning: exported method ApiClient.GetContexts should have comment or be unexported (golint)
- Line 38: warning: exported method ApiClient.GetContext should have comment or be unexported (golint)
- Line 59: warning: exported method ApiClient.CreateContext should have comment or be unexported (golint)
- Line 75: warning: exported method ApiClient.DeleteContexts should have comment or be unexported (golint)
- Line 90: warning: exported method ApiClient.DeleteContext should have comment or be unexported (golint)
-
apiai-go/entities.go
- Line 9: warning: exported type EntityDescription should have comment or be unexported (golint)
- Line 16: warning: exported type Entry should have comment or be unexported (golint)
- Line 21: warning: exported type Entity should have comment or be unexported (golint)
- Line 29: warning: exported method ApiClient.GetEntities should have comment or be unexported (golint)
- Line 50: warning: exported method ApiClient.GetEntity should have comment or be unexported (golint)
- Line 71: warning: exported method ApiClient.CreateEntity should have comment or be unexported (golint)
- Line 93: warning: exported method ApiClient.AddEntries should have comment or be unexported (golint)
- Line 109: warning: exported method ApiClient.UpdateEntities should have comment or be unexported (golint)
- Line 125: warning: exported method ApiClient.UpdateEntity should have comment or be unexported (golint)
- Line 141: warning: exported method ApiClient.UpdateEntries should have comment or be unexported (golint)
- Line 157: warning: exported method ApiClient.DeleteEntity should have comment or be unexported (golint)
- Line 173: warning: exported method ApiClient.DeleteEntries should have comment or be unexported (golint)
-
apiai-go/intents.go
- Line 9: warning: exported type Data should have comment or be unexported (golint)
- Line 16: warning: exported type UserSays should have comment or be unexported (golint)
- Line 23: warning: exported type IntentParameter should have comment or be unexported (golint)
- Line 33: warning: exported type IntentResponse should have comment or be unexported (golint)
- Line 41: warning: exported type CortanaCommand should have comment or be unexported (golint)
- Line 46: warning: exported type Intent should have comment or be unexported (golint)
- Line 62: warning: exported type IntentDescription should have comment or be unexported (golint)
- Line 73: warning: exported method ApiClient.GetIntents should have comment or be unexported (golint)
- Line 95: warning: exported method ApiClient.GetIntent should have comment or be unexported (golint)
- Line 117: warning: exported method ApiClient.CreateIntent should have comment or be unexported (golint)
- Line 139: warning: exported method ApiClient.UpdateIntent should have comment or be unexported (golint)
- Line 155: warning: exported method ApiClient.DeleteIntent should have comment or be unexported (golint)
-
apiai-go/query.go
- Line 12: warning: exported type Platform should have comment or be unexported (golint)
- Line 17: warning: exported type Location should have comment or be unexported (golint)
- Line 22: warning: exported type Event should have comment or be unexported (golint)
- Line 27: warning: exported type Query should have comment or be unexported (golint)
- Line 41: warning: exported type CreationResponse should have comment or be unexported (golint)
- Line 46: warning: exported type CardButton should have comment or be unexported (golint)
- Line 51: warning: exported type Metadata should have comment or be unexported (golint)
- Line 58: warning: exported type Message should have comment or be unexported (golint)
- Line 69: warning: exported type Fulfilment should have comment or be unexported (golint)
- Line 74: warning: exported type Status should have comment or be unexported (golint)
- Line 81: warning: exported type Result should have comment or be unexported (golint)
- Line 93: warning: exported type QueryResponse should have comment or be unexported (golint)
- Line 102: warning: exported method ApiClient.Query should have comment or be unexported (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!