{"results":{"result":{"added-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-url":"https://github.com/linagora/twake-drive/pull/3786","old-code-health":8.582941355342529,"modified-files":{"code-health":8.617709612179114,"old-code-health":8.582941355342529,"files":[{"file":"src/modules/upload/index.js","loc":751,"old-loc":575,"code-health":9.011465636836428,"old-code-health":8.785903643346572},{"file":"src/modules/upload/Dropzone.jsx","loc":81,"old-loc":86,"code-health":10.0,"old-code-health":10.0},{"file":"src/modules/upload/DropzoneDnD.jsx","loc":117,"old-loc":117,"code-health":10.0,"old-code-health":10.0},{"file":"src/modules/upload/UploadQueue.jsx","loc":57,"old-loc":43,"code-health":10.0,"old-code-health":10.0},{"file":"src/modules/upload/index.spec.js","loc":1106,"old-loc":844,"code-health":8.031638343271364,"old-code-health":8.031638343271364}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"3786","analysis-time":"2026-04-07T05:46:48Z","negative-impact-count":0,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":1,"commits":["c1c5b739c62a4dffd1ce4277c73518ad866ae04c","6e66ad7d676f5e28aa098a1905f0d8e4c6b2bbf6","ac3f655dd9e5e92f82918ceb56b31f5781c580e7","59d2f768b15e718a8040c8afec868cafb84db582","ab6ea254f48d26f65f0a80893ea46c1c96a7c122","70fef8eec26924e7afab95edde4cf244c15ccf53","b725ca5c03d84ceacf937de642f5f6fb99650a76","31b166963b1457498417ac8270ea208fba96b04f","f2132dd1b8fe4f63873a5168f06eb0bf3608dadc","d21f35a81e66f45f93c7a5484f4be4fd3113e26f"],"is-negative-review":false,"negative-findings":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"positive-impact-count":3,"repo":"twake-drive","code-health":8.617709612179114,"version":"3.0","authors":["Crash--","Quentin Valmori","copilot-swe-agent[bot]"],"directives":{"added":[],"removed":[]},"positive-findings":{"number-of-types":2,"number-of-files-touched":1,"findings":[{"method":"queue","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":147,"what-changed":"queue 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"},{"method":"performUpload","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the JavaScript language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/modules/upload/index.js","change-level":"improvement","is-hotspot?":true,"line":230,"what-changed":"performUpload is no longer above the threshold for number of arguments","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"fixed"},{"method":"uploadDirectory","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the JavaScript language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/modules/upload/index.js","change-level":"improvement","is-hotspot?":true,"line":388,"what-changed":"uploadDirectory is no longer above the threshold for number of arguments","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"fixed"}]},"notices":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"external-review-provider":"GitHub"},"analysistime":"2026-04-07T05:46:48.000Z","project-name":"twake-drive","repository":"https://github.com/linagora/twake-drive.git"}}