{"results":{"result":{"added-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-url":"https://github.com/linagora/tmail-flutter/pull/4451","old-code-health":8.018694480360654,"modified-files":{"code-health":8.068199306608573,"old-code-health":8.018694480360654,"files":[{"file":"lib/features/mailbox_dashboard/presentation/controller/advanced_filter_controller.dart","loc":587,"old-loc":586,"code-health":10.0,"old-code-health":10.0},{"file":"lib/features/mailbox_dashboard/presentation/controller/mailbox_dashboard_controller.dart","loc":3170,"old-loc":3170,"code-health":6.660906512860437,"old-code-health":6.660906512860437},{"file":"lib/features/mailbox_dashboard/presentation/controller/search_controller.dart","loc":244,"old-loc":241,"code-health":10.0,"old-code-health":10.0},{"file":"lib/features/mailbox_dashboard/presentation/extensions/select_search_filter_action_extension.dart","loc":60,"old-loc":61,"code-health":10.0,"old-code-health":10.0},{"file":"lib/features/mailbox_dashboard/presentation/mailbox_dashboard_view_web.dart","loc":878,"old-loc":879,"code-health":6.755495994056148,"old-code-health":6.755495994056148},{"file":"lib/features/mailbox_dashboard/presentation/model/search/search_email_filter.dart","loc":265,"old-loc":252,"code-health":10.0,"old-code-health":10.0},{"file":"lib/features/mailbox_dashboard/presentation/widgets/advanced_search/advanced_search_filter_form_bottom_view.dart","loc":160,"old-loc":160,"code-health":10.0,"old-code-health":10.0},{"file":"lib/features/search/email/presentation/extension/update_search_filter_extension.dart","loc":13,"old-loc":65,"code-health":10.0,"old-code-health":9.6882083290695},{"file":"lib/features/search/email/presentation/search_email_controller.dart","loc":1090,"old-loc":1087,"code-health":8.545379580978913,"old-code-health":8.545379580978913},{"file":"lib/features/search/email/presentation/search_email_view.dart","loc":781,"old-loc":783,"code-health":8.813403505116774,"old-code-health":8.813403505116774},{"file":"lib/main/localizations/app_localizations.dart","loc":4987,"old-loc":4987,"code-health":8.545379580978913,"old-code-health":8.545379580978913},{"file":"test/features/search/search_email_filter_test.dart","loc":526,"old-loc":153,"code-health":10.0,"old-code-health":10.0},{"file":"test/features/search/verify_before_time_in_search_email_filter_test.dart","loc":1054,"old-loc":1050,"code-health":6.690924517213949,"old-code-health":6.690924517213949}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"4451","analysis-time":"2026-04-24T04:43:28Z","negative-impact-count":0,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":2,"commits":["8cd75a88597e77b4b08a86f158af00332b82f937","12cdc13ea248fa95b09d01a2522c25f1ff5bd564","396614aea66f72e7f6304ce4a60b537348464d28","72d07b3a66f32208600e7a7149108196f46aa681"],"is-negative-review":false,"negative-findings":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"positive-impact-count":2,"repo":"tmail-flutter","code-health":8.068199306608573,"version":"3.0","authors":["dab246"],"directives":{"added":[],"removed":[]},"positive-findings":{"number-of-types":2,"number-of-files-touched":2,"findings":[{"method":"deleteQuickSearchFilter","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the Dart language is a cyclomatic complexity lower than 9.","name":"Complex Method","file":"lib/features/search/email/presentation/extension/update_search_filter_extension.dart","change-level":"improvement","is-hotspot?":false,"line":11,"what-changed":"deleteQuickSearchFilter 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":"main","why-it-occurs":"Overly long functions make the code harder to read. The recommended maximum function length for the Dart language is 70 lines of code. Severity: Brain Method - Complex Method - Long Method.","name":"Large Method","file":"test/features/search/verify_before_time_in_search_email_filter_test.dart","change-level":"improvement","is-hotspot?":false,"line":192,"what-changed":"main decreases from 949 to 871 lines of code, threshold = 70","how-to-fix":"We recommend to be careful here -- just splitting long functions don't necessarily make the code easier to read. Instead, look for natural chunks inside the functions that expresses a specific task or concern. Often, such concerns are indicated by a Code Comment followed by an if-statement. Use the [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html) refactoring to encapsulate that concern.","change-type":"improved"}]},"notices":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"external-review-provider":"GitHub"},"analysistime":"2026-04-24T04:43:28.000Z","project-name":"james-project","repository":"https://github.com/linagora/tmail-flutter.git"}}