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.
Golint is a linter for Go source code.
-
ringcentral-webhooks/config.go
- Line 18: warning: exported type RcHooksConfig should have comment or be unexported (golint)
- Line 25: warning: exported function NewRcHooksConfigCreds should have comment or be unexported (golint)
- Line 42: warning: exported function NewRcHooksConfigEnv should have comment or be unexported (golint)
- Line 49: warning: exported method RcHooksConfig.Inflate should have comment or be unexported (golint)
- Line 62: warning: exported method RcHooksConfig.Client should have comment or be unexported (golint)
- Line 66: warning: exported method RcHooksConfig.ClientUtil should have comment or be unexported (golint)
- Line 77: warning: exported method RcHooksConfig.InitilizeRcHooks should have comment or be unexported (golint)
- Line 94: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
-
ringcentral-webhooks/rchooks.go
- Line 17: warning: exported const WebhookStatusBlacklisted should have comment (or a comment on this block) or be unexported (golint)
- Line 22: warning: exported function ParseCreateSubscriptionRequest should have comment or be unexported (golint)
- Line 28: warning: exported type RcHooks should have comment or be unexported (golint)
- Line 32: warning: exported method RcHooks.GetSubscriptions should have comment or be unexported (golint)
- Line 40: warning: exported method RcHooks.CreateSubscription should have comment or be unexported (golint)
- Line 50: warning: exported method RcHooks.DeleteSubscription should have comment or be unexported (golint)
- Line 56: warning: exported method RcHooks.DeleteBlacklisted should have comment or be unexported (golint)
- Line 72: warning: exported function FilterSubscriptionsForRequest should have comment or be unexported (golint)
- Line 88: warning: exported method RcHooks.RecreateSubscriptionIdOrUrl should have comment or be unexported (golint)
- Line 113: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
- Line 121: warning: exported method RcHooks.CheckAndFixSubscription should have comment or be unexported (golint)
- Line 139: warning: exported method RcHooks.DeleteByIdOrUrl should have comment or be unexported (golint)
- Line 163: warning: exported function NewCreateSubscriptionRequestPermahook should have comment or be unexported (golint)
- Line 172: warning: exported function NewCreateSubscriptionRequestPermahookBotSimple should have comment or be unexported (golint)
- Line 176: warning: exported type WebhookDefinitionThin should have comment or be unexported (golint)
- Line 181: warning: exported method WebhookDefinitionThin.Full 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!