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.
-
qcloudsms_go/voice.go
- Line 73: warning: comment on exported type SMSVoiceTemplate should be of the form "SMSVoiceTemplate ..." (with optional leading article) (golint)
- Line 90: warning: comment on exported method QcloudSMS.VoiceTemplateSend should be of the form "VoiceTemplateSend ..." (golint)
-
qcloudsms_go/example.go
- Line 13: warning: exported function ExampleNewClient should have comment or be unexported (golint)
- Line 20: warning: exported function ExampleQcloudSMS_SendVoice should have comment or be unexported (golint)
- Line 20: warning: don't use underscores in Go names; func ExampleQcloudSMS_SendVoice should be ExampleQcloudSMSSendVoice (golint)
- Line 37: warning: exported function ExampleQcloudSMS_NewSign should have comment or be unexported (golint)
- Line 37: warning: don't use underscores in Go names; func ExampleQcloudSMS_NewSign should be ExampleQcloudSMSNewSign (golint)
- Line 52: warning: exported function ExampleQcloudSMS_ModTemplate should have comment or be unexported (golint)
- Line 52: warning: don't use underscores in Go names; func ExampleQcloudSMS_ModTemplate should be ExampleQcloudSMSModTemplate (golint)
- Line 69: warning: exported function ExampleQcloudSMS_SendSMSSingle should have comment or be unexported (golint)
- Line 69: warning: don't use underscores in Go names; func ExampleQcloudSMS_SendSMSSingle should be ExampleQcloudSMSSendSMSSingle (golint)
- Line 84: warning: exported function ExampleQcloudSMS_GetTemplateByPage should have comment or be unexported (golint)
- Line 84: warning: don't use underscores in Go names; func ExampleQcloudSMS_GetTemplateByPage should be ExampleQcloudSMSGetTemplateByPage (golint)
- Line 93: warning: exported function ExampleQcloudSMS_DelSign should have comment or be unexported (golint)
- Line 93: warning: don't use underscores in Go names; func ExampleQcloudSMS_DelSign should be ExampleQcloudSMSDelSign (golint)
- Line 102: warning: comment on exported function ExampleQcloudSMSVoiceTemplateSend should be of the form "ExampleQcloudSMSVoiceTemplateSend ..." (golint)
-
qcloudsms_go/qcloud.go
- Line 145: warning: comment on exported const VSVR should be of the form "VSVR ..." (golint)
- Line 147: warning: comment on exported const TVOICE should be of the form "TVOICE ..." (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
Misspell Finds commonly misspelled English words
No problems detected. Good job!