{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"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":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"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":"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":"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":"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":"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":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"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":"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":"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":"uassetParse.CompressUassetValueNode (cyclomatic 84): uassetParse.CompressUassetValueNode has cyclomatic complexity 84 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: ModMaker/include/uassetParse.php holds 3 of the 14 methods over the threshold \u2014 including the worst \u2014 and 172 of the 439 points over it (39%), 2.2\u00D7 the next-largest file (ModMaker/include/coordinates.php at 79). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetParse.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6e662557c97313bc3fabe33ba6bf0a602f2a22d05780117dcc7c17e1be37a5"}},{"ruleId":"D1","level":"warning","message":{"text":"coordinates.UeTransformUnpack (cyclomatic 72): coordinates.UeTransformUnpack has cyclomatic complexity 72 (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":"ModMaker/include/coordinates.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a1e5f47ea98ebfa4588158158978f4a7796f6438256157979f8f3f4c3497ef"}},{"ruleId":"D1","level":"warning","message":{"text":"uassetParse.ParseUassetValueNode (cyclomatic 67): uassetParse.ParseUassetValueNode has cyclomatic complexity 67 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: ModMaker/include/uassetParse.php holds 3 of the 14 methods over the threshold \u2014 including the worst \u2014 and 172 of the 439 points over it (39%), 2.2\u00D7 the next-largest file (ModMaker/include/coordinates.php at 79). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetParse.php"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f349870ad67c79361072892e2e51283ee67e7e2c37f425430768895a07c4a31"}},{"ruleId":"D1","level":"warning","message":{"text":"uassetParse.SaveCompressedDecodedUasset (cyclomatic 66): uassetParse.SaveCompressedDecodedUasset has cyclomatic complexity 66 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: ModMaker/include/uassetParse.php holds 3 of the 14 methods over the threshold \u2014 including the worst \u2014 and 172 of the 439 points over it (39%), 2.2\u00D7 the next-largest file (ModMaker/include/coordinates.php at 79). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetParse.php"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"573972cabf4240557952b8d396072eed364bc1cef0ed676b12fadd7c61bb6e28"}},{"ruleId":"D1","level":"warning","message":{"text":"drawmap.DrawMap (cyclomatic 64): drawmap.DrawMap has cyclomatic complexity 64 (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":"ModMaker/include/drawmap.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf3c0bb7604ed34342b5d3594a285b46f79112a927bc3434bc0d01dcac6f8ee"}},{"ruleId":"D1","level":"warning","message":{"text":"imageSmoothArc_fast.imageSmoothArcDrawSegment (cyclomatic 63): imageSmoothArc_fast.imageSmoothArcDrawSegment has cyclomatic complexity 63 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/imageSmoothArc_fast.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c686553e5816a1a93a0b8caea4923958bb91e741cb98571c48554a4cb9465896"}},{"ruleId":"D1","level":"warning","message":{"text":"pjson_parse.GetPuzzleMap (cyclomatic 54): pjson_parse.GetPuzzleMap has cyclomatic complexity 54 (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":"ModMaker/include/pjson_parse.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10ebba0805afff0b7617d7a7678d2e1452fa3e84b8825eed0e12cdab41dc3f6"}},{"ruleId":"D1","level":"warning","message":{"text":"coordinates.UeTransformPackInto (cyclomatic 32): coordinates.UeTransformPackInto 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":"ModMaker/include/coordinates.php"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8b5f893f97b614a055c8b49e46cbba855e590c5fc989a7128f82d24b23138b"}},{"ruleId":"D1","level":"warning","message":{"text":"uassetHelper.AdjustAssetCoordinates (cyclomatic 28): uassetHelper.AdjustAssetCoordinates 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":"ModMaker/include/uassetHelper.php"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd92bfe9200d573c2dd6399c2b363bebcb2adcee3ee281bb012ff3dc2dfabe7b"}},{"ruleId":"D1","level":"warning","message":{"text":"drawmap.DrawSpawnMap (cyclomatic 27): drawmap.DrawSpawnMap has cyclomatic complexity 27 (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":"ModMaker/include/drawmap.php"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef32ddca3bfeeb542595f80d37c48c0e41d8b9740c103b21467a46465a2c31d"}},{"ruleId":"D1","level":"warning","message":{"text":"playerCard.CreateGenericStatCard (cyclomatic 27): playerCard.CreateGenericStatCard has cyclomatic complexity 27 (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":"ModMaker/include/playerCard.php"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"a243911b19268380f1e73bc22870b7309198315d8e3091a354fe72f862a8edf6"}},{"ruleId":"D1","level":"warning","message":{"text":"uassetHelper.EmbedUassetPuzzleMetadataFrom (cyclomatic 23): uassetHelper.EmbedUassetPuzzleMetadataFrom has cyclomatic complexity 23 (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":"ModMaker/include/uassetHelper.php"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"04628bb2a04154dab6238f9d7304f4e8412bad94a3df7b4e32b23f72798e38b8"}},{"ruleId":"D1","level":"warning","message":{"text":"vdfToJson.VdfToJson (cyclomatic 22): vdfToJson.VdfToJson 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":"ModMaker/include/vdfToJson.php"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f064192825a5d36db10625909530612f367b5f2cb74553d940e08bd7f46f8515"}},{"ruleId":"D1","level":"warning","message":{"text":"coordinates.UeBoxUnpack (cyclomatic 20): coordinates.UeBoxUnpack 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":"ModMaker/include/coordinates.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d566a0bce32c703212e5c545f7559e3ac1d66d7cc83d3cfd88407fc6f48c9c7"}},{"ruleId":"D2","level":"warning","message":{"text":"imageSmoothArc_fast.imageSmoothArcDrawSegment (cognitive 180): imageSmoothArc_fast.imageSmoothArcDrawSegment has cognitive complexity 180 (threshold 15). Drivers by points: if/else 56 (160 pts), boolean chains 18, loops 2 (nesting depth added 104). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/imageSmoothArc_fast.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45f6cbf7cff200a2268d95875e65ca6add3794789b208a02ea2b182f43e7ef6"}},{"ruleId":"D2","level":"warning","message":{"text":"uassetParse.SaveCompressedDecodedUasset (cognitive 160): uassetParse.SaveCompressedDecodedUasset has cognitive complexity 160 (threshold 15). Drivers by points: if/else 46 (119 pts), loops 11 (26 pts), boolean chains 15 (nesting depth added 88). 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":"ModMaker/include/uassetParse.php"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"c367b671570ee919e81c960bb76c191f08298f3ecf158972121eccdc7caf29dd"}},{"ruleId":"D2","level":"warning","message":{"text":"coordinates.UeTransformUnpack (cognitive 158): coordinates.UeTransformUnpack has cognitive complexity 158 (threshold 15). Drivers by points: if/else 42 (129 pts), boolean chains 23, loops 3 (6 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":"ModMaker/include/coordinates.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f6110232c836bd97c6d0c6630299ca40319384f9724801b1ceadd495247bba"}},{"ruleId":"D2","level":"warning","message":{"text":"pjson_parse.GetPuzzleMap (cognitive 149): pjson_parse.GetPuzzleMap has cognitive complexity 149 (threshold 15). Drivers by points: if/else 40 (129 pts), loops 4 (12 pts), boolean chains 8 (nesting depth added 97). 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":"ModMaker/include/pjson_parse.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8e98ad398d7be26c6bd4e23a19f7748c3373c974ad65432fcd0893e9d03a1c"}},{"ruleId":"D2","level":"warning","message":{"text":"drawmap.DrawMap (cognitive 143): drawmap.DrawMap has cognitive complexity 143 (threshold 15). Drivers by points: if/else 37 (101 pts), loops 9 (19 pts), boolean chains 13, match/switch 2 (9 pts), ternaries 1 (nesting depth added 81). 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":"ModMaker/include/drawmap.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9cbb5bbc071ee9fe51f8c30e3de0cfb20d430a942a35f148f88694ef55edaa"}},{"ruleId":"D2","level":"warning","message":{"text":"uassetHelper.AdjustAssetCoordinates (cognitive 68): uassetHelper.AdjustAssetCoordinates has cognitive complexity 68 (threshold 15). Drivers by points: if/else 20 (53 pts), loops 3 (7 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 38). 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":"ModMaker/include/uassetHelper.php"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf039e9aa207b039ded762ebbcc09033014174b218f9de198eff545f9ed89df"}},{"ruleId":"D2","level":"warning","message":{"text":"coordinates.UeTransformPackInto (cognitive 55): coordinates.UeTransformPackInto has cognitive complexity 55 (threshold 15). Drivers by points: if/else 10 (33 pts), boolean chains 15, loops 3 (7 pts) (nesting depth added 27). 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":"ModMaker/include/coordinates.php"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a513ac5d60fbd382b1f5ed75eba06751b3de5be298534ba1b40fe3e2b019e1e"}},{"ruleId":"D2","level":"warning","message":{"text":"uassetHelper.EmbedUassetPuzzleMetadataFrom (cognitive 53): uassetHelper.EmbedUassetPuzzleMetadataFrom has cognitive complexity 53 (threshold 15). Drivers by points: if/else 14 (36 pts), loops 3 (9 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 29). 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":"ModMaker/include/uassetHelper.php"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0ebcee04c1dfbe5c40fc9a6f957cebc141bf2c8710d49e56fe8e74e69e3406"}},{"ruleId":"D2","level":"warning","message":{"text":"uassetParse.ParseUassetValueNode (cognitive 51): uassetParse.ParseUassetValueNode has cognitive complexity 51 (threshold 15). Drivers by points: if/else 14 (37 pts), loops 5 (12 pts), boolean chains 1, match/switch 1 (nesting depth added 30). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetParse.php"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cafb4c88f0ffa2e2ca7ffe5d20de7e96d54292e6d699ccbf2efbc42657727c"}},{"ruleId":"D2","level":"warning","message":{"text":"uassetParse.CompressUassetValueNode (cognitive 49): uassetParse.CompressUassetValueNode has cognitive complexity 49 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 5 (12 pts), boolean chains 11, match/switch 1 (nesting depth added 22). 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":"ModMaker/include/uassetParse.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"771c4fdd187625d9a6d9054bc16d61dcc2df5d5e277db3a63dc8c46ba90a4e00"}},{"ruleId":"D2","level":"warning","message":{"text":"playerCard.CreateGenericStatCard (cognitive 45): playerCard.CreateGenericStatCard has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (30 pts), ternaries 4 (9 pts), boolean chains 4, loops 2 (nesting depth added 19). 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":"ModMaker/include/playerCard.php"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cc3a4e4e70b20d9f60b3c7de4eff5233a54d98f6d41347fd31f8a162dd74e6"}},{"ruleId":"D2","level":"warning","message":{"text":"drawmap.DrawSpawnMap (cognitive 41): drawmap.DrawSpawnMap has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (22 pts), ternaries 5 (11 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 15). 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":"ModMaker/include/drawmap.php"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"175f8bb49c0d80348ac873fe3498910591d71c1f8e53f69b2f92cd5816c47392"}},{"ruleId":"D2","level":"warning","message":{"text":"coordinates.UeBoxUnpack (cognitive 36): coordinates.UeBoxUnpack has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 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":"ModMaker/include/coordinates.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9848926fbe3421acfbbe856f715b1cd7f57fd2d03f754de928fcccbba52935a"}},{"ruleId":"D2","level":"warning","message":{"text":"vdfToJson.VdfToJson (cognitive 33): vdfToJson.VdfToJson has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 5, loops 1 (nesting depth added 16). 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":"ModMaker/include/vdfToJson.php"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77425661717d0c0be04ed27703eb4fd8800d81489b37fa26605f1f2719efee6"}},{"ruleId":"D2","level":"warning","message":{"text":"uassetHelper.FixSlabPtype (cognitive 29): uassetHelper.FixSlabPtype has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (18 pts), loops 4 (11 pts) (nesting depth added 20). 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":"ModMaker/include/uassetHelper.php"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cc6589a6e3cc133a4e31101b717269207cea130a174530e52ac3895de37deb"}},{"ruleId":"D2","level":"warning","message":{"text":"coordinates.UeBoxPackInto (cognitive 25): coordinates.UeBoxPackInto has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (25 pts) (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":"ModMaker/include/coordinates.php"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"58502621120095ba928fac8d08e6605d2657c467097a0c815d0be0194df1a906"}},{"ruleId":"D2","level":"warning","message":{"text":"imageSmoothArc_fast.imageSmoothArc (cognitive 25): imageSmoothArc_fast.imageSmoothArc has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 5 (nesting depth added 9). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/imageSmoothArc_fast.php"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"2107624bd0ece765f1964b852e6a77dc1268923203554eb5808dd644caeb4494"}},{"ruleId":"D2","level":"warning","message":{"text":"stats.GetAllStaticPids (cognitive 24): stats.GetAllStaticPids has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 15). 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":"ModMaker/include/stats.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"019e20f28d2474b3ec01b6217d09e844a812106803cedb756fb02edbdb5032c9"}},{"ruleId":"D2","level":"warning","message":{"text":"r16f_df_inject.r16f_to_r32f (cognitive 22): r16f_df_inject.r16f_to_r32f has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 1, loops 1 (nesting depth added 11). 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":"ModMaker/r16f_df_inject.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f2fdf60621a7d8fa9129a4d26f9ac460716e3788683c0f52d7df6773a785d7"}},{"ruleId":"D2","level":"warning","message":{"text":"stats.LoadHubTrackRewards (cognitive 20): stats.LoadHubTrackRewards has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 3 (7 pts), boolean chains 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/stats.php"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ac8bc3c9454deb835cf52c37805caddbba51dfc557ca1062565588bf2ef9c3"}},{"ruleId":"D2","level":"warning","message":{"text":"imageSmoothLine.imageSmoothAlphaLine (cognitive 18): imageSmoothLine.imageSmoothAlphaLine has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 2 (6 pts), if/else 5, loops 2 (4 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":"ModMaker/include/imageSmoothLine.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4cccc5d55d00ccb705b82973b570a0817bf68b19343dcd5ff378cc7a78fcaf"}},{"ruleId":"D2","level":"warning","message":{"text":"puzzleDecode.GetGridBasics (cognitive 18): puzzleDecode.GetGridBasics has cognitive complexity 18 (threshold 15). Drivers by points: loops 6 (10 pts), if/else 5 (8 pts) (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/puzzleDecode.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e46215b2f437fe0402b572871e77c5f8390c3174a1b37b34e8d57c8160541b"}},{"ruleId":"D2","level":"warning","message":{"text":"imgex.OverlayImageSmart (cognitive 17): imgex.OverlayImageSmart has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4 (8 pts), boolean chains 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":"ModMaker/include/imgex.php"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"624e1deffbcf76292be79573933bb89183e79aa218e5a94ed9bbce1abf65b004"}},{"ruleId":"D2","level":"warning","message":{"text":"profile.PrintProfileComparison (cognitive 17): profile.PrintProfileComparison has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 2 (8 pts), loops 4 (7 pts), if/else 1 (2 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":"ModMaker/include/profile.php"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce551e7724a816d282552a8788877a65b902bb68d85e41dcf9b44feb3aad7ec"}},{"ruleId":"D2","level":"warning","message":{"text":"savefile.ResetSpecificSavePids (cognitive 17): savefile.ResetSpecificSavePids has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (nesting depth added 10). 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":"ModMaker/include/savefile.php"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52d23f5964d4596b674cadf9690c6b9a8f1bee1411084b82bfe3adde5a28aab"}},{"ruleId":"D2","level":"warning","message":{"text":"savefile.FixUnsolvedMonoliths (cognitive 16): savefile.FixUnsolvedMonoliths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (4 pts) (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":"ModMaker/include/savefile.php"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a21e362ca725da58e3421690dd86e4a92f37f3ce44dee726b31f1b98859185"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: savefile: TooManyMethods \u2014 82 methods. The bar is 30 methods; this is 52 over it, 2.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/savefile.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6784c45ac7f27f8a01eada81b7220a342e81821fca15aba0418a2d7d63c70e4d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: include/savefile.php: FileTooLong \u2014 1177 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 677 over it, 2.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/savefile.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6e4476e2b349ffe11f31a64456a3c9f37e96c896ad72eea362267bca7a55ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: pjson_parse.GetPuzzleMap: MethodTooLong \u2014 GetPuzzleMap runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\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":"ModMaker/include/pjson_parse.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"2558034dec194590c95ee38aa74ab9ed3aa9ca032ba114adffe98d427c206582"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: include/uassetHelper.php: FileTooLong \u2014 765 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 265 over it, 1.53\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetHelper.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31d796f1cef0657e67bb71a3c08843e5ed630a8a5cec85f184f9301ded364ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: include/playerCard.php: FileTooLong \u2014 739 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 239 over it, 1.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/playerCard.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0906df396059597bc69a8cacf1052cb38c90d573dac3055283dbaf0f4597b07"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: imageSmoothArc_fast.imageSmoothArcDrawSegment: MethodTooLong \u2014 imageSmoothArcDrawSegment runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"ModMaker/include/imageSmoothArc_fast.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f071df31b7619a6e7d654c945bf3ad2935b3e1956b072c2e8e34d6540711b163"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ModMaker/modmaker.php: FileTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 163 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/modmaker.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8208b3a09156e13177e09901f46fe2bb351e75ac7f306f371dc5ec653f6ecc43"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: playerCard.GenerateHeaderRow: MethodTooLong \u2014 GenerateHeaderRow runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\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":"ModMaker/include/playerCard.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b7182c08f652ab53fe923372c7f4ce2469c279888a4ca0a30a345e8ff69672"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: include/uassetParse.php: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 116 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetParse.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2b7184d411dfe315df3b7a957e422fe5612f74a556e9bf94c508c4889af6d7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: playerCard.CreateGenericStatCard: MethodTooLong \u2014 CreateGenericStatCard runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"ModMaker/include/playerCard.php"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b4260b928d693d69952d52a9c1f182ca1bb6902457368a8d8ce89baf56b80b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): ModMaker/include/uassetHelper.php:1132-1215 | ModMaker/include/uassetHelper.php:1219-1290 \u2014 These two members are one piece of code written twice and then edited apart: 72 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":"ModMaker/include/uassetHelper.php"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"098726357f809f091bcc489d9482c97b1e363b82b3992f3ed392121aceaf4838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): ModMaker/include/savefile.php:422-447 | ModMaker/include/savefile.php:475-501 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"ModMaker/include/savefile.php"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa574f7994f781495d9beb71d51d3355a396234cdfe60cb2cde1cad2e471a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): ModMaker/include/savefile.php:37-62 | ModMaker/include/savefile.php:67-85 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"ModMaker/include/savefile.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"372b82677a50e2cfd2291b128ddbbbfe12faa4d7dbdb08a21b2a9b00eb920785"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): ModMaker/include/savefile.php:1223-1244 | ModMaker/include/savefile.php:1248-1270 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"ModMaker/include/savefile.php"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc8413bf64d4e8e70eaf529c57cb5af601777e21cab98974fd2f121c570fc1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): ModMaker/include/stats.php:128-152 | ModMaker/include/stats.php:214-233 \u2014 These two members are one piece of code written twice and then edited apart: 20 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":"ModMaker/include/stats.php"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"882f264636bb3b3e93454edfea199b1d0eb19450832abdd687cfc6d6f6077828"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): ModMaker/include/coordinates.php:421-435 | ModMaker/include/coordinates.php:445-456 \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":"ModMaker/include/coordinates.php"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2b167e186b11ae5ca35f340e8158d05cf9e941df976c99a927c43f0d334e8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): ModMaker/include/pjson_parse.php:56-72 | ModMaker/include/pjson_parse.php:106-116 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"ModMaker/include/pjson_parse.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fda18c69f1c0162f24e0b18e69bf63b743ff75124ec399f9d0cb97e9e20c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): ModMaker/include/uassetHelper.php:205-215 | ModMaker/include/uassetHelper.php:219-230 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"ModMaker/include/uassetHelper.php"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e261f3b171e1204768ca4cc9ea7c61bdf3e78bc05061db7d846c855a22bca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): ModMaker/include/savefile.php:1109-1129 | ModMaker/include/savefile.php:1133-1142 | ModMaker/include/savefile.php:1151-1168 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/savefile.php"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b12f664130427cb7f0caabc822578efd0bb948a54f01d0d602963ae8a606398"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): ModMaker/include/savefile.php:1783-1791 | ModMaker/include/savefile.php:1795-1803 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"ModMaker/include/savefile.php"},"region":{"startLine":1783}}}],"partialFingerprints":{"codehealthFindingId/v1":"476b22c6a46f605d54fbcd9b8131cb674d01c760f8df447d34cac96152d06318"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): ModMaker/include/imgex.php:75-91 | ModMaker/include/imgex.php:95-111 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"ModMaker/include/imgex.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd2004f21b82dc156177fa1a69d349d562ac26f3f251fe2e46e21076b0dc369"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): ModMaker/include/lookup.php:361-376 | ModMaker/include/pjson_parse.php:425-437 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"ModMaker/include/lookup.php"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cfcfa7be17df8eddfe440174b7351cb5fc20cf989c6b16360c7d7445e8b25c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): ModMaker/include/profile.php:296-309 | ModMaker/include/profile.php:334-345 \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":"ModMaker/include/profile.php"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"0465d3f3ffc2a6e206ace5be770b8d75a43e7782327eb1868ef316c94df92f1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): ModMaker/include/imageSmoothArc_fast.php:74-109 | ModMaker/include/imageSmoothArc_fast.php:168-203 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/imageSmoothArc_fast.php:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/imageSmoothArc_fast.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df0ecd573b9c46922ad358bc6da29d1c37283845b7efbd9cfc5f0c674dc8ddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): ModMaker/include/chests.php:73-90 | ModMaker/include/chests.php:151-168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/chests.php:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/chests.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6ab6bd7eb1e4536afee25bf4705899ccecf4ddf6f4a6a114edbbd77fac2599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): ModMaker/include/savefile.php:433-447 | ModMaker/include/savefile.php:486-501 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/savefile.php:433\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/savefile.php"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0047baed42cb45c10162b2bdc7750683f431b624e3cb6d72e0616f3009967a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): ModMaker/include/drawmap.php:295-309 | ModMaker/include/drawmap.php:391-405 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/drawmap.php:295\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/drawmap.php"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0695ea4f2088bff66ce9e97da81cbf330a8da0f69e72b139fce0886746f93fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201315 lines \u00D7 2): ModMaker/include/savefile.php:37-51 | ModMaker/include/savefile.php:67-75 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/savefile.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a67c3208b4fca99ace533e6d50320e2719024e1381f79a86c307923786dd1fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): ModMaker/include/uassetHelper.php:480-490 | ModMaker/include/uassetHelper.php:524-534 | ModMaker/include/uassetHelper.php:544-554 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060ModMaker/include/uassetHelper.php:492\u0060 calls \u0060preg_replace\u0060 and \u0060ModMaker/include/uassetHelper.php:535\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetHelper.php"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"289aa17aac92e174227d7c8edcc5108c5b62a178b2c30347bee6967e805e53cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): ModMaker/include/uassetParse.php:868-878 | ModMaker/include/uassetParse.php:884-893 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/uassetParse.php:868\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetParse.php"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa495f757a8a77a9cab443ac77a065cf9098c6b3431939078ca7ec524b6ae4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ModMaker/include/drawmap.php:492-501 | ModMaker/include/drawmap.php:682-691 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/drawmap.php:492\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/drawmap.php"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c62b85a1d181d38b91e5107b3b7977b39777097d920f94346f3cef5ca7f2f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201310 lines \u00D7 3): ModMaker/include/imageSmoothArc_fast.php:135-144 | ModMaker/include/imageSmoothArc_fast.php:212-213 | ModMaker/include/imageSmoothArc_fast.php:225-234 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/imageSmoothArc_fast.php:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/imageSmoothArc_fast.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f37e9d63c58c66eba5ef8da6fb4f12a59611ba388ce925a0cf4925252440964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ModMaker/include/playerCard.php:509-518 | ModMaker/include/playerCard.php:522-531 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/playerCard.php:509\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/playerCard.php"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2dc5967c5ebbcaabb90096df97e287819906f778812635ce14dc41678d4df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ModMaker/include/savefile.php:558-567 | ModMaker/include/savefile.php:605-614 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/savefile.php"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3991fc97af166195e3868605fa4fabe72616843066320ced24df4cc480f35c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): ModMaker/include/uassetParse.php:799-807 | ModMaker/include/uassetParse.php:876-884 | ModMaker/include/uassetParse.php:891-899 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/uassetParse.php:799\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetParse.php"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f3ce2f6bd029a4737ecef6ff9e228210b9e3dead183fdd958056aa98aff333"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): ModMaker/include/drawmap.php:186-204 | ModMaker/include/drawmap.php:540-558 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/drawmap.php"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0df89c9b78324c0579939107193a2c8ce3c37e3adf58ad79d9bc6f8670afbf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ModMaker/include/savefile.php:1350-1358 | ModMaker/include/savefile.php:1402-1410 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/savefile.php"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"67148540e7623797c144a5455bbd7a9a29327e4a4b84a70c3951e8a498b3ddbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ModMaker/include/uassetHelper.php:1159-1167 | ModMaker/include/uassetHelper.php:1245-1253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ModMaker/include/uassetHelper.php:1236\u0060 calls \u0060empty\u0060 and \u0060ModMaker/include/uassetHelper.php:1149\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetHelper.php"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7035f66bf989ecf7841e88b910c6726bce71e79415113e124198880ccba3ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): ModMaker/include/uassetParse.php:826-834 | ModMaker/include/uassetParse.php:849-856 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060ModMaker/include/uassetParse.php:857\u0060 calls \u0060unset\u0060 and \u0060ModMaker/include/uassetParse.php:835\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetParse.php"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f6fb5d0cedd367aacdd366d396f7020403242b193fc5a35ed7a5fd0f3948ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ModMaker/include/profile.php:281-288 | ModMaker/include/profile.php:313-320 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/profile.php:281\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/profile.php"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"5185cb61185e936db5ccf9aae19bef74e6bee9cfdd9acb92351bd0c9d5bbd138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ModMaker/include/savefile.php:1223-1230 | ModMaker/include/savefile.php:1248-1255 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/savefile.php:1223\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/savefile.php"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8edd4122c8506b11d3591f27cf15377f68304b9a75c878c6a43846d26a189a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ModMaker/include/drawmap.php:438-445 | ModMaker/include/drawmap.php:472-479 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/drawmap.php:438\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/drawmap.php"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcabbe4056dd2fcd19b02cef76d52b62b4bdaa7c4236558c94a4b44ea4cbc9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ModMaker/include/imageSmoothArc_fast.php:127-133 | ModMaker/include/imageSmoothArc_fast.php:157-163 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/imageSmoothArc_fast.php:127\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/imageSmoothArc_fast.php"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8bbbe4c5ad4a4b25febd406e2da6e63e7107509817e929abc6be5c90a65c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ModMaker/include/coordinates.php:146-151 | ModMaker/include/coordinates.php:251-256 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/coordinates.php"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73e1c0af328383e0ffa8bb3b520df748d5f8b765c8d5c3cc813216905e19bc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ModMaker/include/imageSmoothArc_fast.php:118-122 | ModMaker/include/imageSmoothArc_fast.php:148-152 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ModMaker/include/imageSmoothArc_fast.php:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/imageSmoothArc_fast.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"75507efad4a5525aeab0481fdd108c2d6e82dfbb8154ede0548cb6aaea80c003"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (PHPUnit or Pest), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D13","level":"error","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":"c03fc842c218077e09288ae52fffc39ed122b24e199bae04dd0951a74517f7ca"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ModMaker/include/uassetParse.php: ModMaker/include/uassetParse.php changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in uassetParse.CompressUassetValueNode at line 378. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2025-08-01..2025-10-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272025-08-01 15:34:54 -04:00\u0027 --until=\u00272025-10-30 15:34:54 -04:00\u0027 --full-history --no-merges -- ModMaker/include/uassetParse.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":"ModMaker/include/uassetParse.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa2f12c32f2c4138235e39c908bbbf5952512bb4f55638275c9f234983471d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this needs to go later, don\u0027t skip any \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/enclaveIconAdder.php"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a554e0d031a6745e03d790203467c9fe132cc328f425ef8629cdb3202c4a190"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: check min/max? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/coordinates.php"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ce079bd84d7c510b82010d2db77f00f057853f917ac996d33a42835cd97275"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: I love how the $separator is not used at all here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/file_io.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb4b7c00b532d295adde20c883865a6640e224494d98bc86b81ae851bcdf1cb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this neeeds a proper rewrite lol \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/file_io.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3e5d42a3142a33c20a6da59dac42a4c0269ac8a79fdb226f85610a01853375"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO optimize this please \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/imageSmoothLine.php"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b7ce56f03f446d9f9a5c824e956e709f23d2024c2a7796332dffd2211a5c92"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: $data-\u003EPoolName to zone // old unchecked code \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/pjson_parse.php"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad591d8c0a641f4b94437c104977c2937cb550e701d697245cc5552b6a86c75"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: reset echoes of time. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/savefile.php"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce386d8390b772f60abc1c0e3344f7b787f4fe20652b1e26aff45b14ad4a970c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO please rewrite this properly huh \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/timex.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9162299fa16830074d8af5488dd10e1b3d7939aa9b69f88bf720e6459392cd07"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO sort by Name field (actually index) and make sure it\u0027s sequential (0..count-1). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/uassetParse.php"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"47035c0a1f74a560ad32b0dd4976d3d19c17a04a753cc075c804f608cb0165d8"}},{"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":"480a084425d41e5f273bfc000afb2fa39a79a5dc610781f509bc8e685cb065d4"},"taxa":[{"id":"CWE-208","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-697","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07: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":"6813b06d6304b433eb22527206221850e16400ea4e122949642da6aef22223e4"},"taxa":[{"id":"CWE-208","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-697","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07: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":"2b5ef86ae04c97ba36549e780f32bc679d81b6e3f82877a7a6d1f7963ef0a227"},"taxa":[{"id":"CWE-208","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-697","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07: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":"862944707b03512aa2718197e2ddcbd7dea40648cd45d1ee84e9432a54ff36d3"},"taxa":[{"id":"CWE-208","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-697","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"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":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X18","level":"warning","message":{"text":"Disposable created and abandoned in the function that made it: \u0060opendir()\u0060 is called here and hands back a handle the caller must close \u2014 and it is held in \u0060$dirHandle\u0060, and every use of \u0060$dirHandle\u0060 in the function reads through it or tests it \u2014 it is never closed, returned, passed, captured or stored. PHP frees an unclosed handle when its last reference goes, which is the end of the function at the earliest, not a point this code states: the descriptor stays open for the rest of the call (a long loop, a long-running worker holds many), buffered writes are flushed only then, and a failed flush is reported nowhere. Close it where it is done with: \u0060closedir($handle);\u0060, in a \u0060finally\u0060 if the code between can throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/file_io.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e4331b798307e1db7b69ac84d231e6501b5fa25f519ff711db9f5386b3ef78"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: line 168 walks \u0060$array\u0060 by value, so the walk is the snapshot taken when the loop began, and line 170 changes that same collection with \u0060$array = \u2026\u0060 before the next iteration: the loop carries on over the old value while the body now works on the new one. PHP raises nothing, so the loop completes over a different set than the code meant."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/include/file_io.php"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec916f29b32f199d3c89351c7b53348046744989ab435d76a8c64bd0d84d7be"}},{"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":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This PHP code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/modmaker.php"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c76415a921fd2aba5f54c98e045e238e747b159b4cc3e41f63fec62cbe51e9"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This PHP code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ModMaker/modmaker.php"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"d337a3e2289e0c27d9879c2370e1ce9ac165546611159daec6a0e0245a4abf58"}}],"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-208","guid":"9afb1e8d-bcf4-2f50-bd88-5c132c0e93d7","name":"CWE-208","shortDescription":{"text":"CWE-208"},"helpUri":"https://cwe.mitre.org/data/definitions/208.html"},{"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-697","guid":"61fcce2f-e722-1753-b9b3-ef38f4650b8a","name":"CWE-697","shortDescription":{"text":"CWE-697"},"helpUri":"https://cwe.mitre.org/data/definitions/697.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-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":"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":5,"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."]}]}