{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"VarCloner.doClone (cyclomatic 55): VarCloner.doClone has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Cloner/VarCloner.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5eee6dc91abf9ee0003222a0fb1df3436a2bca98bf123b1a66b6757e98055f"}},{"ruleId":"D1","level":"warning","message":{"text":"HtmlDumper.style (cyclomatic 45): HtmlDumper.style has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/HtmlDumper.php"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2c81c039a2ddd73ae1ba6dc3d2c7b3c217670a79d6ffeda57fbe62c2dd3db1"}},{"ruleId":"D1","level":"warning","message":{"text":"CliDumper.style (cyclomatic 32): CliDumper.style has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/CliDumper.php"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5df7811047c3087700d677466866c49c8d92b8c2d8719546bb3ea738d40dd5"}},{"ruleId":"D1","level":"warning","message":{"text":"ExceptionCaster.castFrameStub (cyclomatic 31): ExceptionCaster.castFrameStub has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ExceptionCaster.php"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9594b44e8009942175dcfe2fbd97597e04610f95df5a6c336e7de245209268"}},{"ruleId":"D1","level":"warning","message":{"text":"Data.dumpItem (cyclomatic 31): Data.dumpItem has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Cloner/Data.php"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"317473a5b0a4a4e3709427071226680a04a97db00dc8d741313cd763d1142d4c"}},{"ruleId":"D1","level":"warning","message":{"text":"CliDumper.dumpString (cyclomatic 28): CliDumper.dumpString has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/CliDumper.php"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"88221c4fd79aa37173821e5afe7ed5ba40c871d37afc9ff8bc54ad1a221c1bee"}},{"ruleId":"D1","level":"warning","message":{"text":"SourceContextProvider.getContext (cyclomatic 25): SourceContextProvider.getContext has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/ContextProvider/SourceContextProvider.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac611729b0050c5511578faee1c0f51e34f4db3905f9809902da6d11ffc155e4"}},{"ruleId":"D1","level":"warning","message":{"text":"ExceptionCaster.castTraceStub (cyclomatic 22): ExceptionCaster.castTraceStub has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ExceptionCaster.php"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"262fb8758a7b3caeb7138f040401e800b6d7d2fbb3a8542f5978636b4f70f5e5"}},{"ruleId":"D1","level":"warning","message":{"text":"CliDumper.dumpKey (cyclomatic 22): CliDumper.dumpKey has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/CliDumper.php"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"3317324fbfe6172edb68407ebd2a06b2ba26ff14177a1097effd8ba8c4bdba2a"}},{"ruleId":"D1","level":"warning","message":{"text":"Caster.filter (cyclomatic 21): Caster.filter has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/Caster.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d8bfde0a0984f172d428352d13dcd9a722bd41e9613a5a3e06dde9e552e551"}},{"ruleId":"D1","level":"warning","message":{"text":"ExceptionCaster.extractSource (cyclomatic 21): ExceptionCaster.extractSource has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ExceptionCaster.php"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04a257079e3f688d946fe3b2cfd9f87ee5bcb7ce9022ed508cf44525547d946"}},{"ruleId":"D1","level":"warning","message":{"text":"ReflectionCaster.castFunctionAbstract (cyclomatic 21): ReflectionCaster.castFunctionAbstract has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ReflectionCaster.php"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9137518e866b4bc246df476e58f1cc6e31bcc324a481d39fe0d72651afad54"}},{"ruleId":"D1","level":"warning","message":{"text":"CliDumper.enterHash (cyclomatic 21): CliDumper.enterHash has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/CliDumper.php"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7017f636cf50906d9a92c11c08e0d16697f55319df55f63c21fad3b9f2f4238"}},{"ruleId":"D1","level":"warning","message":{"text":"Caster.castObject (cyclomatic 20): Caster.castObject has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/Caster.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d785d5debba4332b9d7bfaa083879bd273f385df33db95623fdb4c9004881c1a"}},{"ruleId":"D1","level":"warning","message":{"text":"ClassStub.__construct (cyclomatic 20): ClassStub.__construct has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ClassStub.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"521abd8fb2db970df452f32bae59442a34b3bb1fa5c3668ab5d9c18eee38b8fe"}},{"ruleId":"D1","level":"warning","message":{"text":"ReflectionCaster.getSignature (cyclomatic 20): ReflectionCaster.getSignature has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ReflectionCaster.php"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba14df7fe656da6ece67874fbc208c76848a6a02069abf4c242327fd8b48f2e"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisCaster.getRedisOptions (cyclomatic 19): RedisCaster.getRedisOptions has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/RedisCaster.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2e432fafae6041a4d8c2a6a0f2c9677c99dd190f7ad007ce6cae41be20f3a1"}},{"ruleId":"D1","level":"warning","message":{"text":"CliDumper.supportsColors (cyclomatic 17): CliDumper.supportsColors has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/CliDumper.php"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"151b220e624089871563fb665315e35566da1a0515a1088ebddd5031ffeeeb83"}},{"ruleId":"D2","level":"warning","message":{"text":"VarCloner.doClone (cognitive 140): VarCloner.doClone has cognitive complexity 140 (threshold 15). Drivers by points: if/else 32 (114 pts), boolean chains 13, ternaries 2 (7 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 90). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Cloner/VarCloner.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4774a4dc130fbbfe16086ba6d9c83743ffc72402cd92032a5cb5a96ac4c3aa6"}},{"ruleId":"D2","level":"warning","message":{"text":"ExceptionCaster.castFrameStub (cognitive 105): ExceptionCaster.castFrameStub has cognitive complexity 105 (threshold 15). Drivers by points: if/else 20 (64 pts), ternaries 6 (36 pts), boolean chains 4, loops 1 (nesting depth added 74). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ExceptionCaster.php"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89adbf06b0c888cafcfb249878b6752d9471f57b47673b9ad0e5bd7c48c62d5"}},{"ruleId":"D2","level":"warning","message":{"text":"CliDumper.dumpString (cognitive 67): CliDumper.dumpString has cognitive complexity 67 (threshold 15). Drivers by points: if/else 22 (56 pts), boolean chains 5, ternaries 2 (4 pts), loops 1 (2 pts) (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/CliDumper.php"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"520fe24cbe51e0fafe18bf6e4f590420ea422819e2484bd5d72e331527d19a1a"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceContextProvider.getContext (cognitive 65): SourceContextProvider.getContext has cognitive complexity 65 (threshold 15). Drivers by points: ternaries 5 (25 pts), if/else 8 (22 pts), loops 3 (11 pts), boolean chains 7 (nesting depth added 42). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/ContextProvider/SourceContextProvider.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d4f30246da7f427acd5d8746b456eaab1f4573103f7881b9ac08f90a7b330c"}},{"ruleId":"D2","level":"warning","message":{"text":"Data.dumpItem (cognitive 55): Data.dumpItem has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (35 pts), ternaries 4 (13 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Cloner/Data.php"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"5601614ba0df2a5055e1a09b4b145704c49d278c715cce9ef00abb9855a276de"}},{"ruleId":"D2","level":"warning","message":{"text":"HtmlDumper.style (cognitive 51): HtmlDumper.style has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (25 pts), ternaries 8 (13 pts), boolean chains 12, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/HtmlDumper.php"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6237574fd32979b7d9e0af9d2469f74a9864fb9f463357751c06846d6e4912d"}},{"ruleId":"D2","level":"warning","message":{"text":"CliDumper.dumpKey (cognitive 47): CliDumper.dumpKey has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (31 pts), ternaries 3 (9 pts), match/switch 2 (6 pts), boolean chains 1 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/CliDumper.php"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db673ec7a57493338254e33f589525663ed9f13d4a656a1716345d6fd26e8b6"}},{"ruleId":"D2","level":"warning","message":{"text":"CliDumper.style (cognitive 46): CliDumper.style has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 13, ternaries 3 (4 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/CliDumper.php"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7d457f97a2aea66983e78fb8da3feca2aecf658dcd960e8438bea2a2bee5bd"}},{"ruleId":"D2","level":"warning","message":{"text":"ExceptionCaster.castTraceStub (cognitive 41): ExceptionCaster.castTraceStub has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (24 pts), ternaries 6 (10 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ExceptionCaster.php"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f398b9d51813128d55f25e3e243fd14207e58460a8d35d8fb931af2d17f7ae"}},{"ruleId":"D2","level":"warning","message":{"text":"ExceptionCaster.extractSource (cognitive 40): ExceptionCaster.extractSource has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 4 (10 pts), loops 4 (5 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ExceptionCaster.php"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a84be952cf9caeddbb957b0047cb3ea1a08c54aae74ccdbf7f43ae42413e65"}},{"ruleId":"D2","level":"warning","message":{"text":"ReflectionCaster.getSignature (cognitive 39): ReflectionCaster.getSignature has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (22 pts), ternaries 4 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ReflectionCaster.php"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"caabb741c610db3199c51920328d871e31feeaa7ee25de011d61ebbf70366460"}},{"ruleId":"D2","level":"warning","message":{"text":"Caster.castObject (cognitive 33): Caster.castObject has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 3 (7 pts), boolean chains 4, error handling 1 (2 pts), ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/Caster.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fa54a9cfa458e79ec4abd309a607374a4bbf6920dc9b65c99e9e1af73c7507"}},{"ruleId":"D2","level":"warning","message":{"text":"ReflectionCaster.castFunctionAbstract (cognitive 29): ReflectionCaster.castFunctionAbstract has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 6, ternaries 3 (6 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ReflectionCaster.php"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"4507ab9816e7a3c310bc42d068c4d6acf0555ccf14ee7ff27fcafcc2a64cdae2"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisCaster.getRedisOptions (cognitive 27): RedisCaster.getRedisOptions has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 8 (11 pts), if/else 6 (10 pts), loops 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/RedisCaster.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bf0f7620c8874b5d5a6a925e94fe087fdf9f438d6f83a435e1dd440a32cab0"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassStub.__construct (cognitive 24): ClassStub.__construct has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 4 (7 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ClassStub.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8321336c9210216617f605691062db2240e7e0b2e6f50c384e28f3fe1a84df84"}},{"ruleId":"D2","level":"warning","message":{"text":"CliDumper.enterHash (cognitive 24): CliDumper.enterHash has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (12 pts), boolean chains 7, if/else 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/CliDumper.php"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93c34f348d67eae42d6a14e6e8b40fccb08fdfc413e0d0eeb0ed8ee061583bf"}},{"ruleId":"D2","level":"warning","message":{"text":"Caster.filter (cognitive 22): Caster.filter has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 8, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/Caster.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2ec9b7713e65472ac319ff1ee92742c1bcde25381c959f16ad4e7cbfc48059"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractCloner.castObject (cognitive 22): AbstractCloner.castObject has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 4 (8 pts), ternaries 2 (4 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Cloner/AbstractCloner.php"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b0390e674bc01aaad9a8c1dee0400bc6cb024938bf0e733ae5a9bf20a38545"}},{"ruleId":"D2","level":"warning","message":{"text":"ExceptionCaster.filterExceptionArray (cognitive 21): ExceptionCaster.filterExceptionArray has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ExceptionCaster.php"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a380abfd0d903157eb18f09b03858bdeaf4e4a7fe57b224926ec9ec9e499f844"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkStub.getComposerRoot (cognitive 20): LinkStub.getComposerRoot has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/LinkStub.php"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b914e97cf946f4d2c9c6087a484f48dfed9bac599e0172b96e69090d4423728a"}},{"ruleId":"D2","level":"warning","message":{"text":"Data.getValue (cognitive 20): Data.getValue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Cloner/Data.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c29ac4533230c3a86d78ba08e539f622cc8126369a5ef32104cd6c46a27cd39"}},{"ruleId":"D2","level":"warning","message":{"text":"DateCaster.formatInterval (cognitive 19): DateCaster.formatInterval has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (10 pts), boolean chains 7, if/else 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/DateCaster.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6664b4e76f6b764b33a3850feafd55dfd65345e07b51d31abb712cf89eda63fb"}},{"ruleId":"D2","level":"warning","message":{"text":"ReflectionCaster.castParameter (cognitive 17): ReflectionCaster.castParameter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ReflectionCaster.php"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"c279dbeb436e3eba923135b1522f143e1b6c5e736c16e6c0e3905c1659c67d11"}},{"ruleId":"D2","level":"warning","message":{"text":"PdoCaster.castPdo (cognitive 16): PdoCaster.castPdo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 1 (2 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/PdoCaster.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf91307f8a402d4f256129f5d603c1890a83b7c3d77396e9f984c5fb1c0f9bee"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractDumper.utf8Encode (cognitive 16): AbstractDumper.utf8Encode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/AbstractDumper.php"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e2f24b206029451d0a5927ddbab68eec64ba379b38a6b98ec0a389f6a0a1ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HtmlDumper.getDumpHeader: MethodTooLong \u2014 getDumpHeader runs 489 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 389 over it, 4.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/HtmlDumper.php"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4580fdf3f82a462ee9732fb46749f68ca6c74c694971a09d5c71cf50eacf2ae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VarCloner.doClone: MethodTooLong \u2014 doClone runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Cloner/VarCloner.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea8be5d26d2a7e5efb6a9b24d0c62f3c12261a74d0340dac2f0d443c5f9eb17"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Dumper/HtmlDumper.php: FileTooLong \u2014 725 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: HtmlDumper (22-1103). The bar is 500 significant lines; this is 225 over it, 1.45\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dumper/HtmlDumper.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50720357853f14dac7209d0db085fc3bd30d5d41da8a2c01267bb38b0971dc39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Caster/SymfonyCaster.php:106-113 | Caster/SymfonyCaster.php:118-125 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/SymfonyCaster.php"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44f28d90e444a08ca7bd62976df6f3401e91817d5cd0764d32602675f51514d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Caster/ConstStub.php:39-50 | Caster/AmqpCaster.php:200-212 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ConstStub.php"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4238b0b1dc5926285b80dac72dfeaa0b70bbe5228ee1ef13a33dfa8b74028b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Data (LCOM4 5): Data\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Cloner/Data.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ee2e8fc7cf28eb6ab89c3578ad0c356fee363d7259813fe6efbb072a86251b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLinkStubWithNonHttpUrl: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Caster/StubCasterTest.php"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d6843bba5750d5188d9d19500e999c2736db6f182e6af6f81857eb60e3419c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Caster/ExceptionCaster.php: Caster/ExceptionCaster.php changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ExceptionCaster.castTraceStub at line 116. 2 of those changes were fix/bug commits, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 11:33:36 \u002B01:00\u0027 --until=\u00272026-11-12 11:33:36 \u002B01:00\u0027 --full-history --no-merges -- Caster/ExceptionCaster.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ExceptionCaster.php"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5745e205285dea5384947b40fcb3bd3a13e6e5ff8fdb363756b9c2b395bee5bd"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 3 significant file(s) lose their only recent owner: Caster/SplCaster.php, Caster/LinkStub.php, Command/Descriptor/CliDescriptor.php. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bfb28f8176ae10f67d8c4ebfc36c57a92e7a5bc9ab84f0240cf50166042ca1b2"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060composer.json\u0060 makes this repository a deployable product (line 41)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"composer.json"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"341d559fa0b97c7420a17eab8c55e02816862ad49796a0687e6d050b9991a5e5"}},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c2fd07f5833db3b9def7fb4c9feb2ea993598f018ecb4e4fc9e858f13783e8be"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8edd67170e15d43a32dd3b7a79e7bc8c03ca7f975d08deaa1866d0983d36eaec"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 4 of 33 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 33 of the 76 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: Caster/IntlCaster.php, Caster/AmqpCaster.php, Caster/FFICaster.php, Caster/RdKafkaCaster.php. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/IntlCaster.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bda2dd35f69bdc55775001d3b776414c6a4bf9458a38b1ade941cf5968b1c1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/AmqpCaster.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19133af1a9422b20ca696f75614abde6feb2d557cd07e87e93a30bcdfcd2a274"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/FFICaster.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f721531c85473ed8cf2b5b449c6587e77666781b811c89896c067273efdbf343"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/RdKafkaCaster.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7172cb473eaf3b06f5410932343bdca11d0692dea1203329f9da6a1f144e8487"}},{"ruleId":"M1","level":"note","message":{"text":"Thin README: The root README is 65 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, in the README and in the repository documents it links, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise \u2014 or with no heading at all \u2014 is not seen and this row may understate what the document covers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88b11295dc6ac6146c259ace6043143959f96dc98628f8c8578b6c5f95b8149"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 1 application file(s) sit at the repository root beside the build and tooling files (\u0060VarDumper.php\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add phpstan or psalm (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/PdoCaster.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfbecd5ebbe40fdd5b5a18a6a8b68080c1ae48c04e211dd9f54c31c3c2c5ce0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/ReflectionCaster.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6abe68befa68a5267294539a45fd04fec764e52d150874062fa7f8910a8a4f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/SplCaster.php"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a810064841ec1f2e54addf31220d815582c009054256cf816798ae14df096d1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/SplCaster.php"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d274281dfb9ad157e2f422065345a3c7157a122f662025ff8fab46ef1e2c619"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/SplCaster.php"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"33217bd060b0fbc88f0a4a2ac745cf56a36b5aa813b51959525f55ba583668f0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Error)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/XmlReaderCaster.php"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f72c0274912c8370058bc5a47593953f7a9773605e1ef153f394e4c14f97e0"}},{"ruleId":"X5","level":"note","message":{"text":"PHP static analysis does not check null everywhere: This repository commits no PHPStan or Psalm configuration (\u0060phpstan.neon[.dist]\u0060, \u0060phpstan.dist.neon\u0060, \u0060psalm.xml[.dist]\u0060, or one a composer.json script names with \u0060--configuration\u0060), so nothing checks null: a \u0060?Customer\u0060 reaches \u0060-\u003Ename()\u0060 silently and throws \u0060Error: Call to a member function name() on null\u0060 the first time it is null. If the build passes a level on a command line instead, put it in a committed configuration \u2014 this check reads configuration, and configuration is all it can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4ee877508ebc333ebff2765634874753d7fd67f71ea749a6c333792a59b461d7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extractMetadata\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Caster/RdKafkaCaster.php"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4208b54d693fa7983392f0c8d423f9905765ba1cec67fa8851fd6dcf4d63c44"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-918","guid":"2e9b9091-5a0f-dc57-b644-7ad04bd56e64","name":"Server-Side Request Forgery (SSRF)","shortDescription":{"text":"Server-Side Request Forgery (SSRF)"},"helpUri":"https://cwe.mitre.org/data/definitions/918.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":2,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}