{"results":{"result":{"added-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-url":"https://github.com/BrighterCommand/Brighter/pull/4180","old-code-health":8.01906845693752,"modified-files":{"code-health":7.870178004777339,"old-code-health":8.01906845693752,"files":[{"file":"src/Paramore.Brighter.MessagingGateway.Kafka/KafkaMessageProducer.cs","loc":292,"old-loc":267,"code-health":8.612182000040617,"old-code-health":8.747566364082143},{"file":"src/Paramore.Brighter.MessagingGateway.RMQ.Async/RmqMessageProducer.cs","loc":342,"old-loc":340,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"src/Paramore.Brighter.MessagingGateway.RMQ.Sync/RmqMessageProducer.cs","loc":167,"old-loc":165,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"src/Paramore.Brighter/InMemoryMessageProducer.cs","loc":141,"old-loc":90,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"src/Paramore.Brighter/OutboxProducerMediator.cs","loc":944,"old-loc":872,"code-health":6.560024665950569,"old-code-health":6.966247769888114},{"file":"src/Paramore.Brighter/CircuitBreaker/InMemoryOutboxCircuitBreaker.cs","loc":24,"old-loc":22,"code-health":10.0,"old-code-health":10.0},{"file":"src/Paramore.Brighter/Observability/BrighterTracer.cs","loc":719,"old-loc":684,"code-health":7.534418959981518,"old-code-health":7.534418959981518},{"file":"src/Paramore.Brighter.MessagingGateway.Kafka/KafkaMessagePublisher.cs","loc":57,"old-loc":48,"code-health":10.0,"old-code-health":10.0}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"4180","analysis-time":"2026-06-16T08:25:27Z","negative-impact-count":2,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":2,"commits":["d7c99751217039ec824d97797074fb25208b842f","d4dd4d793cf67b6574ae3d51d537aa23dd141a45","792b68e78178dcec3afe3de65186b64ec8017b96","199aa949af9356b01d368fa0dbdc6e5a6dde2ef8","5b96a2f4c9e8d6cf1c7e8e580fc860190229efc6","9717a4611f3d5fc591445427e6305054750d61c8","8b7181f95551926cd124d8e1d2849188dc6ee328","b8fceb3bc61881fa672ac0a3e28bc47691c96701","66775e3470092cf1c68763987395a2d03dd5fd9b","d8b9308036731106eda8ca3efa1ae97b9f1efdc2","0fe1d3bdd594ba064598fb5d2ac63836aa10a240","edc1983911c5a0f279c4edf1ed47e8f4e06641c4","677d490591821438fd482d69409b783388ec9930","9cf9f11ee7bb4788eb3bd5a5c3302ed3bf3a16c8","19f2caafdcda3b0c886219d62f06b35e65e61103","6b1b3b621799202a5783983d2f0f1c35b92847ee","d3aea68bf04d43e07d6f0075fbf2b40b9f4d9f7f","2acd2cf946d1c54695ff780602fd31ba1ab00631","68078ea668f1ca3787220c2de8fa89b399590296","98053c6bc5e510953f49af1f590ae7c5ea7a97fd","4d4dab9cbb07bd1d821036ee466c7231fd255049","e464602f6786d9bae9ba5d7bd5af00bcf292c409","cfdeb6d0f316110eb2be77fd0619633e422f859b","4130e09ca451cae8d67df3a38b3e73ab45ab18db","1c3441c4f85b4460b9cfabc92c156a09efff2027","bdb106104fb9dae51cd23f7296a58d4b3b0c0eb1","1a1a84fbfe12747f101e076954e30bb5ac9fb832","8cde31e905366bdf12ec28557d182aa64a64d93e","a11e35c305caffcf69c30d4727c4d643f92a833e","4b1ddea590e14d15121a322a2eaaa50381e478dc","af0501b35f67c2b21a96f11c50b0986ef8514768","021230a62e18b0e05a1e56caab785767ea7258f6","d264a6cea8a2ca0a60954df450244137a7dccc02","bd715f571c43aa8aacaf597a2a21131263c83dbe","152ce297cece0ae075482e9a284763b2bf65caa6","d4db2a324d62d290e616dd4da3336c60d26e3eaa","bb8ca2b3f4dcf491c3f503bb633d9bbc6294264f","1d9b031922c316927ee4fd900b02f9c13f1d982d","00084b2bed986a06cbeb3509be2930158f19b41d","186939086277888f2b27cbcb7b785210df15fec9","4ea703b1b7194028125a27789e620ed34b1101fe","e0e5c27374da00b867190f1080f5630ac70eac35","9eac614717be013f9e2fac8ba56539a69d891307","4e69ad1321b49ee7825b583607412e06c54b4b2e","d2e900e8a12b70cf12bdde589c93b749dcabd973","9dd348c70dcfb89149ea835db97a3f1eb6c1f727","4a885991a7039ad12649eb0e3eb77a0e3d8e8f8c","108f3a5db483b99664362fdafda9e813ae635912","9f54888ea37bf8204d2dff6da7a0cc08a994d4fa","5e51bcf032293600fe235c14c85bdc56359c5314","bc3ec91ce285ca332d529036a77567bb6515e015","1cd7db25181f16f49a3713de6fadc6d4b3a8ff46","f4db0b3c77cb4502f78e75644e2c493621148361","87ab7c90fc6f9bfb0caee3fd98a038bbaae42da9","9c2542e09af80f0104707ea086de85e3aafa8e42","9d7a9d9331b0bf5f2ed7f1dd35555250024a9062","54bbe17ea3fd1f70c6dd71fdc461386a8521c0c8","767b3273eadf1615bd63b8635579fd5d1085f70e","2b5d7601c60a842868b61c85de6076f22a086386","619d35400ee705353c4b34c20352f8049d910b72","bd696b11a4aea65ede57454b70a7276390f73c56","bb039711ba51c9c044ecfef38d175c220ddbbdec","1e297543a0a236f3af4ac0db4910fb1125face5c","2233fa536ef59c5a542911ee33d1c04086528e1c","97df62a7e4a5a6b34e321e837ad5c876ea26fefa","3604f76f75fd625ae0c22317967d39d50db6f571"],"is-negative-review":true,"negative-findings":{"number-of-types":2,"number-of-files-touched":2,"findings":[{"method":"PublishResults","why-it-occurs":"A Bumpy Road is a function that contains multiple chunks of nested conditional logic inside the same function. The deeper the nesting and the more bumps, the lower the code health.\n\nA bumpy code road represents a lack of encapsulation which becomes an obstacle to comprehension. In imperative languages there’s also an increased risk for feature entanglement, which leads to complex state management. CodeScene considers the following rules for the code health impact: 1) The deeper the nested conditional logic of each bump, the higher the tax on our working memory. 2) The more bumps inside a function, the more expensive it is to refactor as each bump represents a missing abstraction. 3) The larger each bump – that is, the more lines of code it spans – the harder it is to build up a mental model of the function. The nesting depth for what is considered a bump is  levels of conditionals.","name":"Bumpy Road Ahead","file":"src/Paramore.Brighter.MessagingGateway.Kafka/KafkaMessageProducer.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":370,"what-changed":"PublishResults has 2 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is 2 blocks per function","how-to-fix":"Bumpy Road implementations indicate a lack of encapsulation. Check out the detailed description of the [Bumpy Road code health issue](https://codescene.com/blog/bumpy-road-code-complexity-in-context/).\n\nA Bumpy Road often suggests that the function/method does too many things. The first refactoring step is to identify the different possible responsibilities of the function. Consider extracting those responsibilities into smaller, cohesive, and well-named functions. The [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html) refactoring is the primary response.","change-type":"introduced"},{"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/OutboxProducerMediator.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":true,"what-changed":"This module has a mean cyclomatic complexity of 4.12 across 33 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":7.870178004777339,"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-06-16T08:25:26.000Z","project-name":"Brighter","repository":"https://github.com/BrighterCommand/Brighter.git"}}