{"results":{"result":{"added-files":{"code-health":10.0,"old-code-health":0.0,"files":[{"file":"src/modules/views/editor/registry.spec.js","loc":194,"code-health":10.0},{"file":"src/modules/views/editor/routes.spec.jsx","loc":62,"code-health":10.0},{"file":"src/modules/drive/Toolbar/components/CreateDocumentItems.spec.jsx","loc":106,"code-health":10.0},{"file":"src/modules/views/editor/routes.tsx","loc":21,"code-health":10.0}]},"external-review-url":"https://github.com/linagora/twake-drive/pull/3932","old-code-health":9.796163094232973,"modified-files":{"code-health":9.845866191987643,"old-code-health":9.796163094232973,"files":[{"file":"src/modules/navigation/hooks/helpers.spec.js","loc":721,"old-loc":650,"code-health":10.0,"old-code-health":10.0},{"file":"src/modules/navigation/hooks/helpers.ts","loc":229,"old-loc":254,"code-health":9.053947915923395,"old-code-health":8.977641209366904},{"file":"src/modules/views/SharedDrive/FilesViewerSharedDriveRootFile.jsx","loc":94,"old-loc":79,"code-health":10.0,"old-code-health":10.0},{"file":"src/modules/views/SharedDrive/FilesViewerSharedDriveRootFile.spec.jsx","loc":165,"old-loc":118,"code-health":10.0,"old-code-health":10.0},{"file":"src/modules/navigation/AppRoute.jsx","loc":281,"old-loc":290,"code-health":10.0,"old-code-health":10.0},{"file":"src/modules/navigation/hooks/useFileLink.tsx","loc":150,"old-loc":155,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"src/modules/drive/Toolbar/components/CreateDocumentItems.jsx","loc":69,"old-loc":66,"code-health":10.0,"old-code-health":9.6882083290695}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"3932","analysis-time":"2026-09-11T19:47:04Z","negative-impact-count":0,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":1,"commits":["6ba143162cfa44336f04c8801afdbd79ccab2040","5dd7777a25e5bd9f249ef918e647cf8b8e8552ea","083e6af38cc98c2c6a0f9e577527d7784824dd69","03993ce00d4e62487ebad23a4d795048d46508be","55b4556370a2d6e23ef66b9c2fde3296deadb9ca","5390d7916218bd508aecd8f0b8d640387f97e5f5","50d9c8056336012c63d8bfb48c42c07fe82924a0","0d9f545a2df7c7ccb0643afa88e0d1a606258073","c5f1f7fcb9fa193438d71fecb8ab3c4b562e1db6"],"is-negative-review":false,"negative-findings":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"positive-impact-count":2,"repo":"twake-drive","code-health":9.874084762001377,"version":"3.0","authors":["Crash--"],"directives":{"added":[],"removed":[]},"positive-findings":{"number-of-types":1,"number-of-files-touched":2,"findings":[{"method":"computePath","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the TypeScript language is a cyclomatic complexity lower than 9.","name":"Complex Method","file":"src/modules/navigation/hooks/helpers.ts","change-level":"improvement","is-hotspot?":false,"line":169,"what-changed":"computePath decreases in cyclomatic complexity from 38 to 35, threshold = 9","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"improved"},{"method":"CreateDocumentItems","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the React language is a cyclomatic complexity lower than 10.","name":"Complex Method","file":"src/modules/drive/Toolbar/components/CreateDocumentItems.jsx","change-level":"improvement","is-hotspot?":false,"line":15,"what-changed":"CreateDocumentItems is no longer above the threshold for cyclomatic complexity","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"fixed"}]},"notices":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"external-review-provider":"GitHub"},"analysistime":"2026-09-11T19:47:03.000Z","project-name":"twake-drive","repository":"https://github.com/linagora/twake-drive.git"}}