{"results":{"result":{"added-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-url":"https://github.com/BrighterCommand/Brighter/pull/4132","old-code-health":9.579634278076435,"modified-files":{"code-health":9.04682263514184,"old-code-health":9.579634278076435,"files":[{"file":"src/Paramore.Brighter/Transforms/Transformers/CloudEventsTransformer.cs","loc":260,"old-loc":243,"code-health":8.95517096544394,"old-code-health":9.536386775820924},{"file":"src/Paramore.Brighter/Transforms/Attributes/CloudEventsAttribute.cs","loc":25,"old-loc":25,"code-health":10.0,"old-code-health":10.0}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"4132","analysis-time":"2026-05-13T22:09:43Z","negative-impact-count":1,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":0,"commits":["677f7535debfc0b8590d92a85e3cf51e37cae34e","4bea62bc3b83575c353dc942bc59731a6f685f6b","2db9f0164e313656f0b2b60fab29a0f50c352fa3","c2e2644838065d561cff923e4ff54e13fae91518","05d230102efb7deb2d1858bd9b6eea1d1f4b11b2","36a86cfe8380600934e3937dfb4b7ba89c5dae7e","3fb3f47c8c9197c19490b9f2d365caddbb01fe05","e195a69fadba985f63cf52498b5a129c0875e645","ad6588bfd7683cd433f1f8b7252da80c674901ad"],"is-negative-review":true,"negative-findings":{"number-of-types":1,"number-of-files-touched":1,"findings":[{"why-it-occurs":"Overall Code Complexity is measured by the mean cyclomatic complexity across all functions in the file. The lower the number, the better.\n\nCyclomatic complexity is a function level metric that measures the number of logical branches (if-else, loops, etc.). Cyclomatic complexity is a rough complexity measure, but useful as a way of estimating the minimum number of unit tests you would need. As such, prefer functions with low cyclomatic complexity (2-3 branches).","name":"Overall Code Complexity","file":"src/Paramore.Brighter/Transforms/Transformers/CloudEventsTransformer.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"what-changed":"This module has a mean cyclomatic complexity of 4.18 across 11 functions. The mean complexity threshold is 4","how-to-fix":"You address the overall cyclomatic complexity by a) modularizing the code, and b) abstract away the complexity. Let's look at some examples:\n\nModularizing the Code: Do an X-Ray and inspect the local hotspots. Are there any complex conditional expressions? If yes, then do a [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring. Extract the conditional logic into a separate function and put a good name on that function. This clarifies the intent and makes the original function easier to read. Repeat until all complex conditional expressions have been simplified.\n\n","change-type":"introduced"}]},"positive-impact-count":0,"repo":"Brighter","code-health":9.04682263514184,"version":"3.0","authors":["Ian Cooper"],"directives":{"added":[],"removed":[]},"positive-findings":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"notices":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"external-review-provider":"GitHub"},"analysistime":"2026-05-13T22:09:42.000Z","project-name":"Brighter","repository":"https://github.com/BrighterCommand/Brighter.git"}}