{"results":{"result":{"added-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-url":"https://github.com/BrighterCommand/Brighter/pull/4081","old-code-health":8.873971521363842,"modified-files":{"code-health":9.527108848761022,"old-code-health":8.873971521363842,"files":[{"file":"src/Paramore.Brighter.ServiceActivator/Consumer.cs","loc":92,"old-loc":82,"code-health":10.0,"old-code-health":10.0},{"file":"src/Paramore.Brighter.ServiceActivator/Dispatcher.cs","loc":311,"old-loc":281,"code-health":9.387218218812514,"old-code-health":8.545379580978913}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"4081","analysis-time":"2026-04-26T16:48:44Z","negative-impact-count":0,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":0,"commits":["d15a53205c4b337c16383db71dbed056e50f5653","c9beb8cde3f1ba1c9e7c2ab6c25956264e7e86e1","a4e4e62999924ec6b5a4ecb2103cd2be6b7d21ab","8a1d90dc531bf9ace2cdbc4a970f603e54783cce","f79b54d0eb4fc55e491c264c13fab326e4677f55"],"is-negative-review":false,"negative-findings":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"positive-impact-count":2,"repo":"Brighter","code-health":9.527108848761022,"version":"3.0","authors":["Tom Longhurst"],"directives":{"added":[],"removed":[]},"positive-findings":{"number-of-types":2,"number-of-files-touched":1,"findings":[{"method":"Start","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the C# language is a cyclomatic complexity lower than 9.","name":"Complex Method","file":"src/Paramore.Brighter.ServiceActivator/Dispatcher.cs","change-level":"improvement","is-hotspot?":false,"line":283,"what-changed":"Start 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":"Start","why-it-occurs":"Deep nested logic means that you have control structures like if-statements or loops inside other control structures. Deep nested logic increases the cognitive load on the programmer reading the code. The human working memory has a maximum capacity of 3-4 items; beyond that threshold, we struggle with keeping things in our head. Consequently, deep nested logic has a strong correlation to defects and accounts for roughly 20% of all programming mistakes.\n\nCodeScene measures the maximum nesting depth inside each function. The deeper the nesting, the lower the code health. The threshold for the C# language is  levels of nesting.","name":"Deep, Nested Complexity","file":"src/Paramore.Brighter.ServiceActivator/Dispatcher.cs","change-level":"improvement","is-hotspot?":false,"line":283,"what-changed":"Start is no longer above the threshold for nested complexity depth","how-to-fix":"Occassionally, it's possible to get rid of the nested logic by [Replacing Conditionals with Guard Clauses](https://refactoring.com/catalog/replaceNestedConditionalWithGuardClauses.html).\n\nAnother viable strategy is to identify smaller building blocks inside the nested chunks of logic and extract those responsibilities into smaller, cohesive, and well-named functions. The [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html) refactoring explains the steps.","change-type":"fixed"}]},"notices":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"external-review-provider":"GitHub"},"analysistime":"2026-04-26T16:48:43.000Z","project-name":"Brighter","repository":"https://github.com/BrighterCommand/Brighter.git"}}