Preparing report...

Report for github.com/yunjuiot/tuyacloud

A+    Excellent!    Found 8 issues across 35 files

Tweet

gofmt91%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

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!


gocyclo100%

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!


golint85%

Golint is a linter for Go source code.

    • tuyacloud/user/user.go
    • Line 19: warning: exported method SyncUserInfoRequest.Body should have comment or be unexported (golint)
    • Line 33: warning: exported type SyncUserInfoResponse should have comment or be unexported (golint)
    • Line 44: warning: exported method QueryUserListRequest.Body should have comment or be unexported (golint)
    • Line 59: warning: exported type UserInfo should have comment or be unexported (golint)
    • Line 66: warning: exported type QueryUserListResponse should have comment or be unexported (golint)
    • Line 76: warning: exported method QueryUserInfoRequest.Body should have comment or be unexported (golint)
    • Line 90: warning: exported type QueryUserInfoResponse should have comment or be unexported (golint)
    • tuyacloud/pairing/paring.go
    • Line 9: warning: exported type RequestExtension should have comment or be unexported (golint)
    • Line 13: warning: exported type DeviceRequest should have comment or be unexported (golint)
    • Line 31: warning: exported type ResponseExtension should have comment or be unexported (golint)
    • Line 36: warning: exported type DeviceResponse should have comment or be unexported (golint)
    • Line 44: warning: exported type QueryPairingDeviceListRequest should have comment or be unexported (golint)
    • Line 58: warning: exported type QueryPairingDeviceListResponse should have comment or be unexported (golint)
    • Line 73: warning: exported type ZigbeeGatewayPairingRequest should have comment or be unexported (golint)
    • Line 89: warning: exported type ZigbeeGatewayPairingResponse should have comment or be unexported (golint)
    • Line 91: warning: exported type ZigbeeGatewayPairingListRequest should have comment or be unexported (golint)
    • Line 107: warning: exported type ZigbeeGatewayPairingListResponse should have comment or be unexported (golint)
    • Line 118: warning: exported type ZigbeeGatewayPairedListRequest should have comment or be unexported (golint)
    • Line 132: warning: exported type ZigbeeGatewayPairedListResponse should have comment or be unexported (golint)
    • tuyacloud/devicectl/devicectl.go
    • Line 5: warning: exported type Function should have comment or be unexported (golint)
    • Line 11: warning: exported type QueryCategoryFunctionRequest should have comment or be unexported (golint)
    • Line 25: warning: exported type QueryCategoryFunctionResponse should have comment or be unexported (golint)
    • Line 27: warning: exported type QueryDeviceFunctionRequest should have comment or be unexported (golint)
    • Line 41: warning: exported type DeviceFunction should have comment or be unexported (golint)
    • Line 49: warning: exported type QueryDeviceFunctionResponse should have comment or be unexported (golint)
    • Line 54: warning: exported type QuerySpecificationsRequest should have comment or be unexported (golint)
    • Line 68: warning: exported type QuerySpecificationsResponse should have comment or be unexported (golint)
    • Line 74: warning: exported type DeviceCommand should have comment or be unexported (golint)
    • Line 79: warning: exported type ControlDeviceRequest should have comment or be unexported (golint)
    • Line 94: warning: exported type ControlDeviceResponse should have comment or be unexported (golint)
    • Line 96: warning: exported type QueryDeviceStatusRequest should have comment or be unexported (golint)
    • Line 110: warning: exported type QueryDeviceStatusResponse should have comment or be unexported (golint)
    • tuyacloud/smarthome/smarthome.go
    • Line 8: warning: exported type Home should have comment or be unexported (golint)
    • Line 15: warning: exported type AddHomeRequest should have comment or be unexported (golint)
    • Line 21: warning: exported method AddHomeRequest.Body should have comment or be unexported (golint)
    • Line 35: warning: exported type AddHomeResponse should have comment or be unexported (golint)
    • Line 37: warning: exported type UpdateHomeRequest should have comment or be unexported (golint)
    • Line 45: warning: exported method UpdateHomeRequest.Body should have comment or be unexported (golint)
    • Line 59: warning: exported type UpdateHomeResponse should have comment or be unexported (golint)
    • Line 61: warning: exported type QueryHomeRequest should have comment or be unexported (golint)
    • Line 65: warning: exported method QueryHomeRequest.Body should have comment or be unexported (golint)
    • Line 79: warning: exported type QueryHomeResponse should have comment or be unexported (golint)
    • Line 87: warning: exported type DeleteHomeRequest should have comment or be unexported (golint)
    • Line 91: warning: exported method DeleteHomeRequest.Body should have comment or be unexported (golint)
    • Line 105: warning: exported type DeleteHomeResponse should have comment or be unexported (golint)
    • Line 107: warning: exported type QueryHomeDeviceRequest should have comment or be unexported (golint)
    • Line 111: warning: exported method QueryHomeDeviceRequest.Body should have comment or be unexported (golint)
    • Line 125: warning: exported type Status should have comment or be unexported (golint)
    • Line 130: warning: exported type QueryHomeDeviceResponse should have comment or be unexported (golint)
    • Line 146: warning: exported type AddRoomRequest should have comment or be unexported (golint)
    • Line 151: warning: exported method AddRoomRequest.Body should have comment or be unexported (golint)
    • Line 165: warning: exported type AddRoomResponse should have comment or be unexported (golint)
    • Line 167: warning: exported type UpdateRoomRequest should have comment or be unexported (golint)
    • Line 173: warning: exported method UpdateRoomRequest.Body should have comment or be unexported (golint)
    • Line 187: warning: exported type UpdateRoomResponse should have comment or be unexported (golint)
    • Line 189: warning: exported type DeleteRoomRequest should have comment or be unexported (golint)
    • Line 194: warning: exported method DeleteRoomRequest.Body should have comment or be unexported (golint)
    • Line 208: warning: exported type DeleteRoomResponse should have comment or be unexported (golint)
    • Line 210: warning: exported type QueryRoomInfoRequest should have comment or be unexported (golint)
    • Line 214: warning: exported method QueryRoomInfoRequest.Body should have comment or be unexported (golint)
    • Line 228: warning: exported type Room should have comment or be unexported (golint)
    • Line 233: warning: exported type QueryRoomInfoResponse should have comment or be unexported (golint)
    • Line 242: warning: exported type Member should have comment or be unexported (golint)
    • Line 249: warning: exported type AddHomeMemberRequest should have comment or be unexported (golint)
    • Line 255: warning: exported method AddHomeMemberRequest.Body should have comment or be unexported (golint)
    • Line 269: warning: exported type AddHomeMemberResponse should have comment or be unexported (golint)
    • Line 271: warning: exported type UpdateHomeMemberPermissionRequest should have comment or be unexported (golint)
    • Line 277: warning: exported method UpdateHomeMemberPermissionRequest.Body should have comment or be unexported (golint)
    • Line 291: warning: exported type UpdateHomeMemberPermissionResponse should have comment or be unexported (golint)
    • Line 293: warning: exported type DeleteHomeMemberRequest should have comment or be unexported (golint)
    • Line 298: warning: exported method DeleteHomeMemberRequest.Body should have comment or be unexported (golint)
    • Line 312: warning: exported type DeleteHomeMemberResponse should have comment or be unexported (golint)
    • Line 314: warning: exported type QueryHomeMembersRequest should have comment or be unexported (golint)
    • Line 318: warning: exported method QueryHomeMembersRequest.Body should have comment or be unexported (golint)
    • Line 332: warning: exported type QueryHomeMembersResponse should have comment or be unexported (golint)
    • Line 334: warning: exported type QueryHomeRoomDeviceRequest should have comment or be unexported (golint)
    • Line 339: warning: exported method QueryHomeRoomDeviceRequest.Body should have comment or be unexported (golint)
    • Line 353: warning: exported type Device should have comment or be unexported (golint)
    • Line 369: warning: exported type QueryHomeRoomDeviceResponse should have comment or be unexported (golint)
    • Line 371: warning: exported type AddHomeRoomDeviceRequest should have comment or be unexported (golint)
    • Line 377: warning: exported method AddHomeRoomDeviceRequest.Body should have comment or be unexported (golint)
    • Line 391: warning: exported type AddHomeRoomDeviceResponse should have comment or be unexported (golint)
    • Line 393: warning: exported type UpdateHomeRoomDeviceRequest should have comment or be unexported (golint)
    • Line 399: warning: exported method UpdateHomeRoomDeviceRequest.Body should have comment or be unexported (golint)
    • Line 413: warning: exported type UpdateHomeRoomDeviceResponse should have comment or be unexported (golint)
    • Line 415: warning: exported type DeleteHomeRoomDeviceRequest should have comment or be unexported (golint)
    • Line 421: warning: exported method DeleteHomeRoomDeviceRequest.Body should have comment or be unexported (golint)
    • Line 435: warning: exported type QueryUserHomeRequest should have comment or be unexported (golint)
    • Line 439: warning: exported method QueryUserHomeRequest.Body should have comment or be unexported (golint)
    • Line 453: warning: exported type QueryUserHomeResponse should have comment or be unexported (golint)
    • tuyacloud/tests/client.go
    • Line 52: warning: exported type Mocked should have comment or be unexported (golint)
    • Line 57: warning: exported method Mocked.Response should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!