Preparing report...

Report for github.com/digital-idea/csi3

A+    Excellent!    Found 26 issues across 76 files

Tweet

gofmt96%

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!


golint98%

Golint is a linter for Go source code.


gocyclo68%

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.

    • csi3/process.go
    • Line 65: warning: cyclomatic complexity 19 of function processingItem() is high (> 15) (gocyclo)
    • csi3/searchop.go
    • Line 169: warning: cyclomatic complexity 18 of function (*SearchOption).LoadCookie() is high (> 15) (gocyclo)
    • csi3/http_user.go
    • Line 154: warning: cyclomatic complexity 34 of function handleEditUserSubmit() is high (> 15) (gocyclo)
    • Line 500: warning: cyclomatic complexity 20 of function handleSignupSubmit() is high (> 15) (gocyclo)
    • csi3/http_item.go
    • Line 500: warning: cyclomatic complexity 68 of function handleAddShotSubmit() is high (> 15) (gocyclo)
    • Line 927: warning: cyclomatic complexity 55 of function handleAddAssetSubmit() is high (> 15) (gocyclo)
    • Line 1226: warning: cyclomatic complexity 19 of function handleEditItemSubmitv2() is high (> 15) (gocyclo)
    • Line 156: warning: cyclomatic complexity 18 of function handleItemDetail() is high (> 15) (gocyclo)
    • Line 342: warning: cyclomatic complexity 17 of function handleIndex() is high (> 15) (gocyclo)
    • csi3/db_item.go
    • Line 1098: warning: cyclomatic complexity 35 of function TotalUserStatusnum() is high (> 15) (gocyclo)
    • Line 407: warning: cyclomatic complexity 33 of function SearchKey() is high (> 15) (gocyclo)
    • Line 542: warning: cyclomatic complexity 29 of function SearchStatusNum() is high (> 15) (gocyclo)
    • Line 1354: warning: cyclomatic complexity 19 of function TotalStatusnum() is high (> 15) (gocyclo)
    • Line 907: warning: cyclomatic complexity 19 of function TotalTaskAndUserStatusnum() is high (> 15) (gocyclo)
    • Line 740: warning: cyclomatic complexity 19 of function TotalTaskStatusnum() is high (> 15) (gocyclo)
    • Line 1992: warning: cyclomatic complexity 16 of function SetTaskStatus() is high (> 15) (gocyclo)
    • csi3/restapiReview.go
    • Line 24: warning: cyclomatic complexity 32 of function handleAPIAddReview() is high (> 15) (gocyclo)
    • Line 1565: warning: cyclomatic complexity 31 of function handleAPIUploadReviewDrawing() is high (> 15) (gocyclo)
    • Line 607: warning: cyclomatic complexity 21 of function handleAPIAddReviewComment() is high (> 15) (gocyclo)
    • Line 1802: warning: cyclomatic complexity 19 of function handleAPIReviewDrawingFrame() is high (> 15) (gocyclo)
    • Line 441: warning: cyclomatic complexity 16 of function handleAPISetReviewStage() is high (> 15) (gocyclo)
    • csi3/http_project.go
    • Line 184: warning: cyclomatic complexity 32 of function handleEditProjectSubmit() is high (> 15) (gocyclo)
    • Line 471: warning: cyclomatic complexity 17 of function handleRmProjectSubmit() is high (> 15) (gocyclo)
    • csi3/restlegacy.go
    • Line 79: warning: cyclomatic complexity 21 of function handleAPISetTaskMov() is high (> 15) (gocyclo)
    • Line 406: warning: cyclomatic complexity 20 of function handleAPISetRenderSize() is high (> 15) (gocyclo)
    • Line 317: warning: cyclomatic complexity 19 of function handleAPISetThummov() is high (> 15) (gocyclo)
    • csi3/db_search.go
    • Line 14: warning: cyclomatic complexity 122 of function GenQuery() is high (> 15) (gocyclo)
    • Line 424: warning: cyclomatic complexity 21 of function SearchPage() is high (> 15) (gocyclo)
    • Line 390: warning: cyclomatic complexity 17 of function Search() is high (> 15) (gocyclo)
    • csi3/http_export.go
    • Line 567: warning: cyclomatic complexity 85 of function handleExcelSubmit() is high (> 15) (gocyclo)
    • Line 1197: warning: cyclomatic complexity 54 of function handleExportExcelSubmit() is high (> 15) (gocyclo)
    • Line 1642: warning: cyclomatic complexity 49 of function handleDownloadExcelFile() is high (> 15) (gocyclo)
    • Line 263: warning: cyclomatic complexity 37 of function handleReportExcel() is high (> 15) (gocyclo)
    • Line 464: warning: cyclomatic complexity 18 of function handleReportJSON() is high (> 15) (gocyclo)
    • Line 1561: warning: cyclomatic complexity 17 of function handleExportJSONSubmit() is high (> 15) (gocyclo)
    • Line 981: warning: cyclomatic complexity 17 of function handleJSONSubmit() is high (> 15) (gocyclo)
    • csi3/restapiItem.go
    • Line 7447: warning: cyclomatic complexity 29 of function handleAPIRmTaskPublish() is high (> 15) (gocyclo)
    • Line 6882: warning: cyclomatic complexity 26 of function handleAPIMailInfo() is high (> 15) (gocyclo)
    • Line 4011: warning: cyclomatic complexity 23 of function handleAPISetTaskDate() is high (> 15) (gocyclo)
    • Line 2472: warning: cyclomatic complexity 23 of function handleAPISetObjectID() is high (> 15) (gocyclo)
    • Line 7608: warning: cyclomatic complexity 22 of function handleAPISetTaskPublishStatus() is high (> 15) (gocyclo)
    • Line 6645: warning: cyclomatic complexity 22 of function handleAPISetTaskLevel() is high (> 15) (gocyclo)
    • Line 746: warning: cyclomatic complexity 22 of function handleAPI2SetTaskMov() is high (> 15) (gocyclo)
    • Line 3907: warning: cyclomatic complexity 22 of function handleAPISetTaskPredate() is high (> 15) (gocyclo)
    • Line 3430: warning: cyclomatic complexity 21 of function handleAPISetTaskUser() is high (> 15) (gocyclo)
    • Line 7211: warning: cyclomatic complexity 21 of function handleAPIAddTaskPublish() is high (> 15) (gocyclo)
    • Line 4771: warning: cyclomatic complexity 21 of function handleAPISetRnum() is high (> 15) (gocyclo)
    • Line 6271: warning: cyclomatic complexity 21 of function handleAPIAddReference() is high (> 15) (gocyclo)
    • Line 5715: warning: cyclomatic complexity 21 of function handleAPISetNote() is high (> 15) (gocyclo)
    • Line 6081: warning: cyclomatic complexity 21 of function handleAPIAddSource() is high (> 15) (gocyclo)
    • Line 3625: warning: cyclomatic complexity 21 of function handleAPISetTaskUserNote() is high (> 15) (gocyclo)
    • Line 1104: warning: cyclomatic complexity 21 of function handleAPISetUnDistortionSize() is high (> 15) (gocyclo)
    • Line 1485: warning: cyclomatic complexity 20 of function handleAPISetScanIn() is high (> 15) (gocyclo)
    • Line 3158: warning: cyclomatic complexity 20 of function handleAPI2SetTaskStatus() is high (> 15) (gocyclo)
    • Line 1861: warning: cyclomatic complexity 20 of function handleAPISetJustOut() is high (> 15) (gocyclo)
    • Line 1297: warning: cyclomatic complexity 20 of function handleAPISetPlateIn() is high (> 15) (gocyclo)
    • Line 3052: warning: cyclomatic complexity 20 of function handleAPISetTaskStatus() is high (> 15) (gocyclo)
    • Line 1955: warning: cyclomatic complexity 20 of function handleAPISetHandleOut() is high (> 15) (gocyclo)
    • Line 1203: warning: cyclomatic complexity 20 of function handleAPISetJustIn() is high (> 15) (gocyclo)
    • Line 1673: warning: cyclomatic complexity 20 of function handleAPISetScanFrame() is high (> 15) (gocyclo)
    • Line 2049: warning: cyclomatic complexity 20 of function handleAPISetPlateSize() is high (> 15) (gocyclo)
    • Line 1391: warning: cyclomatic complexity 20 of function handleAPISetPlateOut() is high (> 15) (gocyclo)
    • Line 1579: warning: cyclomatic complexity 20 of function handleAPISetScanOut() is high (> 15) (gocyclo)
    • Line 5217: warning: cyclomatic complexity 20 of function handleAPISetFinver() is high (> 15) (gocyclo)
    • Line 1767: warning: cyclomatic complexity 20 of function handleAPISetHandleIn() is high (> 15) (gocyclo)
    • Line 4119: warning: cyclomatic complexity 20 of function handleAPISetShotType() is high (> 15) (gocyclo)
    • Line 2886: warning: cyclomatic complexity 19 of function handleAPISetAftermov() is high (> 15) (gocyclo)
    • Line 85: warning: cyclomatic complexity 19 of function handleAPI2Item() is high (> 15) (gocyclo)
    • Line 2798: warning: cyclomatic complexity 19 of function handleAPISetBeforemov() is high (> 15) (gocyclo)
    • Line 6370: warning: cyclomatic complexity 19 of function handleAPIRmReference() is high (> 15) (gocyclo)
    • Line 4865: warning: cyclomatic complexity 19 of function handleAPISetScanTimecodeIn() is high (> 15) (gocyclo)
    • Line 4953: warning: cyclomatic complexity 19 of function handleAPISetScanTimecodeOut() is high (> 15) (gocyclo)
    • Line 3721: warning: cyclomatic complexity 19 of function handleAPISetDeadline2D() is high (> 15) (gocyclo)
    • Line 4343: warning: cyclomatic complexity 19 of function handleAPISetRetimePlate() is high (> 15) (gocyclo)
    • Line 3814: warning: cyclomatic complexity 19 of function handleAPISetDeadline3D() is high (> 15) (gocyclo)
    • Line 5129: warning: cyclomatic complexity 19 of function handleAPISetJustTimecodeOut() is high (> 15) (gocyclo)
    • Line 5041: warning: cyclomatic complexity 19 of function handleAPISetJustTimecodeIn() is high (> 15) (gocyclo)
    • Line 4678: warning: cyclomatic complexity 19 of function handleAPISetAssetType() is high (> 15) (gocyclo)
    • Line 4519: warning: cyclomatic complexity 19 of function handleAPISetRollmedia() is high (> 15) (gocyclo)
    • Line 4431: warning: cyclomatic complexity 19 of function handleAPISetOCIOcc() is high (> 15) (gocyclo)
    • Line 6180: warning: cyclomatic complexity 19 of function handleAPIRmSource() is high (> 15) (gocyclo)
    • Line 3527: warning: cyclomatic complexity 18 of function handleAPISetTaskStartdate() is high (> 15) (gocyclo)
    • Line 6747: warning: cyclomatic complexity 16 of function handleAPITask() is high (> 15) (gocyclo)
    • Line 5311: warning: cyclomatic complexity 16 of function handleAPISetFindate() is high (> 15) (gocyclo)
    • Line 3260: warning: cyclomatic complexity 16 of function handleAPIRmTask() is high (> 15) (gocyclo)
    • csi3/csi3.go
    • Line 108: warning: cyclomatic complexity 108 of function main() is high (> 15) (gocyclo)
    • csi3/http_setellite.go
    • Line 116: warning: cyclomatic complexity 24 of function handleUploadSetellite() is high (> 15) (gocyclo)
    • Line 18: warning: cyclomatic complexity 19 of function handleSetellite() is high (> 15) (gocyclo)
    • csi3/cmdfunc.go
    • Line 46: warning: cyclomatic complexity 31 of function addShotItemCmd() is high (> 15) (gocyclo)
    • Line 265: warning: cyclomatic complexity 30 of function addOtherItemCmd() is high (> 15) (gocyclo)
    • csi3/excelrow.go
    • Line 43: warning: cyclomatic complexity 30 of function (*Excelrow).checkerror() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.

    • csi3/db_item.go
    • Line 626: warning: ineffectual assignment to assign (ineffassign)
    • Line 637: warning: ineffectual assignment to ready (ineffassign)
    • Line 658: warning: ineffectual assignment to confirm (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!