{"results":{"result":{"added-files":{"code-health":10.0,"old-code-health":0.0,"files":[{"file":"src/modules/shareddrives/hooks/useQueryMultipleSharedDriveFolders.spec.jsx","loc":70,"code-health":10.0},{"file":"src/modules/views/Modal/MoveSharedDriveFilesView.spec.jsx","loc":105,"code-health":10.0},{"file":"src/modules/views/Nextcloud/NextcloudMoveView.spec.jsx","loc":87,"code-health":10.0},{"file":"e2e/tests/z-shared-drive-move.spec.ts","loc":79,"code-health":10.0},{"file":"src/modules/views/Modal/MoveFilesView.spec.jsx","loc":91,"code-health":10.0}]},"external-review-url":"https://github.com/linagora/twake-drive/pull/4207","old-code-health":9.444736019272586,"modified-files":{"code-health":9.511850360938215,"old-code-health":9.444736019272586,"files":[{"file":"src/modules/shareddrives/hooks/useQueryMultipleSharedDriveFolders.tsx","loc":67,"old-loc":57,"code-health":10.0,"old-code-health":10.0},{"file":"src/modules/move/MoveModal.spec.jsx","loc":794,"old-loc":579,"code-health":10.0,"old-code-health":10.0},{"file":"src/modules/move/MoveOutsideSharedFolderModal.jsx","loc":81,"old-loc":79,"code-health":9.608927141875917,"old-code-health":9.6882083290695},{"file":"src/modules/views/Modal/MoveSharedDriveFilesView.jsx","loc":48,"old-loc":39,"code-health":10.0,"old-code-health":10.0},{"file":"src/modules/move/MoveModal.jsx","loc":303,"old-loc":285,"code-health":8.649849356915432,"old-code-health":8.649849356915432},{"file":"src/modules/move/helpers.js","loc":211,"old-loc":204,"code-health":8.598774368581582,"old-code-health":8.598774368581582},{"file":"e2e/pages/FileViewerPage.ts","loc":47,"old-loc":25,"code-health":10.0,"old-code-health":10.0},{"file":"e2e/pages/MoveToPage.ts","loc":166,"old-loc":153,"code-health":9.387218218812514,"old-code-health":9.387218218812514}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"4207","analysis-time":"2026-09-21T10:24:40Z","negative-impact-count":0,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":0,"commits":["3412cee40404e56d64e252d391513530f5a36991","ff9962efbe9e0146e9aa411033d5b3bbaca0e1a5","5bc8102a9ba6d2af8bf5e1695adfca6c357629c2","f16ce343cf5077ab06d0233f58c79ed2e6387dfb","17025a4a2140b3cadfb744cefcd242a105401c0d"],"is-negative-review":false,"negative-findings":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"positive-impact-count":1,"repo":"twake-drive","code-health":9.609980023141421,"version":"3.0","authors":["doubleface"],"directives":{"added":[],"removed":[]},"positive-findings":{"number-of-types":1,"number-of-files-touched":1,"findings":[{"name":"Overall Code Complexity","file":"src/modules/move/helpers.js","change-type":"improved","change-level":"improvement","is-hotspot?":false,"why-it-occurs":"Overall Code Complexity is measured by the mean cyclomatic complexity across all functions in the file. The lower the number, the better.\n\nCyclomatic complexity is a function level metric that measures the number of logical branches (if-else, loops, etc.). Cyclomatic complexity is a rough complexity measure, but useful as a way of estimating the minimum number of unit tests you would need. As such, prefer functions with low cyclomatic complexity (2-3 branches).","how-to-fix":"You address the overall cyclomatic complexity by a) modularizing the code, and b) abstract away the complexity. Let's look at some examples:\n\nModularizing the Code: Do an X-Ray and inspect the local hotspots. Are there any complex conditional expressions? If yes, then do a [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring. Extract the conditional logic into a separate function and put a good name on that function. This clarifies the intent and makes the original function easier to read. Repeat until all complex conditional expressions have been simplified.\n\n","what-changed":"The mean cyclomatic complexity decreases from 4.39 to 4.37, threshold = 4"}]},"notices":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"external-review-provider":"GitHub"},"analysistime":"2026-09-21T10:24:40.000Z","project-name":"twake-drive","repository":"https://github.com/linagora/twake-drive.git"}}