Preparing report...

Report for github.com/lazypic/OpenPipelineIO

(v0.0.0-20230202223809-bca008644d53)

A+    Excellent!    Found 28 issues across 119 files

Tweet

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!


gofmt96%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo76%

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.

    • cmdfunc.go
    • Line 16: warning: cyclomatic complexity 32 of function addShotItemCmd() is high (> 15) (gocyclo)
    • Line 242: warning: cyclomatic complexity 31 of function addOtherItemCmd() is high (> 15) (gocyclo)
    • pathfunc.go
    • Line 127: warning: cyclomatic complexity 27 of function searchSeq() is high (> 15) (gocyclo)
    • processScanPlate.go
    • Line 81: warning: cyclomatic complexity 134 of function processingScanPlateImageItem() is high (> 15) (gocyclo)
    • handler_scanplate.go
    • Line 322: warning: cyclomatic complexity 20 of function handleAPISearchFootages() is high (> 15) (gocyclo)
    • Line 193: warning: cyclomatic complexity 19 of function handleUploadScanPlate() is high (> 15) (gocyclo)
    • restapiReview.go
    • Line 24: warning: cyclomatic complexity 33 of function handleAPIAddReviewStageMode() is high (> 15) (gocyclo)
    • Line 944: warning: cyclomatic complexity 31 of function handleAPIAddReviewComment() is high (> 15) (gocyclo)
    • Line 213: warning: cyclomatic complexity 28 of function handleAPIAddReviewStatusMode() is high (> 15) (gocyclo)
    • Line 2178: warning: cyclomatic complexity 28 of function handleAPIUploadReviewDrawing() is high (> 15) (gocyclo)
    • Line 1127: warning: cyclomatic complexity 27 of function handleAPIAddReviewStatusModeComment() is high (> 15) (gocyclo)
    • Line 464: warning: cyclomatic complexity 22 of function handleAPISetReviewStatus() is high (> 15) (gocyclo)
    • Line 2402: warning: cyclomatic complexity 19 of function handleAPIReviewDrawingFrame() is high (> 15) (gocyclo)
    • Line 693: warning: cyclomatic complexity 17 of function handleAPISetReviewNextStatus() is high (> 15) (gocyclo)
    • Line 778: warning: cyclomatic complexity 16 of function handleAPISetReviewStage() is high (> 15) (gocyclo)
    • Line 590: warning: cyclomatic complexity 16 of function handleAPISetReviewItemStatus() is high (> 15) (gocyclo)
    • restlegacy.go
    • Line 545: warning: cyclomatic complexity 22 of function handleAPISetRnum() is high (> 15) (gocyclo)
    • Line 644: warning: cyclomatic complexity 21 of function handleAPISetTaskUser() is high (> 15) (gocyclo)
    • Line 404: warning: cyclomatic complexity 20 of function handleAPISetRenderSize() is high (> 15) (gocyclo)
    • Line 79: warning: cyclomatic complexity 20 of function handleAPISetTaskMov() is high (> 15) (gocyclo)
    • Line 313: warning: cyclomatic complexity 19 of function handleAPISetThummov() is high (> 15) (gocyclo)
    • processReview.go
    • Line 72: warning: cyclomatic complexity 20 of function processingReviewClipItem() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 16 of function processingReviewImageItem() is high (> 15) (gocyclo)
    • handler_setting.go
    • Line 66: warning: cyclomatic complexity 19 of function handleAdminSettingSubmit() is high (> 15) (gocyclo)
    • main.go
    • Line 107: warning: cyclomatic complexity 103 of function main() is high (> 15) (gocyclo)
    • db_item_mgo.go
    • Line 1094: warning: cyclomatic complexity 35 of function TotalUserStatusnum() is high (> 15) (gocyclo)
    • Line 406: warning: cyclomatic complexity 32 of function SearchKey() is high (> 15) (gocyclo)
    • Line 541: warning: cyclomatic complexity 29 of function SearchStatusNum() is high (> 15) (gocyclo)
    • Line 903: warning: cyclomatic complexity 19 of function TotalTaskAndUserStatusnum() is high (> 15) (gocyclo)
    • Line 736: warning: cyclomatic complexity 19 of function TotalTaskStatusnum() is high (> 15) (gocyclo)
    • Line 1350: warning: cyclomatic complexity 19 of function TotalStatusnum() is high (> 15) (gocyclo)
    • Line 2003: warning: cyclomatic complexity 16 of function SetTaskStatus() is high (> 15) (gocyclo)
    • struct_excelrow.go
    • Line 43: warning: cyclomatic complexity 34 of function (*Excelrow).checkerror() is high (> 15) (gocyclo)
    • restapiItem_mgo.go
    • Line 7956: warning: cyclomatic complexity 29 of function handleAPIRmTaskPublish() is high (> 15) (gocyclo)
    • Line 7360: warning: cyclomatic complexity 29 of function handleAPIMailInfo() is high (> 15) (gocyclo)
    • Line 2491: warning: cyclomatic complexity 23 of function handleAPISetObjectID() is high (> 15) (gocyclo)
    • Line 4152: warning: cyclomatic complexity 22 of function handleAPISetTaskPredate() is high (> 15) (gocyclo)
    • Line 8117: warning: cyclomatic complexity 22 of function handleAPISetTaskPublishStatus() is high (> 15) (gocyclo)
    • Line 7135: warning: cyclomatic complexity 22 of function handleAPISetTaskLevel() is high (> 15) (gocyclo)
    • Line 6759: warning: cyclomatic complexity 21 of function handleAPIAddReference() is high (> 15) (gocyclo)
    • Line 6567: warning: cyclomatic complexity 21 of function handleAPIAddSource() is high (> 15) (gocyclo)
    • Line 761: warning: cyclomatic complexity 21 of function handleAPI2SetTaskMov() is high (> 15) (gocyclo)
    • Line 1121: warning: cyclomatic complexity 21 of function handleAPISetUnDistortionSize() is high (> 15) (gocyclo)
    • Line 3900: warning: cyclomatic complexity 21 of function handleAPISetTaskUserNote() is high (> 15) (gocyclo)
    • Line 7718: warning: cyclomatic complexity 21 of function handleAPIAddTaskPublish() is high (> 15) (gocyclo)
    • Line 6197: warning: cyclomatic complexity 21 of function handleAPISetNote() is high (> 15) (gocyclo)
    • Line 3349: warning: cyclomatic complexity 20 of function handleAPI2SetTaskStatus() is high (> 15) (gocyclo)
    • Line 3143: warning: cyclomatic complexity 20 of function handleAPISetTaskStatus() is high (> 15) (gocyclo)
    • Line 1878: warning: cyclomatic complexity 20 of function handleAPISetJustOut() is high (> 15) (gocyclo)
    • Line 1408: warning: cyclomatic complexity 20 of function handleAPISetPlateOut() is high (> 15) (gocyclo)
    • Line 2066: warning: cyclomatic complexity 20 of function handleAPISetPlateSize() is high (> 15) (gocyclo)
    • Line 1220: warning: cyclomatic complexity 20 of function handleAPISetJustIn() is high (> 15) (gocyclo)
    • Line 1784: warning: cyclomatic complexity 20 of function handleAPISetHandleIn() is high (> 15) (gocyclo)
    • Line 1972: warning: cyclomatic complexity 20 of function handleAPISetHandleOut() is high (> 15) (gocyclo)
    • Line 1502: warning: cyclomatic complexity 20 of function handleAPISetScanIn() is high (> 15) (gocyclo)
    • Line 1314: warning: cyclomatic complexity 20 of function handleAPISetPlateIn() is high (> 15) (gocyclo)
    • Line 1690: warning: cyclomatic complexity 20 of function handleAPISetScanFrame() is high (> 15) (gocyclo)
    • Line 1596: warning: cyclomatic complexity 20 of function handleAPISetScanOut() is high (> 15) (gocyclo)
    • Line 4450: warning: cyclomatic complexity 20 of function handleAPISetShotType() is high (> 15) (gocyclo)
    • Line 5537: warning: cyclomatic complexity 20 of function handleAPISetFinver() is high (> 15) (gocyclo)
    • Line 5361: warning: cyclomatic complexity 19 of function handleAPISetJustTimecodeIn() is high (> 15) (gocyclo)
    • Line 6860: warning: cyclomatic complexity 19 of function handleAPIRmReference() is high (> 15) (gocyclo)
    • Line 2889: warning: cyclomatic complexity 19 of function handleAPISetBeforemov() is high (> 15) (gocyclo)
    • Line 5449: warning: cyclomatic complexity 19 of function handleAPISetJustTimecodeOut() is high (> 15) (gocyclo)
    • Line 5185: warning: cyclomatic complexity 19 of function handleAPISetScanTimecodeIn() is high (> 15) (gocyclo)
    • Line 4852: warning: cyclomatic complexity 19 of function handleAPISetRollmedia() is high (> 15) (gocyclo)
    • Line 4674: warning: cyclomatic complexity 19 of function handleAPISetRetimePlate() is high (> 15) (gocyclo)
    • Line 6668: warning: cyclomatic complexity 19 of function handleAPIRmSource() is high (> 15) (gocyclo)
    • Line 4764: warning: cyclomatic complexity 19 of function handleAPISetOCIOcc() is high (> 15) (gocyclo)
    • Line 5011: warning: cyclomatic complexity 19 of function handleAPISetAssetType() is high (> 15) (gocyclo)
    • Line 2977: warning: cyclomatic complexity 19 of function handleAPISetAftermov() is high (> 15) (gocyclo)
    • Line 5273: warning: cyclomatic complexity 19 of function handleAPISetScanTimecodeOut() is high (> 15) (gocyclo)
    • Line 3249: warning: cyclomatic complexity 18 of function handleAPISetTaskPipelinestep() is high (> 15) (gocyclo)
    • Line 19: warning: cyclomatic complexity 18 of function handleAPI2GetItem() is high (> 15) (gocyclo)
    • Line 3713: warning: cyclomatic complexity 17 of function handleAPISetTaskStartdate() is high (> 15) (gocyclo)
    • Line 3807: warning: cyclomatic complexity 17 of function handleAPISetTaskStartdate2nd() is high (> 15) (gocyclo)
    • Line 3451: warning: cyclomatic complexity 16 of function handleAPIRmTask() is high (> 15) (gocyclo)
    • Line 5631: warning: cyclomatic complexity 16 of function handleAPISetFindate() is high (> 15) (gocyclo)
    • handler_project.go
    • Line 187: warning: cyclomatic complexity 44 of function handleEditProjectSubmit() is high (> 15) (gocyclo)
    • Line 529: warning: cyclomatic complexity 17 of function handleRmProjectSubmit() is high (> 15) (gocyclo)
    • handler_input.go
    • Line 14: warning: cyclomatic complexity 39 of function handleInputMode() is high (> 15) (gocyclo)
    • handler_user.go
    • Line 157: warning: cyclomatic complexity 36 of function handleEditUserSubmit() is high (> 15) (gocyclo)
    • Line 506: warning: cyclomatic complexity 20 of function handleSignupSubmit() is high (> 15) (gocyclo)
    • restapiStatistics.go
    • Line 592: warning: cyclomatic complexity 24 of function handleAPI1StatisticsUser() is high (> 15) (gocyclo)
    • Line 749: warning: cyclomatic complexity 23 of function handleAPI1StatisticsTask() is high (> 15) (gocyclo)
    • Line 901: warning: cyclomatic complexity 23 of function handleAPI1StatisticsPipelinestep() is high (> 15) (gocyclo)
    • Line 451: warning: cyclomatic complexity 23 of function handleAPI1StatisticsTag() is high (> 15) (gocyclo)
    • Line 1607: warning: cyclomatic complexity 19 of function handleAPI1StatisticsAsset() is high (> 15) (gocyclo)
    • Line 303: warning: cyclomatic complexity 19 of function handleAPI1StatisticsShot() is high (> 15) (gocyclo)
    • Line 1507: warning: cyclomatic complexity 18 of function handleAPI2StatisticsUser() is high (> 15) (gocyclo)
    • Line 1220: warning: cyclomatic complexity 17 of function handleAPI2StatisticsTask() is high (> 15) (gocyclo)
    • Line 1315: warning: cyclomatic complexity 17 of function handleAPI2StatisticsPipelinestep() is high (> 15) (gocyclo)
    • Line 1412: warning: cyclomatic complexity 17 of function handleAPI2StatisticsTag() is high (> 15) (gocyclo)
    • handler_export.go
    • Line 579: warning: cyclomatic complexity 85 of function handleExcelSubmit() is high (> 15) (gocyclo)
    • Line 1224: warning: cyclomatic complexity 54 of function handleExportExcelSubmit() is high (> 15) (gocyclo)
    • Line 1669: warning: cyclomatic complexity 49 of function handleDownloadExcelFile() is high (> 15) (gocyclo)
    • Line 271: warning: cyclomatic complexity 37 of function handleReportExcel() is high (> 15) (gocyclo)
    • Line 995: warning: cyclomatic complexity 20 of function handleJSONSubmit() is high (> 15) (gocyclo)
    • Line 474: warning: cyclomatic complexity 18 of function handleReportJSON() is high (> 15) (gocyclo)
    • Line 1588: warning: cyclomatic complexity 17 of function handleExportJSONSubmit() is high (> 15) (gocyclo)
    • Line 2114: warning: cyclomatic complexity 17 of function handleDownloadCsvFile() is high (> 15) (gocyclo)
    • struct_searchop.go
    • Line 169: warning: cyclomatic complexity 18 of function (*SearchOption).LoadCookie() is high (> 15) (gocyclo)
    • handler_item.go
    • Line 494: warning: cyclomatic complexity 45 of function handleAddShotSubmit() is high (> 15) (gocyclo)
    • Line 816: warning: cyclomatic complexity 30 of function handleAddAssetSubmit() is high (> 15) (gocyclo)
    • Line 998: warning: cyclomatic complexity 19 of function handleEditItemSubmitv2() is high (> 15) (gocyclo)
    • Line 154: warning: cyclomatic complexity 18 of function handleItemDetail() is high (> 15) (gocyclo)
    • Line 334: warning: cyclomatic complexity 17 of function handleIndex() is high (> 15) (gocyclo)
    • handler_review.go
    • Line 238: warning: cyclomatic complexity 28 of function handleUploadReviewFile() is high (> 15) (gocyclo)
    • handler_setellite.go
    • Line 111: warning: cyclomatic complexity 24 of function handleUploadSetellite() is high (> 15) (gocyclo)
    • Line 17: warning: cyclomatic complexity 19 of function handleSetellite() is high (> 15) (gocyclo)
    • db_search.go
    • Line 14: warning: cyclomatic complexity 128 of function GenQuery() is high (> 15) (gocyclo)
    • Line 456: warning: cyclomatic complexity 21 of function SearchPage() is high (> 15) (gocyclo)
    • Line 422: warning: cyclomatic complexity 17 of function Search() is high (> 15) (gocyclo)
    • restapiUpload.go
    • Line 19: warning: cyclomatic complexity 30 of function handleAPIUploadThumbnail() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words