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.
-
auditlog/message/type.go
- Line 11: warning: exported const TypeConnect should have comment (or a comment on this block) or be unexported (golint)
- Line 200: warning: comment on exported method Type.Name should be of the form "Name ..." (golint)
-
auditlog/codes/codes.go
- Line 3: warning: comment on exported const MMultipartUpload should be of the form "MMultipartUpload ..." (golint)
- Line 6: warning: comment on exported const EMultipartUploadInitializationFailed should be of the form "EMultipartUploadInitializationFailed ..." (golint)
- Line 10: warning: comment on exported const MMultipartPartUploading should be of the form "MMultipartPartUploading ..." (golint)
- Line 13: warning: comment on exported const EMultipartPartUploadFailed should be of the form "EMultipartPartUploadFailed ..." (golint)
- Line 16: warning: comment on exported const MMultipartPartUploadComplete should be of the form "MMultipartPartUploadComplete ..." (golint)
- Line 19: warning: comment on exported const MMultipartUploadFinalizing should be of the form "MMultipartUploadFinalizing ..." (golint)
- Line 22: warning: comment on exported const EMultipartUploadFinalizationFailed should be of the form "EMultipartUploadFinalizationFailed ..." (golint)
- Line 25: warning: comment on exported const EMultipartUploadFinalized should be of the form "EMultipartUploadFinalized ..." (golint)
- Line 28: warning: comment on exported const EMultipartFailedAbort should be of the form "EMultipartFailedAbort ..." (golint)
- Line 31: warning: comment on exported const EMultipartFailedList should be of the form "EMultipartFailedList ..." (golint)
- Line 35: warning: comment on exported const MSingleUpload should be of the form "MSingleUpload ..." (golint)
- Line 39: warning: comment on exported const MSingleUploadFailed should be of the form "MSingleUploadFailed ..." (golint)
- Line 42: warning: comment on exported const MSingleUploadComplete should be of the form "MSingleUploadComplete ..." (golint)
- Line 45: warning: comment on exported const EFailedCreatingMetadataFile should be of the form "EFailedCreatingMetadataFile ..." (golint)
- Line 49: warning: comment on exported const EFailedReadingMetadataFile should be of the form "EFailedReadingMetadataFile ..." (golint)
- Line 53: warning: comment on exported const ECannotCloseMetadataFileHandle should be of the form "ECannotCloseMetadataFileHandle ..." (golint)
- Line 57: warning: comment on exported const EFailedMetadataJSONEncoding should be of the form "EFailedMetadataJSONEncoding ..." (golint)
- Line 60: warning: comment on exported const EFailedWritingMetadataFile should be of the form "EFailedWritingMetadataFile ..." (golint)
- Line 63: warning: comment on exported const EFailedQueueStat should be of the form "EFailedQueueStat ..." (golint)
- Line 67: warning: comment on exported const ENoSuchQueueEntry should be of the form "ENoSuchQueueEntry ..." (golint)
- Line 70: warning: comment on exported const ERemoveAuditLogFailed should be of the form "ERemoveAuditLogFailed ..." (golint)
- Line 74: warning: comment on exported const ECloseAuditLogFileFailed should be of the form "ECloseAuditLogFileFailed ..." (golint)
- Line 78: warning: comment on exported const EMultipartAborting should be of the form "EMultipartAborting ..." (golint)
- Line 81: warning: comment on exported const MRecovering should be of the form "MRecovering ..." (golint)
- Line 84: warning: comment on exported const EAuditLogStorageCloseFailed should be of the form "EAuditLogStorageCloseFailed ..." (golint)
-
auditlog/message/auth.go
- Line 170: warning: comment on exported type PayloadHandshakeSuccessful should be of the form "PayloadHandshakeSuccessful ..." (with optional leading article) (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!