{"results":{"result":{"added-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-url":"https://github.com/linagora/twake-drive/pull/3785","old-code-health":8.549732483257216,"modified-files":{"code-health":8.415444833207058,"old-code-health":8.549732483257216,"files":[{"file":"src/modules/upload/index.spec.js","loc":844,"old-loc":717,"code-health":8.031638343271364,"old-code-health":8.545379580978913},{"file":"src/modules/upload/index.js","loc":575,"old-loc":522,"code-health":8.785903643346572,"old-code-health":8.372344312430625},{"file":"src/modules/views/Upload/UploadUtils.ts","loc":70,"old-loc":66,"code-health":10.0,"old-code-health":10.0}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"3785","analysis-time":"2026-04-07T04:15:55Z","negative-impact-count":0,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":1,"commits":["4978831bdd21a972abdde42a67c9c5ca7a621fdf","9192bba55d05fc7b67c52c0521123290d1b98a3b","6dba0338c43d0784a7ac57e5d63d432c46cbbdf2","d6a166fbc228a26a2cb7d0f90e21d817c015df15","fa56779a6dd847190906b8700dc347e95c39b785","133e44ba2b48210b1ee9cdc9347858cd266110ea"],"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":8.415444833207058,"version":"3.0","authors":["Crash--"],"directives":{"added":[],"removed":[]},"positive-findings":{"number-of-types":1,"number-of-files-touched":1,"findings":[{"method":"processNextFile","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the JavaScript language is a cyclomatic complexity lower than 9.","name":"Complex Method","file":"src/modules/upload/index.js","change-level":"improvement","is-hotspot?":true,"line":179,"what-changed":"processNextFile 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-04-07T04:15:54.000Z","project-name":"twake-drive","repository":"https://github.com/linagora/twake-drive.git"}}