{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"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":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"UniqueTriggerActivation.getTriggerFunction (cyclomatic 331): UniqueTriggerActivation.getTriggerFunction has cyclomatic complexity 331 (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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d1093382ecd8688c2b2e0ebf874ef2f67f7eaa26fd047c83f5d27c86631d0d"}},{"ruleId":"D1","level":"warning","message":{"text":"Conditionals.conditionalApplies (cyclomatic 162): Conditionals.conditionalApplies has cyclomatic complexity 162 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/unique/Conditionals.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5794830e0bccb1e00c03759d38dfad9ef7123020cbcf2139b9e8c71dea7a9e7a"}},{"ruleId":"D1","level":"warning","message":{"text":"Building.getRejectionReasons (cyclomatic 62): Building.getRejectionReasons has cyclomatic complexity 62 (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":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8dc8d82ef40b07ee4257ed5024467ae679b66d867f939bb96a3a9ae0081b1d2"}},{"ruleId":"D1","level":"warning","message":{"text":"Ruleset.load (cyclomatic 53): Ruleset.load has cyclomatic complexity 53 (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":"core/src/com/unciv/models/ruleset/Ruleset.kt"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"b989d3be5b4d44034698bb0ae96973c42747dd0b1431b230b0c82d8cc96c57e0"}},{"ruleId":"D1","level":"warning","message":{"text":"Milestone.getVictoryScreenButtons (cyclomatic 50): Milestone.getVictoryScreenButtons has cyclomatic complexity 50 (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":"core/src/com/unciv/models/ruleset/Victory.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbeafecd11b38bbd9261db7ac7d04c2940b12b6afd3a23796c969ee25b31af4"}},{"ruleId":"D1","level":"warning","message":{"text":"TradeEvaluation.evaluateSellCost (cyclomatic 48): TradeEvaluation.evaluateSellCost has cyclomatic complexity 48 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/trade/TradeEvaluation.kt"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a36592af4f1d773f198d8e3ad74252fc81e18d3930bc2fa8aaceb6019e8fe16"}},{"ruleId":"D1","level":"warning","message":{"text":"WorldMapTileUpdater.updateTilesForSelectedUnit (cyclomatic 47): WorldMapTileUpdater.updateTilesForSelectedUnit has cyclomatic complexity 47 (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":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapTileUpdater.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab503fa545074d34db23dcce753ad699f82444cb4b44badb00e1920848f38ce0"}},{"ruleId":"D1","level":"warning","message":{"text":"City.matchesSingleFilter (cyclomatic 44): City.matchesSingleFilter has cyclomatic complexity 44 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/City.kt"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"255d5345476b02e3ebb4b203de927980bc9c5b1d63b5951fa1c901b03056d018"}},{"ruleId":"D1","level":"warning","message":{"text":"CivilianUnitAutomation.automateCivilianUnit (cyclomatic 43): CivilianUnitAutomation.automateCivilianUnit has cyclomatic complexity 43 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/CivilianUnitAutomation.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"234f825f1802a049db63b9de6609d3dfb9324ce699f8e604594f3452c7414a33"}},{"ruleId":"D1","level":"warning","message":{"text":"TradeLogic.acceptTrade (cyclomatic 41): TradeLogic.acceptTrade has cyclomatic complexity 41 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/trade/TradeLogic.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e4970f975e5cda313b9d9b495149cbb333feb3f5e583bb02ad80e632af9e72"}},{"ruleId":"D1","level":"warning","message":{"text":"UnitAutomation.automateUnitMoves (cyclomatic 39): UnitAutomation.automateUnitMoves has cyclomatic complexity 39 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/UnitAutomation.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"543ecb083e0fc7d78e0d7221d66b5714e0681fc3c69eac25a43e0a24ea591720"}},{"ruleId":"D1","level":"warning","message":{"text":"main (cyclomatic 39): main has cyclomatic complexity 39 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 13 belong to 7 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/http-fetch-engine/browser-fetch-contract.cjs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf13613d111f13e143962fb733b54f09d42b23fa3a23e2b8bc3ff9dc180f810"}},{"ruleId":"D1","level":"warning","message":{"text":"TileImprovementFunctions.canImprovementBeBuiltHere (cyclomatic 38): TileImprovementFunctions.canImprovementBeBuiltHere has cyclomatic complexity 38 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/tile/TileImprovementFunctions.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62f4c58500a372c8f9fd57ba0cebf10e1a222244c219617852920fc19546c2b"}},{"ruleId":"D1","level":"warning","message":{"text":"TradeEvaluation.evaluateBuyCost (cyclomatic 38): TradeEvaluation.evaluateBuyCost has cyclomatic complexity 38 (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":"core/src/com/unciv/logic/trade/TradeEvaluation.kt"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d6f1cf8a0c5b000b744bc214fd50cefdc08a06cffda950c241621070e23418"}},{"ruleId":"D1","level":"warning","message":{"text":"SpecificUnitAutomation.automateSettlerActions (cyclomatic 37): SpecificUnitAutomation.automateSettlerActions has cyclomatic complexity 37 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/SpecificUnitAutomation.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6394a17392838a3bef481e3bfd9c86922ab5d9529dc1dc93eb99d3399cce2476"}},{"ruleId":"D1","level":"warning","message":{"text":"Tile.matchesSingleTerrainFilter (cyclomatic 37): Tile.matchesSingleTerrainFilter has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/tile/Tile.kt"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42afe715a9dd501696df74c27a9d842fd1bfeeb387b85b883e07048bd2d742f"}},{"ruleId":"D1","level":"warning","message":{"text":"OffersListScroll.update (cyclomatic 37): OffersListScroll.update has cyclomatic complexity 37 (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":"core/src/com/unciv/ui/screens/diplomacyscreen/OffersListScroll.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f84274aa23ca81d36a11f933d7e25f98dc66ada03e6385426ddd38960649c3"}},{"ruleId":"D1","level":"warning","message":{"text":"ReligionAutomation.beliefBonusForPlayer (cyclomatic 34): ReligionAutomation.beliefBonusForPlayer has cyclomatic complexity 34 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"7254d56055f6dc5e1248d474ad63a4684cc9e59a62f3ed85a9cf6523117b743e"}},{"ruleId":"D1","level":"warning","message":{"text":"MovementCost.getMovementCostBetweenAdjacentTiles (cyclomatic 34): MovementCost.getMovementCostBetweenAdjacentTiles has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/movement/MovementCost.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b42c09de4996b0b714a5e259574aa31b3350d74625a7f95df5f0ee557171a4"}},{"ruleId":"D1","level":"warning","message":{"text":"UncivServerRunner.serverRun (cyclomatic 34): UncivServerRunner.serverRun has cyclomatic complexity 34 (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":"server/src/com/unciv/app/server/UncivServer.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c515ac37852f8f47db64bb2911a93d395fae4a30b47f322a0f005c91fafe3d"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseUnit.getRejectionReasons (cyclomatic 33): BaseUnit.getRejectionReasons has cyclomatic complexity 33 (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":"core/src/com/unciv/models/ruleset/unit/BaseUnit.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a08a2b9a27f9f71943e4f4e50890b575af0ba68d42f0f8bc943fc292fd25ddd"}},{"ruleId":"D1","level":"warning","message":{"text":"UnitMovement.cannotPassThroughReason (cyclomatic 32): UnitMovement.cannotPassThroughReason 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":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"9545556366fb46cc8035ee2114bc6efa543671731b93b7685641e549bc005ce7"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseUnitDescriptions.getBaseUnitCivilopediaTextLines (cyclomatic 32): BaseUnitDescriptions.getBaseUnitCivilopediaTextLines has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/BaseUnitDescriptions.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ec3fcf82a52911f78e14a71a7daa4b2f7a9c779cf99eb36e92f5d84c782e86"}},{"ruleId":"D1","level":"warning","message":{"text":"TradeAutomation.getCounteroffer (cyclomatic 31): TradeAutomation.getCounteroffer has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/TradeAutomation.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e68c77c741808e448cfec359b24cda19359af2114bfeb1a2a8380e4e6e7a6a"}},{"ruleId":"D1","level":"warning","message":{"text":"TileDescription.toMarkup (cyclomatic 31): TileDescription.toMarkup has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/TileDescription.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1515d5f9c9d53996f9152b8917632b135bdd2f532a94ed1d079b46b1f7b77d"}},{"ruleId":"D1","level":"warning","message":{"text":"CityStateFunctions.getTributeModifiers (cyclomatic 30): CityStateFunctions.getTributeModifiers has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"8582485ba8ef8d38eec4386b9a079b35c5a8e7195db1778baa9b40147ccbf8a4"}},{"ruleId":"D1","level":"warning","message":{"text":"UnitMovement.moveToTile (cyclomatic 30): UnitMovement.moveToTile has cyclomatic complexity 30 (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":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"369eb61ce841f1043d4ab7ba7a8d430f2ba0cdb533bc6d1807de3f6f9406bb89"}},{"ruleId":"D1","level":"warning","message":{"text":"BattleTable.simulateBattle (cyclomatic 30): BattleTable.simulateBattle has cyclomatic complexity 30 (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":"core/src/com/unciv/ui/screens/worldscreen/bottombar/BattleTable.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b921b20d3421628e5e2891f2e7f3a3438e8e16f2f8377aa2771440d6f6562df2"}},{"ruleId":"D1","level":"warning","message":{"text":"BuildingDescriptions.getBuildingCivilopediaTextLines (cyclomatic 29): BuildingDescriptions.getBuildingCivilopediaTextLines has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/BuildingDescriptions.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ce622ebbd3a37ad1f417a8873b69c6fe60ef8d87281dbffd3d46bae7710d79"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkerAutomation.getImprovementRanking (cyclomatic 28): WorkerAutomation.getImprovementRanking 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":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"547e5395d8d846bad519c7ea5bd88b17c24af7ad25719e64ab706625f09ea167"}},{"ruleId":"D1","level":"warning","message":{"text":"UnitActionsTable.update (cyclomatic 28): UnitActionsTable.update 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":"core/src/com/unciv/ui/screens/worldscreen/unit/actions/UnitActionsTable.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"680eaa10100647f06d55423cb439a3fe579fab0dc3be0ee61443b1730a17fb9e"}},{"ruleId":"D1","level":"warning","message":{"text":"MotivationToAttackAutomation.hasAtLeastMotivationToAttack (cyclomatic 27): MotivationToAttackAutomation.hasAtLeastMotivationToAttack has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/MotivationToAttackAutomation.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d4ba7d1c89e3bd31a78e2ecfede6c1b0e3cd43af0bc49e35e4bd8b5745b4ed"}},{"ruleId":"D1","level":"warning","message":{"text":"DiplomacyTurnManager.nextTurnFlags (cyclomatic 27): DiplomacyTurnManager.nextTurnFlags 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":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyTurnManager.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"22714a6a61dbdd9a2eef4c7380c31c73d816ca1a8cb712a76055a1f3e9383bf9"}},{"ruleId":"D1","level":"warning","message":{"text":"UnitMovement.getShortestPath (cyclomatic 27): UnitMovement.getShortestPath 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":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ec6137df27b79107c14e68fb57c8f6365de183f3ab72246b3f00d4accc1f98"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionTree.update (cyclomatic 27): PromotionTree.update 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":"core/src/com/unciv/ui/screens/pickerscreens/PromotionTree.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1eda056de6a53c1e51cc07330320fb9e51b9bc298e45d5555e11841492b11d9"}},{"ruleId":"D1","level":"warning","message":{"text":"GameInfo.nextTurn (cyclomatic 26): GameInfo.nextTurn has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/GameInfo.kt"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"134c753a389312393afd9b0e410f2c18aea65ebbd50a8c5a85759ac331db63a2"}},{"ruleId":"D1","level":"warning","message":{"text":"StartNormalizer.calculateFoodBonusesNeeded (cyclomatic 26): StartNormalizer.calculateFoodBonusesNeeded has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/mapregions/StartNormalizer.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dff4fcd796c633dbfedb7d18dc556f787280279cb121ab3d8859b0711ec30e"}},{"ruleId":"D1","level":"warning","message":{"text":"TileStatFunctions.getTileStatsBreakdown (cyclomatic 26): TileStatFunctions.getTileStatsBreakdown has cyclomatic complexity 26 (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":"core/src/com/unciv/logic/map/tile/TileStatFunctions.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4845bc7fc354b116d95ebac17829b34fdd122e6e47913817acd340ef7fa1cd"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkerAutomation.chooseImprovement (cyclomatic 25): WorkerAutomation.chooseImprovement has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"50333efbc26d0b65b939800d4380604f0bb710a2235d0e3b60c4630682401bea"}},{"ruleId":"D1","level":"warning","message":{"text":"BuildingDescriptions.getDescription (cyclomatic 25): BuildingDescriptions.getDescription has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/BuildingDescriptions.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f0891d99b3cd5ed07d2b8ff61f6bf13b9a4bc841ea0573cd420b675117b274"}},{"ruleId":"D1","level":"warning","message":{"text":"UnitTable.tileSelected (cyclomatic 25): UnitTable.tileSelected has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/unit/UnitTable.kt"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcec823427d5eb2a09efbf9e72a25825c01677753b22717e7c76ce3d624ffac"}},{"ruleId":"D1","level":"warning","message":{"text":"TurnManager.startTurn (cyclomatic 24): TurnManager.startTurn has cyclomatic complexity 24 (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":"core/src/com/unciv/logic/civilization/managers/TurnManager.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f500fa0e7f5eb04ffb0ced42f56d0f9cef8c770ad1c4380461926eb6d4d8476a"}},{"ruleId":"D1","level":"warning","message":{"text":"TradeLogic.getAvailableOffers (cyclomatic 24): TradeLogic.getAvailableOffers has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/trade/TradeLogic.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"870e6250599c732843eec6fc5ad1b03374c0acc0225bb1570433d38e90350d58"}},{"ruleId":"D1","level":"warning","message":{"text":"Milestone.getVictoryScreenButtonHeaderText (cyclomatic 24): Milestone.getVictoryScreenButtonHeaderText has cyclomatic complexity 24 (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":"core/src/com/unciv/models/ruleset/Victory.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc10373110940007b433826d91723132e335c676c0ded32289dbdaffcee2454c"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseRulesetValidator.checkUnit (cyclomatic 24): BaseRulesetValidator.checkUnit has cyclomatic complexity 24 (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":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"1baa50c9e8bf8be5f14f10218346f4a2eae5a45dad08ab0f95800ebced5395c9"}},{"ruleId":"D1","level":"warning","message":{"text":"TileLayerBorders.updateBorders (cyclomatic 24): TileLayerBorders.updateBorders has cyclomatic complexity 24 (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":"core/src/com/unciv/ui/components/tilegroups/layers/TileLayerBorders.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f89b8b75e80ea71169c0e613c9ca3eb67e57d333290455fb77ad022bc6a014"}},{"ruleId":"D1","level":"warning","message":{"text":"CityStateDiplomacyTable.getCityStateDiplomacyTableHeader (cyclomatic 24): CityStateDiplomacyTable.getCityStateDiplomacyTableHeader has cyclomatic complexity 24 (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":"core/src/com/unciv/ui/screens/diplomacyscreen/CityStateDiplomacyTable.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0d6f1559da41bc377478102e7f345b6dfae9651fd85d2462937115be4ebad4"}},{"ruleId":"D1","level":"warning","message":{"text":"WorldScreen.update (cyclomatic 24): WorldScreen.update has cyclomatic complexity 24 (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":"core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cd781953477e8113063a8226cad82ac2696a80d08d9eaa12570155dacd24b4"}},{"ruleId":"D1","level":"warning","message":{"text":"ConstructionAutomation.getOnetimeUniqueBonuses (cyclomatic 23): ConstructionAutomation.getOnetimeUniqueBonuses has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f44f176e6ddad8d755f54c016677509bbf9a7626d108a2d92eb17a22011b979"}},{"ruleId":"D1","level":"warning","message":{"text":"RoadBetweenCitiesAutomation.getRoadsToBuildFromCity (cyclomatic 23): RoadBetweenCitiesAutomation.getRoadsToBuildFromCity 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":"core/src/com/unciv/logic/automation/unit/RoadBetweenCitiesAutomation.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8a0d21125dbcb48156b4a9f8a355b71792820a89045a91b6aa103ab8d13f9f"}},{"ruleId":"D1","level":"warning","message":{"text":"CityConstructions.completeConstruction (cyclomatic 23): CityConstructions.completeConstruction 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":"core/src/com/unciv/logic/city/CityConstructions.kt"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfd36085fb5722897371d60d80bb44cb321e2681565ebb5950fc3f73f4c90ef"}},{"ruleId":"D1","level":"warning","message":{"text":"DiplomacyTurnManager.nextTurnDiplomaticModifiers (cyclomatic 23): DiplomacyTurnManager.nextTurnDiplomaticModifiers has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyTurnManager.kt"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"58907e9a852b76304a615dcfc2e1eb47aedb2a71744b5a38d5cba1b308097a16"}},{"ruleId":"D1","level":"warning","message":{"text":"CivInfoTransientCache.updateProximity (cyclomatic 23): CivInfoTransientCache.updateProximity has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/transients/CivInfoTransientCache.kt"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75f874ea9bb55d52b249bd685007f0252f4442fc1e890274ca066249df95aa5"}},{"ruleId":"D1","level":"warning","message":{"text":"UnitMovement.getMovementToTilesAtPosition (cyclomatic 23): UnitMovement.getMovementToTilesAtPosition 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":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef8a635a35faa79f47550665674c209b0650f68ae5ac379f0582a3abb626b6d"}},{"ruleId":"D1","level":"warning","message":{"text":"Unique.getReplacementText (cyclomatic 23): Unique.getReplacementText 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":"core/src/com/unciv/models/ruleset/unique/Unique.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bb08249bc373cda0ebdcaecb68a1ff3044c0921003501f3ee29dc8fb620aa8"}},{"ruleId":"D1","level":"warning","message":{"text":"ImprovementDescriptions.getCivilopediaTextLines (cyclomatic 23): ImprovementDescriptions.getCivilopediaTextLines has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/ImprovementDescriptions.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"723dcd5929aefac7147560577d2f39dce76a7904cda042f0fc34e1a451686274"}},{"ruleId":"D1","level":"warning","message":{"text":"FormattedLine.unsupportedReasons (cyclomatic 23): FormattedLine.unsupportedReasons has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/civilopediascreen/FormattedLine.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11f6f1cad20a6e46697e769e2dafd25844627ccb6f80523682251f85a5cc8bc"}},{"ruleId":"D1","level":"warning","message":{"text":"AirUnitAutomation.getNukeLocationValue (cyclomatic 22): AirUnitAutomation.getNukeLocationValue 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":"core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"78abc1ddf4ae4e02faf664a5e9bee8d5f246ab582fa0dd209a6c873cc87408ad"}},{"ruleId":"D1","level":"warning","message":{"text":"MapElevationGenerator.cellularMountainRanges (cyclomatic 22): MapElevationGenerator.cellularMountainRanges 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":"core/src/com/unciv/logic/map/mapgenerator/MapElevationGenerator.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c12e63c49ca1ed0b73e6513fbba61a21bbe85b1967db49488e4caeb66abbee7"}},{"ruleId":"D1","level":"warning","message":{"text":"TileImprovementFunctions.setImprovement (cyclomatic 22): TileImprovementFunctions.setImprovement 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":"core/src/com/unciv/logic/map/tile/TileImprovementFunctions.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9a7f4792f13004bb0e1643a6805e34e96291144db2ec02e8d24589520cf856"}},{"ruleId":"D1","level":"warning","message":{"text":"CityStatsTable.addText (cyclomatic 22): CityStatsTable.addText 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":"core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fca80cd334942650055ebaf1078efed1e3698378eba32c980f888387cffe2b"}},{"ruleId":"D1","level":"warning","message":{"text":"GameInfo.setTransients (cyclomatic 21): GameInfo.setTransients has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/GameInfo.kt"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c78b105d9a9afef1f2ff2c02f06d2a0e6883ac7e0e419e6040c7f4af29ff935"}},{"ruleId":"D1","level":"warning","message":{"text":"Automation.chooseMilitaryUnit (cyclomatic 21): Automation.chooseMilitaryUnit has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/Automation.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"582091da96405b6620ece412e70ba6e92e4a035c260429a11bd666b5f72b30bb"}},{"ruleId":"D1","level":"warning","message":{"text":"ReligionAutomation.beliefBonusForCity (cyclomatic 21): ReligionAutomation.beliefBonusForCity has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ce64324ce6f83456a26914f48a70e3c0efdc9ec85c563870aeb859b098ba61"}},{"ruleId":"D1","level":"warning","message":{"text":"Battle.attack (cyclomatic 21): Battle.attack has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"81494f97e90812e73904f39e3edd03b4f52c691ff25441344457388d00138240"}},{"ruleId":"D1","level":"warning","message":{"text":"GithubAPI.downloadAndExtract (cyclomatic 21): GithubAPI.downloadAndExtract has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/github/GithubAPI.kt"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c32f111e91e06fd2ed22e1ae243f29114a5792867650990407522162e06be92"}},{"ruleId":"D1","level":"warning","message":{"text":"MapGenerator.applyHumidityAndTemperature (cyclomatic 21): MapGenerator.applyHumidityAndTemperature has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae43cb7a8218439031ba8d5607c75cb6e283f01fa2ac8a302252411e598a725"}},{"ruleId":"D1","level":"warning","message":{"text":"MapRegions.assignRegions (cyclomatic 21): MapRegions.assignRegions has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/mapregions/MapRegions.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f78dccc29d24093c81bf74982ed9eb1cdf816427f1755d4c294fefb53e9e2f9"}},{"ruleId":"D1","level":"warning","message":{"text":"UnitTurnManager.endTurn (cyclomatic 21): UnitTurnManager.endTurn has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/UnitTurnManager.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09266a4816f754c7e9592acecca50465427de9b9aec934491f1adbe9a524c67"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiV2.handleWebSocket (cyclomatic 21): ApiV2.handleWebSocket has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/apiv2/ApiV2.kt"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1e6d206eef8c719fb25303b7298a8e7ed24343173b3b485f746bed56737147"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseUnit.matchesSingleFilter (cyclomatic 21): BaseUnit.matchesSingleFilter has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/unit/BaseUnit.kt"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a1fc97eb654c059ddb701ea0f2799feed61c58be3d796307edf3a767cef3f3"}},{"ruleId":"D1","level":"warning","message":{"text":"UniqueValidator.checkUnique (cyclomatic 21): UniqueValidator.checkUnique has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/UniqueValidator.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d54130b0e11f476bf32a03fdfedddf7a8449cc89adf74c98f0cfec847155770"}},{"ruleId":"D1","level":"warning","message":{"text":"TileLayerTerrain.getTileBaseImageLocations (cyclomatic 21): TileLayerTerrain.getTileBaseImageLocations has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/tilegroups/layers/TileLayerTerrain.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"919b77bbdfd2558c5c85ccf57937383fdde0ce743c89d4bfa54230a03fad6697"}},{"ruleId":"D1","level":"warning","message":{"text":"ImprovementPickerScreen.addImprovementRow (cyclomatic 21): ImprovementPickerScreen.addImprovementRow has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/pickerscreens/ImprovementPickerScreen.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da127a5be94e2e316fe7af581f640c8b0472f6bc31b234a6b267beff396a778"}},{"ruleId":"D1","level":"warning","message":{"text":"run.main (cyclomatic 21): run.main has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 67). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/web-font/run.cjs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b2cf8838f4e1451207b2265d0422ec64f5a062ff4a41ce45e0667b5b7e2074"}},{"ruleId":"D1","level":"warning","message":{"text":"Automation.rankStatsForCityWork (cyclomatic 20): Automation.rankStatsForCityWork has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/Automation.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cac4d6b555856c6d43a9a295178b265d0da52b4a32757575e0f2c8ef8dce853"}},{"ruleId":"D1","level":"warning","message":{"text":"NextTurnAutomation.trainSettler (cyclomatic 20): NextTurnAutomation.trainSettler has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2771c977016c202b28553c25fbe12f096a505ca19222f236d675b5f65d5e7d"}},{"ruleId":"D1","level":"warning","message":{"text":"Nuke.doNukeExplosionForTile (cyclomatic 20): Nuke.doNukeExplosionForTile 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":"core/src/com/unciv/logic/battle/Nuke.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ea46ede12b2d7980b41e7b737cbf6d7d4c27102ce724bce44b474a50143119"}},{"ruleId":"D1","level":"warning","message":{"text":"CityStats.updateFinalStatList (cyclomatic 20): CityStats.updateFinalStatList has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/CityStats.kt"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"2668855895598a9a45141226a8fd7561f594a70222d6f6f25340a4469d71caba"}},{"ruleId":"D1","level":"warning","message":{"text":"ExploredRegion.expandToInclude (cyclomatic 20): ExploredRegion.expandToInclude 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":"core/src/com/unciv/logic/civilization/ExploredRegion.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5139fc93548914d2abbe21b38f192737b6ded36440e9ace6d3f66fcb094bc57"}},{"ruleId":"D1","level":"warning","message":{"text":"TileNormalizer.normalizeToRuleset (cyclomatic 20): TileNormalizer.normalizeToRuleset has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/tile/TileNormalizer.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4b4cef6a6c625a7fff1359b7fe6a846735ff84290fd774f5c72b2cbd8ef20e"}},{"ruleId":"D1","level":"warning","message":{"text":"Spy.endTurn (cyclomatic 20): Spy.endTurn 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":"core/src/com/unciv/models/Spy.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c8ceb6b3f4db5eaf644f2a58e685a537bea8f53747da60bcbeb18e35248322"}},{"ruleId":"D1","level":"warning","message":{"text":"Terrain.getCivilopediaTextLines (cyclomatic 20): Terrain.getCivilopediaTextLines has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/tile/Terrain.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"677996e44e599092a38fab81e6d0e608be07dba1d5589132dc7c062add1ae4a6"}},{"ruleId":"D1","level":"warning","message":{"text":"Tokenizer.tokenize (cyclomatic 20): Tokenizer.tokenize 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":"core/src/com/unciv/models/ruleset/unique/expressions/Tokenizer.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7bf536e830c4142211dbccbe7f18563c227d413394856ad69ad9961662c65be"}},{"ruleId":"D1","level":"warning","message":{"text":"TileGroupMap.draw (cyclomatic 20): TileGroupMap.draw 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":"core/src/com/unciv/ui/components/tilegroups/TileGroupMap.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f2714e9cddaa3b766e19dfba26b5ee9d15b504040fe56c694fa669496a034b"}},{"ruleId":"D1","level":"warning","message":{"text":"TechnologyDescriptions.getTechEnabledIcons (cyclomatic 20): TechnologyDescriptions.getTechEnabledIcons has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/TechnologyDescriptions.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa24ef071cc22aa12206cecd8b8d4bd93b3fae98db1b843d85a313366be701e"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailedStatsPopup.traverseTree (cyclomatic 20): DetailedStatsPopup.traverseTree 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":"core/src/com/unciv/ui/screens/cityscreen/DetailedStatsPopup.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbad6f7373c019d9a40cc710780e01ad4c0865dea72d126206f7de22df76815b"}},{"ruleId":"D1","level":"warning","message":{"text":"LineChart.prepareForDraw (cyclomatic 20): LineChart.prepareForDraw 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":"core/src/com/unciv/ui/screens/victoryscreen/LineChart.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47f644c0e46ea69b02a0763b2c5f6f7e7c278dd53439b1fe26cdc16f1b8ed5a"}},{"ruleId":"D1","level":"warning","message":{"text":"TargetHelper.getAttackableEnemies (cyclomatic 19): TargetHelper.getAttackableEnemies has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/battle/TargetHelper.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed04b4d0a3a9ad17c71dbf94768356c394fcf6c1083491226f0359310ef56e0"}},{"ruleId":"D1","level":"warning","message":{"text":"CityExpansionManager.rankTileForExpansion (cyclomatic 19): CityExpansionManager.rankTileForExpansion has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/managers/CityExpansionManager.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0151ae9884fb7256172f9e4277d8a2b34be30e49fc2c7a58800afb79dfa336"}},{"ruleId":"D1","level":"warning","message":{"text":"MapElevationGenerator.cellularHills (cyclomatic 19): MapElevationGenerator.cellularHills has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/MapElevationGenerator.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"1031c932bbc80a7f46ed5d8951ef14addd14ee1a6a0bcbe4508b6d472bb6316e"}},{"ruleId":"D1","level":"warning","message":{"text":"MapUnit.healingAmountForTile (cyclomatic 19): MapUnit.healingAmountForTile has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/MapUnit.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09712930a0db6c636462dd65ace5addd4c8db93a9bd0bd729c0faad04f5528d"}},{"ruleId":"D1","level":"warning","message":{"text":"MapUnit.doAction (cyclomatic 19): MapUnit.doAction has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/MapUnit.kt"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fb103a06763d0972052e0c22aec91a1c60e9a982e3768b1e5aeb858f5e5d06"}},{"ruleId":"D1","level":"warning","message":{"text":"Policy.getCivilopediaTextLines (cyclomatic 19): Policy.getCivilopediaTextLines has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Policy.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6590259b9d9480ac06cebaaf7d9b296df77a316ac075c7207726a42a64529816"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseUnit.evaluateForce (cyclomatic 19): BaseUnit.evaluateForce has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/unit/BaseUnit.kt"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"457be585925ffe7ada8159a8664363cec1c0b886cba9d4040e9652a3f02326d2"}},{"ruleId":"D1","level":"warning","message":{"text":"MusicController.musicTimerTask (cyclomatic 19): MusicController.musicTimerTask has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/audio/MusicController.kt"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3644a25c6c54254a8a60f53c217151229679c3cd1a304f35f3660b5fb41f491"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailedStatsPopup.update (cyclomatic 19): DetailedStatsPopup.update has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/cityscreen/DetailedStatsPopup.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"73340a9fdd7f20fcf065b39def0e8042cda8f7e15be8133e6e81447b5bb303a4"}},{"ruleId":"D1","level":"warning","message":{"text":"ImprovementPickerScreen.getProblemReport (cyclomatic 19): ImprovementPickerScreen.getProblemReport has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/pickerscreens/ImprovementPickerScreen.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd48cd1add99c6091f387662078b8ad58ccdfd4c3d278dd908e58949ba453fa"}},{"ruleId":"D1","level":"warning","message":{"text":"TechPickerScreen.selectTechnology (cyclomatic 19): TechPickerScreen.selectTechnology has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/pickerscreens/TechPickerScreen.kt"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeed49a5678d959f01c313fb5238c806438373c1a3405c2da923d94404741e83"}},{"ruleId":"D1","level":"warning","message":{"text":"UniqueDocsWriter.writeUniqueTypes (cyclomatic 19): UniqueDocsWriter.writeUniqueTypes has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/UniqueDocsWriter.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0d5aaeb1a9f19270eee839ba59c8442ed1cbef99932f36a11e37d4bbcc3d0b"}},{"ruleId":"D1","level":"warning","message":{"text":"Automation.allowSpendingResource (cyclomatic 18): Automation.allowSpendingResource has cyclomatic complexity 18 (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":"core/src/com/unciv/logic/automation/Automation.kt"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad28277d5ee029ddc705c9b8c838bd1d53e3f7f9838f9bbeac9a0237f7f0a6fd"}},{"ruleId":"D1","level":"warning","message":{"text":"ReligiousUnitAutomation.automateInquisitor (cyclomatic 18): ReligiousUnitAutomation.automateInquisitor has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/ReligiousUnitAutomation.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaf591d64caec62533f5f97cfecae8d57dcc8754542d7f292126819c1b89fe5"}},{"ruleId":"D1","level":"warning","message":{"text":"RoadToAutomation.automateConnectRoad (cyclomatic 18): RoadToAutomation.automateConnectRoad has cyclomatic complexity 18 (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":"core/src/com/unciv/logic/automation/unit/RoadToAutomation.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dcb03f7d247c6be01121c13a351174088ca095deaee346ce919e8dea9ef826"}},{"ruleId":"D1","level":"warning","message":{"text":"Battle.postBattleNotifications (cyclomatic 18): Battle.postBattleNotifications has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"856c0123555dbe6a16d837069c7b12354d3cbe0970b16b36d353bbfa0c711489"}},{"ruleId":"D1","level":"warning","message":{"text":"TargetHelper.containsAttackableEnemy (cyclomatic 18): TargetHelper.containsAttackableEnemy has cyclomatic complexity 18 (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":"core/src/com/unciv/logic/battle/TargetHelper.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4ce60eee81bd84037a6284a66821c40623a054ae2ca94a33685d358e8a54ba"}},{"ruleId":"D1","level":"warning","message":{"text":"GithubAPI.parseUrl (cyclomatic 18): GithubAPI.parseUrl has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/github/GithubAPI.kt"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"5873761d4e4181e9815c7da0aea16a954fba70b442eedd921b8559116809b700"}},{"ruleId":"D1","level":"warning","message":{"text":"TileMap.forEachTileAtDistance (cyclomatic 18): TileMap.forEachTileAtDistance has cyclomatic complexity 18 (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":"core/src/com/unciv/logic/map/TileMap.kt"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49e2a476bfbe9df8c395c2922aa0c7ed1521ae0344e79c0b94f21643bfa43bc"}},{"ruleId":"D1","level":"warning","message":{"text":"TileMap.getNeighborTileClockPosition (cyclomatic 18): TileMap.getNeighborTileClockPosition has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/TileMap.kt"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e851f0642172df2d1d3844a8a417df2045caa5c8a879b6dbf4a2018ef514fc"}},{"ruleId":"D1","level":"warning","message":{"text":"MapGenerator.mirror (cyclomatic 18): MapGenerator.mirror has cyclomatic complexity 18 (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":"core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ac9cbb2cafc3c880621ecdc6791cfb42bf4dbc004b80312734b8c46986535e"}},{"ruleId":"D1","level":"warning","message":{"text":"UnitMovement.getCannotMoveToReason (cyclomatic 18): UnitMovement.getCannotMoveToReason has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58b771f42b2596c1a760ed6d24dcf2cd65cfd7f3a4710d52c577339a85fd8ab"}},{"ruleId":"D1","level":"warning","message":{"text":"PathingMap.getShortestPath (cyclomatic 18): PathingMap.getShortestPath has cyclomatic complexity 18 (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":"core/src/com/unciv/logic/map/pathingmap/PathingMap.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc368c807cff4523e66d62a510f9a2884c6661fbee2bccefa4c3547cfdae3afa"}},{"ruleId":"D1","level":"warning","message":{"text":"AStarPathfinder.calculateNeighborNode (cyclomatic 18): AStarPathfinder.calculateNeighborNode has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/pathingmap/PathingMapAStarPathfinder.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"86aa8aeae726c2344c28ec1cd9c3c9f731057f4fb91fa04910225367e2d847a0"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseRulesetValidator.checkEventCircularTriggers (cyclomatic 18): BaseRulesetValidator.checkEventCircularTriggers has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"9079b24bd89e50cc82923b8e0a34799894ad05025a89526cffc37c54b174a8dc"}},{"ruleId":"D1","level":"warning","message":{"text":"FormattedLine.render (cyclomatic 18): FormattedLine.render has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/civilopediascreen/FormattedLine.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c412c71fb5fc17f2b3976979636dee97c78f3c8ebcf48402a15a058c347ffcc"}},{"ruleId":"D1","level":"warning","message":{"text":"NewGameScreen.getErrorMessage (cyclomatic 18): NewGameScreen.getErrorMessage has cyclomatic complexity 18 (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":"core/src/com/unciv/ui/screens/newgamescreen/NewGameScreen.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"26657efb20163cf7731196bb768d447e0a25808eef0c18bc4bfa36a3e0994ef0"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourcesOverviewTab.getExtraDrilldown (cyclomatic 18): ResourcesOverviewTab.getExtraDrilldown has cyclomatic complexity 18 (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":"core/src/com/unciv/ui/screens/overviewscreen/ResourcesOverviewTab.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"6523e97b7ae3ccb74f601e745e3f3080229c470c622eb9e14d862ecc635d3f69"}},{"ruleId":"D1","level":"warning","message":{"text":"VictoryScreenIllustrations.victoryCompletePercent (cyclomatic 18): VictoryScreenIllustrations.victoryCompletePercent has cyclomatic complexity 18 (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":"core/src/com/unciv/ui/screens/victoryscreen/VictoryScreenIllustrations.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"69965341115ffebaea078bafba761d162de4e1f8cab6e21fa85ff09f383af999"}},{"ruleId":"D1","level":"warning","message":{"text":"WorldMapHolder.onTileClicked (cyclomatic 18): WorldMapHolder.onTileClicked has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ec7d7af7c85d29d70398c5fa4f7d6932ed530131559b9599d4b67bfba31c26"}},{"ruleId":"D1","level":"warning","message":{"text":"DiplomacyAutomation.offerPeaceTreaty (cyclomatic 17): DiplomacyAutomation.offerPeaceTreaty has cyclomatic complexity 17 (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":"core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"37467337297159224af201e997884b24a3d81abe38d0ad8a486550d8f68496ba"}},{"ruleId":"D1","level":"warning","message":{"text":"NextTurnAutomation.valueCityStateAlliance (cyclomatic 17): NextTurnAutomation.valueCityStateAlliance has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bc097bd4e3940d5021b4a91b7496dfada7870de4144bc3f5ffbdf18421762f"}},{"ruleId":"D1","level":"warning","message":{"text":"CityLocationTileRanker.rankTile (cyclomatic 17): CityLocationTileRanker.rankTile has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/CityLocationTileRanker.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c669805329c7d5692e248e36cf1b409b34e285488fa04f8685ea640e9c9a916"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkerAutomation.isAutomationWorkableTile (cyclomatic 17): WorkerAutomation.isAutomationWorkableTile has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e34c6919aa011a3523eb0340aa4c9314484614cd44951fd0f16a9dc6bd4a0c6"}},{"ruleId":"D1","level":"warning","message":{"text":"DiplomacyManager.relationshipIgnoreAfraid (cyclomatic 17): DiplomacyManager.relationshipIgnoreAfraid has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"74396344f0268818b2bfb6ab480a1b95cbcfcc3f89c1dd45fec1af35c355aca6"}},{"ruleId":"D1","level":"warning","message":{"text":"TurnManager.endTurn (cyclomatic 17): TurnManager.endTurn has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/managers/TurnManager.kt"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcc8b8b9ee3f44dfc7a50c038e2640e1166ea5c0ad832c8d3d81b87abe7842d"}},{"ruleId":"D1","level":"warning","message":{"text":"Github.rewriteModOptions (cyclomatic 17): Github.rewriteModOptions has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/github/Github.kt"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab2cfda11c393a155adb468a4142c702bbbcb41d6c45ea491f21d1c3c1d49fb"}},{"ruleId":"D1","level":"warning","message":{"text":"RegionStartFinder.evaluateTileForStart (cyclomatic 17): RegionStartFinder.evaluateTileForStart has cyclomatic complexity 17 (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":"core/src/com/unciv/logic/map/mapgenerator/mapregions/RegionStartFinder.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9657ae744199cc3f99740966da659a2c599539bab84f1c5f1bf7fa47bc15bb"}},{"ruleId":"D1","level":"warning","message":{"text":"Simulation.text (cyclomatic 17): Simulation.text has cyclomatic complexity 17 (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":"core/src/com/unciv/logic/simulation/Simulation.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"04093349604d71b7865db8ffddb5f6dbfdc6a9f71672e96848fd643594b976fa"}},{"ruleId":"D1","level":"warning","message":{"text":"Building.matchesSingleFilter (cyclomatic 17): Building.matchesSingleFilter has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eefa79553375db8e9b84b5f6c02bd2ebd21bfcf32e9469bca6ca2254561f32e"}},{"ruleId":"D1","level":"warning","message":{"text":"Ruleset.mergeTechnologies (cyclomatic 17): Ruleset.mergeTechnologies has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Ruleset.kt"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"2163e40d5dd9e5b524e4634ce514bff7cbcb220e5b5ffebce7a9b9b1469b0728"}},{"ruleId":"D1","level":"warning","message":{"text":"GenerateStringsFromJSONs.serializeElement (cyclomatic 17): GenerateStringsFromJSONs.serializeElement has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: GenerateStringsFromJSONs.getJavaClassByName (cyclomatic 26) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/translations/TranslationFileWriter.kt"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9be6b4cb437cce992c5a98998147d9d463d87cf1c7b4bfe849271b7b536fd9"}},{"ruleId":"D1","level":"warning","message":{"text":"CityTileGroup.update (cyclomatic 17): CityTileGroup.update has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/tilegroups/CityTileGroup.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5b345cef3da302e19db676f32e31a59279425d55b58bfa39c09497491d1ca5"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseUnitDescriptions.getDifferences (cyclomatic 17): BaseUnitDescriptions.getDifferences has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/BaseUnitDescriptions.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"0002e722c2b419cf30873339f507abaf56db996e043ecd6ccc41a55a872a5932"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceDescriptions.getCivilopediaTextLines (cyclomatic 17): ResourceDescriptions.getCivilopediaTextLines has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6942754b7d47fecd6e1a4adccba0426df694dd9a29854ccd551c9101e04b9614"}},{"ruleId":"D1","level":"warning","message":{"text":"TechnologyDescriptions.buildTechIconsIndex (cyclomatic 17): TechnologyDescriptions.buildTechIconsIndex has cyclomatic complexity 17 (threshold 15). 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":"core/src/com/unciv/ui/objectdescriptions/TechnologyDescriptions.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b13b73b132c7203266bd205fea0f37fd460ea294bf0d022f8e683b11ee8603"}},{"ruleId":"D1","level":"warning","message":{"text":"TechnologyDescriptions.getCivilopediaTextLines (cyclomatic 17): TechnologyDescriptions.getCivilopediaTextLines has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/TechnologyDescriptions.kt"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f6c31a096c05acbaa2913ea8d36a74458f34779a40fc24b6e7ebecc2902ea6"}},{"ruleId":"D1","level":"warning","message":{"text":"ModCheckTab.runModChecker (cyclomatic 17): ModCheckTab.runModChecker has cyclomatic complexity 17 (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":"core/src/com/unciv/ui/popups/options/ModCheckTab.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0cea3a73415e2d7463863038d8d988fcdc4a3f5965a59254e3c72c4707c7dd"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiplayerTab.addMultiplayerServerOptions (cyclomatic 17): MultiplayerTab.addMultiplayerServerOptions has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/popups/options/MultiplayerTab.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b258aeafdb2951852cc923c82431c17a1e9212d924b441a13112e70393273f5d"}},{"ruleId":"D1","level":"warning","message":{"text":"PromotionPickerScreen.addConnectingLines (cyclomatic 17): PromotionPickerScreen.addConnectingLines has cyclomatic complexity 17 (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":"core/src/com/unciv/ui/screens/pickerscreens/PromotionPickerScreen.kt"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"297712b28b4bb6f73f3f2f09a387c15fa08d62cf1e7c76190d08176e6ad30b95"}},{"ruleId":"D1","level":"warning","message":{"text":"BarbarianManager.placeBarbarianEncampment (cyclomatic 16): BarbarianManager.placeBarbarianEncampment has cyclomatic complexity 16 (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":"core/src/com/unciv/logic/automation/civilization/BarbarianManager.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"656c97ad15ca3419909f852e3584c56d04e107bd28b6a0dd1ee3c8063ec035ee"}},{"ruleId":"D1","level":"warning","message":{"text":"DiplomacyAutomation.wantsToSignDefensivePact (cyclomatic 16): DiplomacyAutomation.wantsToSignDefensivePact has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77e9a249431fcb90d9b0405bd3d36863f36e9d316c380a55baaf61615923335"}},{"ruleId":"D1","level":"warning","message":{"text":"NextTurnAutomation.automateCivMoves (cyclomatic 16): NextTurnAutomation.automateCivMoves has cyclomatic complexity 16 (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":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb531e8c792b29eafdaa5e332f408fca4c57c5b83a1269340994240a7c7474c"}},{"ruleId":"D1","level":"warning","message":{"text":"AirUnitAutomation.automateFighter (cyclomatic 16): AirUnitAutomation.automateFighter has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20c0ef7a2ffa753d6676df3780129f50567dd40dc2de61b60f91cfe9d11a06b"}},{"ruleId":"D1","level":"warning","message":{"text":"BattleHelper.getCityAttackValue (cyclomatic 16): BattleHelper.getCityAttackValue has cyclomatic complexity 16 (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":"core/src/com/unciv/logic/automation/unit/BattleHelper.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bb5c0efc7cfb916011c4eaef95274ddcb7b6f4ba0e8c49f915de92872b7295"}},{"ruleId":"D1","level":"warning","message":{"text":"SpecificUnitAutomation.automateImprovementPlacer (cyclomatic 16): SpecificUnitAutomation.automateImprovementPlacer has cyclomatic complexity 16 (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":"core/src/com/unciv/logic/automation/unit/SpecificUnitAutomation.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52436b21f5e722a9c33155b0b706eff39e2fcebf647f963c38b7cd2bdd3aecf"}},{"ruleId":"D1","level":"warning","message":{"text":"UnitAutomation.tryRetreat (cyclomatic 16): UnitAutomation.tryRetreat has cyclomatic complexity 16 (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":"core/src/com/unciv/logic/automation/unit/UnitAutomation.kt"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef09334bbb339cfdc7210a94c17be08a146f5b3dd86749331f74bd3bcb18d39"}},{"ruleId":"D1","level":"warning","message":{"text":"UnitAutomation.tryHealUnit (cyclomatic 16): UnitAutomation.tryHealUnit has cyclomatic complexity 16 (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":"core/src/com/unciv/logic/automation/unit/UnitAutomation.kt"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"5966cd83ddd292b7d2049b5febef844df2fc89e5737a0a5ea8a9af130b25f0cd"}},{"ruleId":"D1","level":"warning","message":{"text":"CityConquestFunctions.liberateCity (cyclomatic 16): CityConquestFunctions.liberateCity has cyclomatic complexity 16 (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":"core/src/com/unciv/logic/city/managers/CityConquestFunctions.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0ee03bdf00d896c7b8748d2595d4f3fbdddef28e348b0026c75672e5c07161"}},{"ruleId":"D1","level":"warning","message":{"text":"CityPopulationManager.unassignExtraPopulation (cyclomatic 16): CityPopulationManager.unassignExtraPopulation has cyclomatic complexity 16 (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":"core/src/com/unciv/logic/city/managers/CityPopulationManager.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"2574cc551536d621d9f8a4c317187c89f3048b67ea7182eaa480b824a1869c10"}},{"ruleId":"D1","level":"warning","message":{"text":"CityStateFunctions.updateAllyCivForCityState (cyclomatic 16): CityStateFunctions.updateAllyCivForCityState has cyclomatic complexity 16 (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":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"298709307257d065c32eaf905bbfa10004cd5955dddd27b87e553d83aad5303c"}},{"ruleId":"D1","level":"warning","message":{"text":"StartNormalizer.normalizeProduction (cyclomatic 16): StartNormalizer.normalizeProduction has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/mapregions/StartNormalizer.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a514a522c0e32e3bed7916f8476b9f87823d301d448226f1fddaf24b722e4e5b"}},{"ruleId":"D1","level":"warning","message":{"text":"StartNormalizer.placeFoodBonuses (cyclomatic 16): StartNormalizer.placeFoodBonuses has cyclomatic complexity 16 (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":"core/src/com/unciv/logic/map/mapgenerator/mapregions/StartNormalizer.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"628a909f6e1472b14274519a0a0d0e2048a0975b09ea2b018d1699138ae24ee3"}},{"ruleId":"D1","level":"warning","message":{"text":"Milestone.getFocus (cyclomatic 16): Milestone.getFocus has cyclomatic complexity 16 (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 is NOT this file\u0027s highest cyclomatic complexity: Milestone.getFocusFromCountable (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Victory.kt"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f400ae927269a4227bc7e0299c33c3b7ecb118208c419d628aee7982992986a"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseRulesetValidator.checkPromotionCircularReferences (cyclomatic 16): BaseRulesetValidator.checkPromotionCircularReferences has cyclomatic complexity 16 (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":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"653a2f528cebe491ca7093b324c39cf821f03df4dc208326eb0ed7de002781c8"}},{"ruleId":"D1","level":"warning","message":{"text":"RulesetValidator.checkTilesetSanity (cyclomatic 16): RulesetValidator.checkTilesetSanity has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d1958d6e411d793daa8c1afa895206d2cb8873074620f819eddff3a51f1028"}},{"ruleId":"D1","level":"warning","message":{"text":"UniqueValidator.getModifierErrors (cyclomatic 16): UniqueValidator.getModifierErrors has cyclomatic complexity 16 (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":"core/src/com/unciv/models/ruleset/validation/UniqueValidator.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"5275220f7f5d85635b647783c622b0a91724a23eeb4d890c5046f29c9b8e3eb1"}},{"ruleId":"D1","level":"warning","message":{"text":"SkinStrings.getUiBackground (cyclomatic 16): SkinStrings.getUiBackground has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/skins/SkinStrings.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b68afc9c91e0be50681b73bf81912d99e69d786191d1b8f95b34f225297ce7"}},{"ruleId":"D1","level":"warning","message":{"text":"FontRulesetIcons.addRulesetImages (cyclomatic 16): FontRulesetIcons.addRulesetImages has cyclomatic complexity 16 (threshold 15). 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":"core/src/com/unciv/ui/components/fonts/FontRulesetIcons.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d69f8002859544c49cf783287bd64f5265e41d68f1dc7d413d8d88a09b0832c"}},{"ruleId":"D1","level":"warning","message":{"text":"CityButton.updateHiddenUnitMarkers (cyclomatic 16): CityButton.updateHiddenUnitMarkers has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/tilegroups/citybutton/CityButton.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"4635e22429d425aa0e6965afc933620373ad97d1396589022ef4344c5584a8ca"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalPoliticsOverviewTable.updateDiagram (cyclomatic 16): GlobalPoliticsOverviewTable.updateDiagram has cyclomatic complexity 16 (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":"core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsOverviewTable.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"3294c84d80f00a0f2faf1d0c18a7b5942916af9ca97aae71aafcb47fd6268fc3"}},{"ruleId":"D1","level":"warning","message":{"text":"TechPickerScreen.createTechTable (cyclomatic 16): TechPickerScreen.createTechTable has cyclomatic complexity 16 (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":"core/src/com/unciv/ui/screens/pickerscreens/TechPickerScreen.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b8ad346b78ea873ec6a344503c58df462018d464f61d49dc9c9aac74de4c5f"}},{"ruleId":"D1","level":"warning","message":{"text":"TechPickerScreen.addConnectingLines (cyclomatic 16): TechPickerScreen.addConnectingLines has cyclomatic complexity 16 (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":"core/src/com/unciv/ui/screens/pickerscreens/TechPickerScreen.kt"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f5d3b360f170af4bd10d49ce1c0f2ab540e86243e8b4171de2a70b6aa78895"}},{"ruleId":"D1","level":"warning","message":{"text":"WorldMapHolder.moveUnitToTargetTile (cyclomatic 16): WorldMapHolder.moveUnitToTargetTile has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c55fce737f762171869985a94bb0692b8862813c5ea6b2cb709e4b0254c6879"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemUtils.getSystemInfo (cyclomatic 16): SystemUtils.getSystemInfo has cyclomatic complexity 16 (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":"desktop/src/com/unciv/app/desktop/SystemUtils.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83319723ece9c5038a1c78bea18d093602c4bfe48d41e566b5fd998e2fcb22f"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueTriggerActivation.getTriggerFunction (cognitive 501): UniqueTriggerActivation.getTriggerFunction has cognitive complexity 501 (threshold 15). Drivers by points: if/else 215 (408 pts), boolean chains 43, loops 18 (39 pts), match/switch 7 (11 pts) (nesting depth added 218). 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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"9775bfd38423831ae0b3c5362a26f21d2f23818a1fce3d8138dfefa0b3ab436d"}},{"ruleId":"D2","level":"warning","message":{"text":"Ruleset.load (cognitive 89): Ruleset.load has cognitive complexity 89 (threshold 15). Drivers by points: if/else 41 (65 pts), loops 8 (20 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 37). 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":"core/src/com/unciv/models/ruleset/Ruleset.kt"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1039603d6d617f163939bd130f719a76439bb5983e0fa4bf0efe84b211cb73b"}},{"ruleId":"D2","level":"warning","message":{"text":"WorldMapTileUpdater.updateTilesForSelectedUnit (cognitive 87): WorldMapTileUpdater.updateTilesForSelectedUnit has cognitive complexity 87 (threshold 15). Drivers by points: if/else 35 (59 pts), loops 9 (18 pts), boolean chains 10 (nesting depth added 33). 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":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapTileUpdater.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"55739d827d2e4711e6135310483c314be8207d802f3522e5c318075bcd234d46"}},{"ruleId":"D2","level":"warning","message":{"text":"Building.getRejectionReasons (cognitive 85): Building.getRejectionReasons has cognitive complexity 85 (threshold 15). Drivers by points: if/else 35 (68 pts), boolean chains 9, loops 5 (6 pts), match/switch 1 (2 pts) (nesting depth added 35). 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":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b80d96dd624659327a949a70b52d98fc6386e823cb745eb901c07939c10a10"}},{"ruleId":"D2","level":"warning","message":{"text":"Milestone.getVictoryScreenButtons (cognitive 85): Milestone.getVictoryScreenButtons has cognitive complexity 85 (threshold 15). Drivers by points: if/else 25 (58 pts), loops 7 (14 pts), boolean chains 12, match/switch 1 (nesting depth added 40). 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":"core/src/com/unciv/models/ruleset/Victory.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00089e6cc5121868225921756c739355774f9db2cf5c9b8f869a27dde9486c5"}},{"ruleId":"D2","level":"warning","message":{"text":"Conditionals.conditionalApplies (cognitive 70): Conditionals.conditionalApplies has cognitive complexity 70 (threshold 15). Drivers by points: boolean chains 38, if/else 26 (31 pts), match/switch 1 (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/unique/Conditionals.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"bace56151cfb1eaaebfa55bfafa6f3d32428b8e404290a161115134560426fd5"}},{"ruleId":"D2","level":"warning","message":{"text":"TileGroupMap.draw (cognitive 60): TileGroupMap.draw has cognitive complexity 60 (threshold 15). Drivers by points: if/else 15 (42 pts), loops 4 (12 pts), match/switch 1 (4 pts), boolean chains 2 (nesting depth added 38). 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":"core/src/com/unciv/ui/components/tilegroups/TileGroupMap.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"648a21a740367b88596996b9e8c5a001a11b6a0ffcf6c9d0c0a2f52d8c53d7b3"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitMovement.getShortestPath (cognitive 56): UnitMovement.getShortestPath has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (37 pts), loops 5 (13 pts), boolean chains 6 (nesting depth added 28). 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":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d61fdecf9b0e9853543585339297dab96917f9cf58987e58241f15403a84b74"}},{"ruleId":"D2","level":"warning","message":{"text":"UncivServerRunner.serverRun (cognitive 54): UncivServerRunner.serverRun has cognitive complexity 54 (threshold 15). Drivers by points: if/else 30 (42 pts), match/switch 2 (5 pts), error handling 2 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 17). 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":"server/src/com/unciv/app/server/UncivServer.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"529283b87ba89bb1300bc13046b6efeffc486bc3d3ea20d2f589000acb8dd794"}},{"ruleId":"D2","level":"warning","message":{"text":"CityConstructions.completeConstruction (cognitive 53): CityConstructions.completeConstruction has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (40 pts), loops 5 (11 pts), boolean chains 2 (nesting depth added 24). 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":"core/src/com/unciv/logic/city/CityConstructions.kt"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b92177d682462f2d2eb8664356799e78673d3a1cf1c91d4e11e6f3b26f7b4c2"}},{"ruleId":"D2","level":"warning","message":{"text":"CivilianUnitAutomation.automateCivilianUnit (cognitive 52): CivilianUnitAutomation.automateCivilianUnit has cognitive complexity 52 (threshold 15). Drivers by points: if/else 30 (39 pts), boolean chains 13 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/CivilianUnitAutomation.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56b0a851dd57ae7aac0badd89917274ba6f47b695b4267b4e0fe78e1a234815"}},{"ruleId":"D2","level":"warning","message":{"text":"MapElevationGenerator.cellularMountainRanges (cognitive 48): MapElevationGenerator.cellularMountainRanges has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (39 pts), loops 3 (5 pts), boolean chains 4 (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":"core/src/com/unciv/logic/map/mapgenerator/MapElevationGenerator.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de4a317bee5375d99653e7548eff67ce1e06a07a15d1df5b5b703ca07cd58ca"}},{"ruleId":"D2","level":"warning","message":{"text":"TradeEvaluation.evaluateSellCost (cognitive 48): TradeEvaluation.evaluateSellCost has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (28 pts), match/switch 6 (12 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 19). 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":"core/src/com/unciv/logic/trade/TradeEvaluation.kt"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9232ae88b74c579279c5807bd9f0f313cae84b97576f0012d9bf2b6d96eb1ac"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionTree.update (cognitive 48): PromotionTree.update has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (31 pts), loops 7 (11 pts), match/switch 1 (4 pts), boolean chains 2 (nesting depth added 21). 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":"core/src/com/unciv/ui/screens/pickerscreens/PromotionTree.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"09901c7b4c12055dc6331b5c6991e4586d9674baa6322b25e6f3b751971dc6db"}},{"ruleId":"D2","level":"warning","message":{"text":"BattleTable.simulateBattle (cognitive 48): BattleTable.simulateBattle has cognitive complexity 48 (threshold 15). Drivers by points: if/else 24 (33 pts), boolean chains 10, match/switch 2 (5 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":"core/src/com/unciv/ui/screens/worldscreen/bottombar/BattleTable.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac667f5e9c45610101aaf0a27e3dfb8dd44200d67ade6eb46bd7f613b1f206d"}},{"ruleId":"D2","level":"warning","message":{"text":"TradeLogic.acceptTrade (cognitive 47): TradeLogic.acceptTrade has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 10, loops 5 (8 pts), match/switch 2 (3 pts) (nesting depth added 13). 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":"core/src/com/unciv/logic/trade/TradeLogic.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"58feb4c9685a0eda8c2716729081af94e9abcfb4e3a7f436b962a9f014afa231"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseUnit.getRejectionReasons (cognitive 47): BaseUnit.getRejectionReasons has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (28 pts), loops 9 (13 pts), boolean chains 6 (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":"core/src/com/unciv/models/ruleset/unit/BaseUnit.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8a43eec2773edbd0c7582e5182421dfb8d6a33206d6d0f24fb930da940f834"}},{"ruleId":"D2","level":"warning","message":{"text":"TradeAutomation.getCounteroffer (cognitive 46): TradeAutomation.getCounteroffer has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 10, loops 7 (9 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":"core/src/com/unciv/logic/automation/civilization/TradeAutomation.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ef5d7965065c2d53d498ee9f1b844c8de1d738cb1f67bb30f3430ca59cced5"}},{"ruleId":"D2","level":"warning","message":{"text":"DiplomacyTurnManager.nextTurnFlags (cognitive 46): DiplomacyTurnManager.nextTurnFlags has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 3 (8 pts), match/switch 2 (6 pts), boolean chains 4 (nesting depth added 26). 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":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyTurnManager.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"587d9ce8efe46252e241ad15ead1a35c1f7c56de62bf988e694ac147871abb95"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerAutomation.getImprovementRanking (cognitive 45): WorkerAutomation.getImprovementRanking has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (34 pts), boolean chains 11 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3b44480708284feb5f260e66f9a31d6ddfbfa7351c81172004b3f64335b968"}},{"ruleId":"D2","level":"warning","message":{"text":"MapGenerator.applyHumidityAndTemperature (cognitive 45): MapGenerator.applyHumidityAndTemperature has cognitive complexity 45 (threshold 15). Drivers by points: if/else 22 (37 pts), match/switch 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 17). 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":"core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d14e6e2db0e75391627797abc4b21b031e4d4673ad6d3d38aafe3d712e67860"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueDocsWriter.writeUniqueTypes (cognitive 45): UniqueDocsWriter.writeUniqueTypes has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (41 pts), loops 3 (4 pts) (nesting depth added 23). 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":"desktop/src/com/unciv/app/desktop/UniqueDocsWriter.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f2d8d61f7c576f5c2acd7553b40772477fbef9c3a365da426375ca9ad7c93c"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitMovement.getMovementToTilesAtPosition (cognitive 44): UnitMovement.getMovementToTilesAtPosition has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 6, loops 3 (6 pts), match/switch 1 (4 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":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1477d624b6d0511c8fc0bfc5c299b4b731d0679964e94f7b91cbc707b91e4cd8"}},{"ruleId":"D2","level":"warning","message":{"text":"TradeEvaluation.evaluateBuyCost (cognitive 44): TradeEvaluation.evaluateBuyCost has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (33 pts), match/switch 3 (6 pts), boolean chains 5 (nesting depth added 17). 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":"core/src/com/unciv/logic/trade/TradeEvaluation.kt"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2e05ad9076f32c12c4826dbc80e7552713c707fe61d9f6aeffe1891a4cf856"}},{"ruleId":"D2","level":"warning","message":{"text":"OffersListScroll.update (cognitive 44): OffersListScroll.update has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (27 pts), match/switch 3 (8 pts), boolean chains 5, loops 3 (4 pts) (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":"core/src/com/unciv/ui/screens/diplomacyscreen/OffersListScroll.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6dfe00483b4be351a4e930f218d0e78ba7e107d3e67f7d52f29f4ba651ae49f"}},{"ruleId":"D2","level":"warning","message":{"text":"SpecificUnitAutomation.automateSettlerActions (cognitive 43): SpecificUnitAutomation.automateSettlerActions has cognitive complexity 43 (threshold 15). Drivers by points: if/else 23 (28 pts), boolean chains 15 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/SpecificUnitAutomation.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3afe5a9ddb0c0183531ad275379e4523eb655d9b109b53d2e0e1d5993e23fb1"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseUnitDescriptions.getBaseUnitCivilopediaTextLines (cognitive 43): BaseUnitDescriptions.getBaseUnitCivilopediaTextLines has cognitive complexity 43 (threshold 15). Drivers by points: if/else 25 (30 pts), boolean chains 8, loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/BaseUnitDescriptions.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58fabe1ae763112b9b6be6d099f2e0496e1b2686ea305cf240b1b165ccf9208"}},{"ruleId":"D2","level":"warning","message":{"text":"AirUnitAutomation.getNukeLocationValue (cognitive 42): AirUnitAutomation.getNukeLocationValue has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (33 pts), boolean chains 5, loops 2 (4 pts) (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":"core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de7f328ba2de62fbeae0c7ba92aec5d44ba7c6dfb0800b2fabfe5fe00b4f174"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitMovement.moveToTile (cognitive 42): UnitMovement.moveToTile has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (30 pts), boolean chains 8, loops 3 (4 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":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d3113a412eb629b657356af536cf5f2ab0645dd1377b4bdc0a0c8226644d38"}},{"ruleId":"D2","level":"warning","message":{"text":"TileDescription.toMarkup (cognitive 42): TileDescription.toMarkup has cognitive complexity 42 (threshold 15). Drivers by points: if/else 24 (31 pts), boolean chains 10, loops 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/TileDescription.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"07efcc3c0c31c3a5cbef06676dc88da3ef039f631e6a798534e3122df7882a9f"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitActionsTable.update (cognitive 42): UnitActionsTable.update has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (26 pts), loops 8 (13 pts), boolean chains 3 (nesting depth added 14). 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":"core/src/com/unciv/ui/screens/worldscreen/unit/actions/UnitActionsTable.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86ef3123963e4b46d3be57d3970972135630a0da7f69ddb5d5e2a6dbe0c5db3"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitAutomation.automateUnitMoves (cognitive 40): UnitAutomation.automateUnitMoves has cognitive complexity 40 (threshold 15). Drivers by points: if/else 27 (29 pts), boolean chains 11 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/UnitAutomation.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22679f5bfd97b9d29b3d5b9c5d51e6e11761706329c437e25d84acedefdc2ee"}},{"ruleId":"D2","level":"warning","message":{"text":"ExploredRegion.expandToInclude (cognitive 40): ExploredRegion.expandToInclude has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (35 pts), boolean chains 5 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/ExploredRegion.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"921ef49b17e26ee93cc97360ac1096a8cc35c2ca6b77f87d4a9f388a65404808"}},{"ruleId":"D2","level":"warning","message":{"text":"TileStatFunctions.getTileStatsBreakdown (cognitive 40): TileStatFunctions.getTileStatsBreakdown has cognitive complexity 40 (threshold 15). Drivers by points: if/else 26 (36 pts), boolean chains 4 (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":"core/src/com/unciv/logic/map/tile/TileStatFunctions.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b31dc0743023c1fe603130bc2562187c3ba615cd13cf6df866da44f8357c11"}},{"ruleId":"D2","level":"warning","message":{"text":"Unique.getReplacementText (cognitive 40): Unique.getReplacementText has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 10, match/switch 1 (4 pts), loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/unique/Unique.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"03bab8df82e76ba4fa8372bd2f1565d771ee6f9dbb9f490a9394d3c41c763f95"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRulesetValidator.checkUnit (cognitive 40): BaseRulesetValidator.checkUnit has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 9 (12 pts), boolean chains 3 (nesting depth added 17). 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":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2d27f6bd6f79ad14a5fd8b8ca719186ed70e85efca89e1bc00777747fdf7e3"}},{"ruleId":"D2","level":"warning","message":{"text":"BuildingDescriptions.getBuildingCivilopediaTextLines (cognitive 40): BuildingDescriptions.getBuildingCivilopediaTextLines has cognitive complexity 40 (threshold 15). Drivers by points: if/else 26 (32 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/BuildingDescriptions.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"8243638661a2c2f3691c01fd3b17f46422bde478b1e4085c671a80be38922cb0"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailedStatsPopup.traverseTree (cognitive 40): DetailedStatsPopup.traverseTree has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (29 pts), loops 4 (7 pts), match/switch 1 (3 pts), boolean chains 1 (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":"core/src/com/unciv/ui/screens/cityscreen/DetailedStatsPopup.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1492769de8dde3718119d651e3b272fc35f8ac74be9bbab9e051af52079ea741"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitMovement.cannotPassThroughReason (cognitive 39): UnitMovement.cannotPassThroughReason has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 15 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"c026d4ad726ff0fcf449f6cd831efc654577ec49f456523d083dc1aad1c03edd"}},{"ruleId":"D2","level":"warning","message":{"text":"BuildingDescriptions.getDescription (cognitive 39): BuildingDescriptions.getDescription has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (30 pts), loops 5 (7 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/BuildingDescriptions.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"043ad57b933621fee48b68337171bcb45e5754bde500d67a2eb21cb4773a8405"}},{"ruleId":"D2","level":"warning","message":{"text":"RoadBetweenCitiesAutomation.getRoadsToBuildFromCity (cognitive 38): RoadBetweenCitiesAutomation.getRoadsToBuildFromCity has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (30 pts), boolean chains 4, loops 2 (3 pts), match/switch 1 (nesting depth added 13). 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":"core/src/com/unciv/logic/automation/unit/RoadBetweenCitiesAutomation.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3ebf6867e3cb4c079811d2aa6598c4b3d269acacb37373eff86e3289bc33f7"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiV2.handleWebSocket (cognitive 38): ApiV2.handleWebSocket has cognitive complexity 38 (threshold 15). Drivers by points: error handling 7 (18 pts), if/else 4 (8 pts), loops 3 (6 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 21). 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":"core/src/com/unciv/logic/multiplayer/apiv2/ApiV2.kt"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8eb89589eda25586dcf4b105819bdd561e015aad311a52d7cb4249b3f1ca2e"}},{"ruleId":"D2","level":"warning","message":{"text":"LineChart.prepareForDraw (cognitive 38): LineChart.prepareForDraw has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22 (30 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/victoryscreen/LineChart.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3fa9e98602337987721d1fcd010a361432f73f203181f4f9c44d984eb3d908"}},{"ruleId":"D2","level":"warning","message":{"text":"RegionStartFinder.evaluateTileForStart (cognitive 37): RegionStartFinder.evaluateTileForStart has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (33 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 17). 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":"core/src/com/unciv/logic/map/mapgenerator/mapregions/RegionStartFinder.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa17e9ceece9ef08cf429770bec1f885b52721a9cb908f7dd2240723e810072"}},{"ruleId":"D2","level":"warning","message":{"text":"MovementCost.getMovementCostBetweenAdjacentTiles (cognitive 37): MovementCost.getMovementCostBetweenAdjacentTiles has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23 (24 pts), boolean chains 13 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/movement/MovementCost.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"09289fcb95aed8ba02d7ebad9fdd65d2d08d52f02a08086082660600c9c8ff0a"}},{"ruleId":"D2","level":"warning","message":{"text":"CityStateDiplomacyTable.getCityStateDiplomacyTableHeader (cognitive 37): CityStateDiplomacyTable.getCityStateDiplomacyTableHeader has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (28 pts), loops 3 (5 pts), boolean chains 3, match/switch 1 (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":"core/src/com/unciv/ui/screens/diplomacyscreen/CityStateDiplomacyTable.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"15037216669bb75c39369c0ed41cbd7e2d3072e6a2e3c6294dee37bb93e5d725"}},{"ruleId":"D2","level":"warning","message":{"text":"MapElevationGenerator.cellularHills (cognitive 34): MapElevationGenerator.cellularHills has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 6, loops 3 (5 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/MapElevationGenerator.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4f6b12bae108f80cb0b01e48ed595f15052c0dd30381d54895df4ffa26ce5c"}},{"ruleId":"D2","level":"warning","message":{"text":"Tokenizer.tokenize (cognitive 34): Tokenizer.tokenize has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (33 pts), loops 1 (nesting depth added 14). 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":"core/src/com/unciv/models/ruleset/unique/expressions/Tokenizer.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28395c4fe2b0c7f2df6a61551b107c91e5fb6dd10241d10451204e655ba5692"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailedStatsPopup.update (cognitive 34): DetailedStatsPopup.update has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (23 pts), loops 5 (6 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/cityscreen/DetailedStatsPopup.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af17cb28fb9bf8b28806c45d2392f3050a25ff39199af76426d606354ec6b29"}},{"ruleId":"D2","level":"warning","message":{"text":"TechPickerScreen.addConnectingLines (cognitive 34): TechPickerScreen.addConnectingLines has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (21 pts), match/switch 2 (6 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/pickerscreens/TechPickerScreen.kt"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab26c86efc908ce65d00f15a98ac667e6728cb1a56930f1829f5ac2ceb4e44bc"}},{"ruleId":"D2","level":"warning","message":{"text":"TurnManager.startTurn (cognitive 33): TurnManager.startTurn has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 9 (13 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/managers/TurnManager.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"933bf34180df36a8795b83db3c719dca4ebf1c1d199bb1e742581b46ccdd7698"}},{"ruleId":"D2","level":"warning","message":{"text":"Simulation.text (cognitive 33): Simulation.text has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 17). 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":"core/src/com/unciv/logic/simulation/Simulation.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"28da23f45142364dafdeab2321d1dacc21cb7fba01248d30272c9d99aa47191d"}},{"ruleId":"D2","level":"warning","message":{"text":"TileLayerBorders.updateBorders (cognitive 33): TileLayerBorders.updateBorders has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 8, loops 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/tilegroups/layers/TileLayerBorders.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05f00f17ccb4cfd2f90837a51ae5e96fbe978dd6c696544f9e5f0086f4442b7"}},{"ruleId":"D2","level":"warning","message":{"text":"TechnologyDescriptions.getTechEnabledIcons (cognitive 33): TechnologyDescriptions.getTechEnabledIcons has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18 (22 pts), loops 6, boolean chains 3, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/TechnologyDescriptions.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7a49282e11cc4d618fe7b5b4aba98626406a541aa449512bf75052382dcbf9"}},{"ruleId":"D2","level":"warning","message":{"text":"RoadToAutomation.automateConnectRoad (cognitive 32): RoadToAutomation.automateConnectRoad has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 13). 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":"core/src/com/unciv/logic/automation/unit/RoadToAutomation.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7258292df39f0a015b3351397fd2a0b0e2eb65e1c67d06de22c743f9e10457f"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitAutomation.tryRetreat (cognitive 32): UnitAutomation.tryRetreat has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/UnitAutomation.kt"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8421c853b61109a86f0e9d2a8bcbe49be230aea819fea0461bdafed7d18461"}},{"ruleId":"D2","level":"warning","message":{"text":"main (cognitive 32): main has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 16, if/else 12, ternaries 2, error handling 1, other 1. Of this number, 18 points are the body\u0027s own statements and 14 belong to 7 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/http-fetch-engine/browser-fetch-contract.cjs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c018b0219def413d944ec7dbccbd929f139bdcfb3d07977fb676b61b1947f578"}},{"ruleId":"D2","level":"warning","message":{"text":"TileLayerTerrain.getTileBaseImageLocations (cognitive 31): TileLayerTerrain.getTileBaseImageLocations has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 3, match/switch 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/tilegroups/layers/TileLayerTerrain.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4e2207bb83849028a78679d39001487a772a35b0a7d50fca723e59c8d5d2da"}},{"ruleId":"D2","level":"warning","message":{"text":"CivilopediaSearchPopup.searchLoop (cognitive 31): CivilopediaSearchPopup.searchLoop has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 17). 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":"core/src/com/unciv/ui/screens/civilopediascreen/CivilopediaSearchPopup.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd5a686997bac41fcb11d049139d02148ba71ef95581cac723c6cd73c8439e1"}},{"ruleId":"D2","level":"warning","message":{"text":"NewGameScreen.getErrorMessage (cognitive 31): NewGameScreen.getErrorMessage has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (2 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":"core/src/com/unciv/ui/screens/newgamescreen/NewGameScreen.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf9cea45982f066daf16f30885c287e7312eb2c92c1130e635ebde1570a646a"}},{"ruleId":"D2","level":"warning","message":{"text":"ImprovementPickerScreen.getProblemReport (cognitive 31): ImprovementPickerScreen.getProblemReport has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/pickerscreens/ImprovementPickerScreen.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"e472592857adedc8587b83161ad4ba45ada9d77ce8af34f9a0da00735c0ac5fc"}},{"ruleId":"D2","level":"warning","message":{"text":"PromotionPickerScreen.addConnectingLines (cognitive 31): PromotionPickerScreen.addConnectingLines has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 4 (5 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 13). 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":"core/src/com/unciv/ui/screens/pickerscreens/PromotionPickerScreen.kt"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd55d092bc212c2e74bdb325b44b43107479b7aa2dc54c54d625eb1d0f6adb62"}},{"ruleId":"D2","level":"warning","message":{"text":"Automation.allowSpendingResource (cognitive 30): Automation.allowSpendingResource has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 5, loops 2 (3 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":"core/src/com/unciv/logic/automation/Automation.kt"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"19228356e0fa2ffd4763c7c37bbfd508eb573f0aa5e443cee1e8372922c4e5c6"}},{"ruleId":"D2","level":"warning","message":{"text":"DiplomacyAutomation.offerPeaceTreaty (cognitive 30): DiplomacyAutomation.offerPeaceTreaty has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 5, loops 1 (nesting depth added 14). 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":"core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30d51d55f553c6af88edcbf0506f51873271c0fc0c00ab1c5e95d31b5825103"}},{"ruleId":"D2","level":"warning","message":{"text":"ReligionAutomation.beliefBonusForCity (cognitive 30): ReligionAutomation.beliefBonusForCity has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 2 (5 pts), loops 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":"core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c817b1c8eccf24d2025f8ad02dd3bccfffa2df31c1bfc7c2d4cc18fc8465fd35"}},{"ruleId":"D2","level":"warning","message":{"text":"CityStateFunctions.getTributeModifiers (cognitive 30): CityStateFunctions.getTributeModifiers has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20 (22 pts), boolean chains 7, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"d226687478055cd76bf6240a74a13884462ec4bf495f4a0b13861fb30bb604f2"}},{"ruleId":"D2","level":"warning","message":{"text":"MapGenerator.spawnLakesAndCoasts (cognitive 30): MapGenerator.spawnLakesAndCoasts has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 4 (13 pts), boolean chains 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":"core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"05446f1946a9291947ceec2deb92505f8a184ee9972238a62a9ff794767a08e0"}},{"ruleId":"D2","level":"warning","message":{"text":"NaturalWonderGenerator.placeNaturalWonder (cognitive 30): NaturalWonderGenerator.placeNaturalWonder has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 3, 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":"core/src/com/unciv/logic/map/mapgenerator/NaturalWonderGenerator.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6ba0fc9f9a830b8925793edecdc84301ccb583c71aa536fc1d89a42bb339a3"}},{"ruleId":"D2","level":"warning","message":{"text":"TradeLogic.getAvailableOffers (cognitive 30): TradeLogic.getAvailableOffers has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 6 (9 pts), boolean chains 7 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/trade/TradeLogic.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bcfd61d7812416819058d735951456cc9043b5f40abcbf2aaf4299118eebc4"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourcesOverviewTab.getExtraDrilldown (cognitive 30): ResourcesOverviewTab.getExtraDrilldown has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 8 (12 pts), boolean chains 2 (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":"core/src/com/unciv/ui/screens/overviewscreen/ResourcesOverviewTab.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"220fca1df13578cbd00d07f37d049d95a925edaa59bfae215f665e950e8f293d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorldScreen.update (cognitive 30): WorldScreen.update has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 6, loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"29748df445e30384305c7fe1425f834768192c45bde98dc1897099beab7a9870"}},{"ruleId":"D2","level":"warning","message":{"text":"CivInfoTransientCache.updateProximity (cognitive 29): CivInfoTransientCache.updateProximity has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 5, loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/transients/CivInfoTransientCache.kt"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"da885d9bc236ed5b39134260adc0a8e8e503cd46930e0021692711a34eaa34d3"}},{"ruleId":"D2","level":"warning","message":{"text":"StartNormalizer.placeFoodBonuses (cognitive 29): StartNormalizer.placeFoodBonuses has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 6, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/mapregions/StartNormalizer.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e375cf398f651c872ee29a8d5deb2783228786bcc9937c26165655b3691e391a"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRulesetValidator.addTechErrors (cognitive 29): BaseRulesetValidator.addTechErrors has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 14). 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":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dbdffc88a1a3975a404eb46295a0cedec0c9e4d54693f88d89c67f8d44ecc5"}},{"ruleId":"D2","level":"warning","message":{"text":"ModCheckTab.runModChecker (cognitive 29): ModCheckTab.runModChecker has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 2 (3 pts), boolean chains 2 (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":"core/src/com/unciv/ui/popups/options/ModCheckTab.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfc3fbf753c327693971f9074c380ae35f70bf1ea35edb116b48d3df716ab3b"}},{"ruleId":"D2","level":"warning","message":{"text":"GameInfo.nextTurn (cognitive 28): GameInfo.nextTurn has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 14, if/else 10 (13 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/GameInfo.kt"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d7c456c0a38b7d4268d68df419e4d7be2a7b54422b9d1bf1eb1cfaa6acd3ce"}},{"ruleId":"D2","level":"warning","message":{"text":"MotivationToAttackAutomation.hasAtLeastMotivationToAttack (cognitive 28): MotivationToAttackAutomation.hasAtLeastMotivationToAttack has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 6, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/MotivationToAttackAutomation.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b656b82700795956106afd40689602579ef77db4d54b66ff1fc504ec805edc7"}},{"ruleId":"D2","level":"warning","message":{"text":"MotivationToAttackAutomation.getAttackPathsModifier (cognitive 28): MotivationToAttackAutomation.getAttackPathsModifier has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 5, loops 2 (3 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":"core/src/com/unciv/logic/automation/civilization/MotivationToAttackAutomation.kt"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"f432bc66b9f3757ae7c6feb017250016f5dd350bed053197ca830f536c9f04a9"}},{"ruleId":"D2","level":"warning","message":{"text":"Nuke.doNukeExplosionForTile (cognitive 28): Nuke.doNukeExplosionForTile has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 6, loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/battle/Nuke.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"31714d920991048a79cf344cf9bb2714639192b3c30ca2af635277397b8d1950"}},{"ruleId":"D2","level":"warning","message":{"text":"TileMap.forEachTileAtDistance (cognitive 28): TileMap.forEachTileAtDistance has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 6, loops 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":"core/src/com/unciv/logic/map/TileMap.kt"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"375e1e2b5487b9f082ed8fb6d4f301a4dfeba2cad4186a6b40eb8568abd62ff1"}},{"ruleId":"D2","level":"warning","message":{"text":"ModManagementScreen.addModInfoFromRepoSearch (cognitive 28): ModManagementScreen.addModInfoFromRepoSearch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 2 (8 pts), boolean chains 3, loops 1 (nesting depth added 14). 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":"core/src/com/unciv/ui/screens/modmanager/ModManagementScreen.kt"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"042814fb4a7b9e2103caa153870d9df0a19a8c38f2530113414bfba4709c132f"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreatManager.getDistanceToClosestEnemyUnit (cognitive 27): ThreatManager.getDistanceToClosestEnemyUnit has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/ThreatManager.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7595235f75ad83dc417cb40953645448a7a955be835a17b1102218b92921f7e5"}},{"ruleId":"D2","level":"warning","message":{"text":"TargetHelper.getAttackableEnemies (cognitive 27): TargetHelper.getAttackableEnemies has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, loops 2 (3 pts), match/switch 1 (3 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":"core/src/com/unciv/logic/battle/TargetHelper.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b344d8f77d100a402f23ec95405a978ba4c5395aba1c947b090994db22bbb00"}},{"ruleId":"D2","level":"warning","message":{"text":"CityExpansionManager.rankTileForExpansion (cognitive 27): CityExpansionManager.rankTileForExpansion has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/managers/CityExpansionManager.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a721a52e71622ad3c5706ef54804eb9a78c9c52439f7f068b65a5247e4ecf375"}},{"ruleId":"D2","level":"warning","message":{"text":"CityPopulationManager.unassignExtraPopulation (cognitive 27): CityPopulationManager.unassignExtraPopulation has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 3, boolean chains 2, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/managers/CityPopulationManager.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a52b01109a3c083edc7f128616b39170807c31ea0beeeaf7f276995270122c"}},{"ruleId":"D2","level":"warning","message":{"text":"StartNormalizer.calculateFoodBonusesNeeded (cognitive 27): StartNormalizer.calculateFoodBonusesNeeded has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 14, if/else 8 (9 pts), match/switch 2 (4 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/mapregions/StartNormalizer.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2bf332376155c005eeee348f9ac620a151c4d7f898d4c368ddf0df67cfc97f"}},{"ruleId":"D2","level":"warning","message":{"text":"Policy.getCivilopediaTextLines (cognitive 27): Policy.getCivilopediaTextLines has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 4 (8 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Policy.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1891443afce6b63e03c0f62a48b5fd80962d8d4a995c7fa9ea0cb604c90f54e5"}},{"ruleId":"D2","level":"warning","message":{"text":"Milestone.getVictoryScreenButtonHeaderText (cognitive 27): Milestone.getVictoryScreenButtonHeaderText has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (22 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 8). 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":"core/src/com/unciv/models/ruleset/Victory.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5ea0322a6a33356728261980098ffd6ec11ef27d96da7c7f4cdceac6d7cd48"}},{"ruleId":"D2","level":"warning","message":{"text":"Terrain.getCivilopediaTextLines (cognitive 27): Terrain.getCivilopediaTextLines has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/tile/Terrain.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f2273964365b143a65b063bb1d9f33732595965736be9a0e19b0a5268a7a30"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicController.musicTimerTask (cognitive 27): MusicController.musicTimerTask has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 1, match/switch 1 (nesting depth added 13). 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":"core/src/com/unciv/ui/audio/MusicController.kt"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c74615b5e80e1bbbcf86c7a555f7cffaf729ae0ce984ce1a646aef8062ebb6"}},{"ruleId":"D2","level":"warning","message":{"text":"Scene2dExtensionsKt.equalizeColumns (cognitive 27): Scene2dExtensionsKt.equalizeColumns has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 14). 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":"core/src/com/unciv/ui/components/extensions/Scene2dExtensions.kt"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"badf99d6cf8c439b5ba180008f78436da9eb74e04873b839f53915992f9a3fc0"}},{"ruleId":"D2","level":"warning","message":{"text":"TileLayerTerrain.updateTileImage (cognitive 27): TileLayerTerrain.updateTileImage has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (22 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/tilegroups/layers/TileLayerTerrain.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c6ac952c361b7d20f444d47d41b8dbbda065901dd8abe2c33be7fc2607444c"}},{"ruleId":"D2","level":"warning","message":{"text":"ImprovementDescriptions.getCivilopediaTextLines (cognitive 27): ImprovementDescriptions.getCivilopediaTextLines has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 5, loops 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/ImprovementDescriptions.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"053e16b2034112b59c2675de046ebaf37575185b4d5b98a9525e433eb16ecc5c"}},{"ruleId":"D2","level":"warning","message":{"text":"CityStatsTable.addText (cognitive 27): CityStatsTable.addText has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 3, boolean chains 2, match/switch 2 (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":"core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"413518c7050a4f5d21b1979dfabceb53ea011c21718a9cc7c2077f89994d8900"}},{"ruleId":"D2","level":"warning","message":{"text":"TechPickerScreen.createTechTable (cognitive 27): TechPickerScreen.createTechTable has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 6 (7 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/pickerscreens/TechPickerScreen.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4b73d4aedefc3577a8cb54462f0516ee840619a076a95470a2483292b5d25e"}},{"ruleId":"D2","level":"warning","message":{"text":"GameInfo.setTransients (cognitive 26): GameInfo.setTransients has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 10 (11 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/GameInfo.kt"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adadf002c1ce3bf40b1275f6e1f957822a09dbacaf940a68765677613d26c39"}},{"ruleId":"D2","level":"warning","message":{"text":"MapRegions.assignRegions (cognitive 26): MapRegions.assignRegions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 8, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/mapregions/MapRegions.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48a80ac3a870941725264712c22957ad675188707d98fc74f139128f37c68d2"}},{"ruleId":"D2","level":"warning","message":{"text":"MapUnit.doAction (cognitive 26): MapUnit.doAction has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/MapUnit.kt"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20fee3f3fcf494a9a3330f9bb132dabc73382a29c11e930c8966f95696c9df4"}},{"ruleId":"D2","level":"warning","message":{"text":"AStarPathfinder.calculateNeighborNode (cognitive 26): AStarPathfinder.calculateNeighborNode has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/pathingmap/PathingMapAStarPathfinder.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7a37a790c52e7318738c96099cfa2a874f63a2851c9ef54f3cdc3878a548a6"}},{"ruleId":"D2","level":"warning","message":{"text":"TileImprovementFunctions.setImprovement (cognitive 26): TileImprovementFunctions.setImprovement has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4, loops 2 (4 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/tile/TileImprovementFunctions.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d7eb1ed06bf3a6202b4c368f1f953fee930471333c4c76ce0be4888143ec4c"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseUnit.evaluateForce (cognitive 26): BaseUnit.evaluateForce has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/unit/BaseUnit.kt"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc309cbb2330662ba612c1c3bbfde308ed6ee9775da795be404517f35b477f7"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueValidator.checkUnique (cognitive 26): UniqueValidator.checkUnique has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 7, loops 2 (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":"core/src/com/unciv/models/ruleset/validation/UniqueValidator.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"981e255cdf0a7e0d0f846d2020334c190372619abf7e014034611a416fb3ab53"}},{"ruleId":"D2","level":"warning","message":{"text":"CitizenManagementTable.update (cognitive 26): CitizenManagementTable.update has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/cityscreen/CitizenManagementTable.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc05c014775050894837aa35966ef5909b278ea7380b3955393ebf55466e1978"}},{"ruleId":"D2","level":"warning","message":{"text":"GameStarter.addCivTechs (cognitive 25): GameStarter.addCivTechs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 5 (11 pts) (nesting depth added 13). 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":"core/src/com/unciv/logic/GameStarter.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a11d85359fbc4c4a91ca34e4349d220673c02788cbb8b1dac7d36224612a8d"}},{"ruleId":"D2","level":"warning","message":{"text":"ReligionAutomation.beliefBonusForPlayer (cognitive 25): ReligionAutomation.beliefBonusForPlayer has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 4 (5 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"19424db6d5f895b68e955891bd1cfa47bab35b5ae5a105f4c0d3dac53859b36c"}},{"ruleId":"D2","level":"warning","message":{"text":"BattleHelper.getCityAttackValue (cognitive 25): BattleHelper.getCityAttackValue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/BattleHelper.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b087b925735c802ebe45b00b5baad93661a841bbad0a4fb1695e8c049441517"}},{"ruleId":"D2","level":"warning","message":{"text":"Battle.attack (cognitive 25): Battle.attack has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7098a4048659b4851a562a2d4a6a953b6a70e3cfefdfbedec83df2d94857e2c"}},{"ruleId":"D2","level":"warning","message":{"text":"DiplomacyTurnManager.nextTurnTrades (cognitive 25): DiplomacyTurnManager.nextTurnTrades has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 13). 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":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyTurnManager.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bdd7704515080e3d150eea38fcb16001902463d5f9f473f65f518d2d72c439"}},{"ruleId":"D2","level":"warning","message":{"text":"StrategicBonusResourcePlacementLogic.buildRuleLists (cognitive 25): StrategicBonusResourcePlacementLogic.buildRuleLists has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 6, loops 3 (5 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":"core/src/com/unciv/logic/map/mapgenerator/resourceplacement/StrategicBonusResourcePlacementLogic.kt"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"9315267eedf9ef0c2a0a51ee50923755b8efe0368d5ebed9335473483079d866"}},{"ruleId":"D2","level":"warning","message":{"text":"TileResource.generatesNaturallyOn (cognitive 25): TileResource.generatesNaturallyOn has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/tile/TileResource.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dccc81348c78ef14966f9c88b0a17ef204db485470bf5babdfc498c077294df"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalPoliticsOverviewTable.updateDiagram (cognitive 25): GlobalPoliticsOverviewTable.updateDiagram has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 5 (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":"core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsOverviewTable.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1e11ce0907c44e5ebaa049e37bb164af9ef945ff043844be9bcbac3d24b4b8"}},{"ruleId":"D2","level":"warning","message":{"text":"WorldMapHolder.onTileClicked (cognitive 25): WorldMapHolder.onTileClicked has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 6, match/switch 1 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a7c00e70eae177f4364fec31fef0c3f94572a2f5dc65c9af8a92bd3d118989"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiplayerTurnCheckWorker.doWork (cognitive 24): MultiplayerTurnCheckWorker.doWork has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 4 (6 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/com/unciv/app/MultiplayerTurnCheckWorker.kt"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"638bfa19c10178c0ed504fc4a3ebc5573883b3c648b9efeca13ecbf47eae13f5"}},{"ruleId":"D2","level":"warning","message":{"text":"Automation.rankStatsForCityWork (cognitive 24): Automation.rankStatsForCityWork has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/Automation.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6ac3b02fe9f8304c7b6a62e3a42981e74ceda29fbb11ea1b6e93892eda1640"}},{"ruleId":"D2","level":"warning","message":{"text":"Automation.chooseMilitaryUnit (cognitive 24): Automation.chooseMilitaryUnit has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 14, if/else 6 (8 pts), loops 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/Automation.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efea382a3fa52869aa10c93c27af7e2628c12d15b8c93d3a3024cdffeed7ec7"}},{"ruleId":"D2","level":"warning","message":{"text":"SpecificUnitAutomation.automateImprovementPlacer (cognitive 24): SpecificUnitAutomation.automateImprovementPlacer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 8, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/SpecificUnitAutomation.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bc3293bfb97b6e9d851c7ebf542da48fe401d7752f16365daf0ebbac73516b"}},{"ruleId":"D2","level":"warning","message":{"text":"CityStateFunctions.makeOtherCityStatesWaryOfAttacker (cognitive 24): CityStateFunctions.makeOtherCityStatesWaryOfAttacker has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99683d18c526a037c482e9b0afd733f1a14718e88d3c313baff459e58ab4bd0"}},{"ruleId":"D2","level":"warning","message":{"text":"DiplomacyFunctions.meetCiv (cognitive 24): DiplomacyFunctions.meetCiv has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyFunctions.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc0bc4974d0319610ae7dab499a6f6fcef71bb5c774074d735b5a4d6ea268cf"}},{"ruleId":"D2","level":"warning","message":{"text":"CivInfoTransientCache.discoverNaturalWonders (cognitive 24): CivInfoTransientCache.discoverNaturalWonders has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/transients/CivInfoTransientCache.kt"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb07afbc7fee727bf91d5fda4725bec70c4f5175ddc72395f5c38842aa446cd5"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitActionModifiers.activateSideEffects (cognitive 24): UnitActionModifiers.activateSideEffects has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 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":"core/src/com/unciv/logic/map/mapunit/actions/UnitActionModifiers.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"460f2b757f938d6f2321390e475d70b516922c10174d3c4540e7071afccdee1f"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageGetter.loadModAtlases (cognitive 24): ImageGetter.loadModAtlases has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 1 (3 pts), loops 2 (3 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":"core/src/com/unciv/ui/images/ImageGetter.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4de05807c941614e13c7a19ff17b65683e4eabed88027e90ef70685b5bfe30"}},{"ruleId":"D2","level":"warning","message":{"text":"TechnologyDescriptions.getCivilopediaTextLines (cognitive 24): TechnologyDescriptions.getCivilopediaTextLines has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (16 pts), loops 4 (8 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/TechnologyDescriptions.kt"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c438f0a9e807dc79c2b5dc78676f2f443a5a8ed77ec8dbc135aef110ea586579"}},{"ruleId":"D2","level":"warning","message":{"text":"CityConstructionsTable.getConstructionButton (cognitive 24): CityConstructionsTable.getConstructionButton has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (20 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"4043e2766b7e7600c3cf5215f4d807675ed68ef89afee703d3aefca589026aa0"}},{"ruleId":"D2","level":"warning","message":{"text":"NewGameScreen.startNewGame (cognitive 24): NewGameScreen.startNewGame has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (6 pts), error handling 3 (5 pts), boolean chains 1 (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":"core/src/com/unciv/ui/screens/newgamescreen/NewGameScreen.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"91da80aca1c6e37bcbe01de4a6afd3761023c7bbc09a431fdfc3f42bb8c407f8"}},{"ruleId":"D2","level":"warning","message":{"text":"TechPickerScreen.selectTechnology (cognitive 24): TechPickerScreen.selectTechnology has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/pickerscreens/TechPickerScreen.kt"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6765331ddf585a8d29c5e7dab46b6830b1f1cf933dfdcabf37809e9f1a16d4"}},{"ruleId":"D2","level":"warning","message":{"text":"VictoryScreenIllustrations.victoryCompletePercent (cognitive 24): VictoryScreenIllustrations.victoryCompletePercent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/victoryscreen/VictoryScreenIllustrations.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7bb2a09fbf1fdd97e53b0ae60b01c7fe913f4427c9d46208cd80ffeca21d1c9"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitPresenter.update (cognitive 24): UnitPresenter.update has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 2 (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":"core/src/com/unciv/ui/screens/worldscreen/unit/presenter/UnitPresenter.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"341a92e775fcef4dc6ada73218eab56c205e820bbf3b561d8cde129adfa0a4e9"}},{"ruleId":"D2","level":"warning","message":{"text":"NextTurnAutomation.trainSettler (cognitive 23): NextTurnAutomation.trainSettler has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"813c02f4d776f31613b83b2ce3c3ef47dfca32554adcd682a9c748baba41898f"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerAutomation.findTileToWork (cognitive 23): WorkerAutomation.findTileToWork has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 5, loops 2 (3 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":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c558546f9002a0439e9ca1a6be4257dcf27045b61483c1385fbc173ca314c6aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Battle.postBattleNotifications (cognitive 23): Battle.postBattleNotifications has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 5, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece6e776f741a22bf52db2c8c380a97bb21e02565fb07121143799ceddae35a9"}},{"ruleId":"D2","level":"warning","message":{"text":"CityStats.updateFinalStatList (cognitive 23): CityStats.updateFinalStatList has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 6 (7 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/CityStats.kt"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"465d1433ad9841b194a836a798ee28c461e97fd9dec9574ab3e11c9bf4f2c5d0"}},{"ruleId":"D2","level":"warning","message":{"text":"CityStateFunctions.updateAllyCivForCityState (cognitive 23): CityStateFunctions.updateAllyCivForCityState has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, loops 1 (2 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":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c693d3a3f860a38255a65bbca2fb50381f95f2f865a21445e4812648718922d"}},{"ruleId":"D2","level":"warning","message":{"text":"DeclareWar.breakTreaties (cognitive 23): DeclareWar.breakTreaties has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/DeclareWar.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"334b4a8994e1eb342705f22ae3355e15be6c95f3aab9f5030c2dfac248196e91"}},{"ruleId":"D2","level":"warning","message":{"text":"TechManager.moveToNewEra (cognitive 23): TechManager.moveToNewEra has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (8 pts), boolean chains 3 (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":"core/src/com/unciv/logic/civilization/managers/TechManager.kt"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"6231856a99ff6aca30896c38c1d62db594b5da5f6c86ef5c23237e21e9866bca"}},{"ruleId":"D2","level":"warning","message":{"text":"OdMapImport.build (cognitive 23): OdMapImport.build has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/OdMapImport.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d856f63cc654d7fb2e4bf4ad6a71a9d8ff7f361001c81e883556e4ea7663082"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitTurnManager.endTurn (cognitive 23): UnitTurnManager.endTurn has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9, loops 2 (nesting depth added 3). 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":"core/src/com/unciv/logic/map/mapunit/UnitTurnManager.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c3cfa489d70019335ee9683d6e4f6fbb531e2f047e5b8575f01d64d2f3b5d3"}},{"ruleId":"D2","level":"warning","message":{"text":"TileNormalizer.normalizeToRuleset (cognitive 23): TileNormalizer.normalizeToRuleset has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 6, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/tile/TileNormalizer.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ac683cf22b6d1815fa6fd4a0b7d04a32543a389fcaa03ccb8cd3a54c9a28e4"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRulesetValidator.addEraErrors (cognitive 23): BaseRulesetValidator.addEraErrors has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (6 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c270f28e2e64ae9d818771c7149422c496d038b440c6ea51db05f15c2499bfb9"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRulesetValidator.checkPromotionCircularReferences (cognitive 23): BaseRulesetValidator.checkPromotionCircularReferences has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 7 (9 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c9c41b4f99d07cad758b651ac21b542bf4e13b632b4c697588a05eb5614391"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueValidator.getModifierErrors (cognitive 23): UniqueValidator.getModifierErrors has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/UniqueValidator.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"86fbd4cce7bf7eb4c8ce4ee3a50ba0028d2177821c7e0a40bb9b235cdfbc0bce"}},{"ruleId":"D2","level":"warning","message":{"text":"GenerateStringsFromJSONs.serializeElement (cognitive 23): GenerateStringsFromJSONs.serializeElement has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 3 (7 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/translations/TranslationFileWriter.kt"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"2035453dbfae81dca7386dba0185316a504a59c03b763748866749d62c3761c6"}},{"ruleId":"D2","level":"warning","message":{"text":"NationDescriptions.getNationCivilopediaTextLines (cognitive 23): NationDescriptions.getNationCivilopediaTextLines has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/NationDescriptions.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a78e77421a56bc5be737f73a467e6cbf144fd6f35a6fde0cc950f0825105728"}},{"ruleId":"D2","level":"warning","message":{"text":"FormattedLine.unsupportedReasons (cognitive 23): FormattedLine.unsupportedReasons has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 9 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/civilopediascreen/FormattedLine.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b54683c470ea97d8868cc78bc56976cc091e923947ed656acf2175d1a3214e1"}},{"ruleId":"D2","level":"warning","message":{"text":"FormattedLine.render (cognitive 23): FormattedLine.render has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (18 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/civilopediascreen/FormattedLine.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"325c149dad405ee7a1443a5fcd95bf67cee41eaf2fdbbf8b2e37eb61348037c3"}},{"ruleId":"D2","level":"warning","message":{"text":"WonderInfo.collectInfo (cognitive 23): WonderInfo.collectInfo has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 2 (5 pts), loops 3 (4 pts), boolean chains 2 (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":"core/src/com/unciv/ui/screens/overviewscreen/WonderOverviewTab.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5094204e20255dd4e9cf536aa06f934a19776c794119a4c2f3c55bbdd6863d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImprovementPickerScreen.addImprovementRow (cognitive 23): ImprovementPickerScreen.addImprovementRow has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 9, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/pickerscreens/ImprovementPickerScreen.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5b31656da5c8cd3760cec686a261c93558c638e359be399470de2e03ab6fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemUtils.getSystemInfo (cognitive 23): SystemUtils.getSystemInfo has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, error handling 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/SystemUtils.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ec2d789d0d945d1226b28c0912fbb114008d37f2c446bc37f0e4cabeed6ba1"}},{"ruleId":"D2","level":"warning","message":{"text":"BarbarianManager.placeBarbarianEncampment (cognitive 22): BarbarianManager.placeBarbarianEncampment has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/BarbarianManager.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"77266193c3e4936a91d49ca96ad492e4b4d63be78925872acb5ec890c2c0babd"}},{"ruleId":"D2","level":"warning","message":{"text":"ReligionAutomation.beliefBonusForTile (cognitive 22): ReligionAutomation.beliefBonusForTile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5848a111378230fed1c4ef761aead1c0b7c700960b70715703148a6d1f1229"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerAutomation.chooseImprovement (cognitive 22): WorkerAutomation.chooseImprovement has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (9 pts), match/switch 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"43103ff382d674075e45a0ef341c80ce988ae826cbb87fa88c15abd6eeadfefa"}},{"ruleId":"D2","level":"warning","message":{"text":"DeclareWar.changeOpinions (cognitive 22): DeclareWar.changeOpinions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/DeclareWar.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6c5aaef4651674ad59510b33c75ea6641ea961cf7ef8e841c8038b4883ca94"}},{"ruleId":"D2","level":"warning","message":{"text":"DiplomacyTurnManager.nextTurnDiplomaticModifiers (cognitive 22): DiplomacyTurnManager.nextTurnDiplomaticModifiers has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (17 pts), loops 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyTurnManager.kt"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"6021d8157aedc09343fad6885402272e7d1dcbeae79c1f602463ff55f9aba4de"}},{"ruleId":"D2","level":"warning","message":{"text":"TileMap.placeUnitNearTile (cognitive 22): TileMap.placeUnitNearTile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 3 (5 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":"core/src/com/unciv/logic/map/TileMap.kt"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c256ed672a39fc970bc5da4e51c7dae68979dbac32dc9087d777623151287d"}},{"ruleId":"D2","level":"warning","message":{"text":"MapGenerationRandomness.chooseSpreadOutLocations (cognitive 22): MapGenerationRandomness.chooseSpreadOutLocations has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 6 (10 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/MapGenerationRandomness.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"a651518a54ca2a0fc523b8518647d1c9c4bbd517a2c5521819cad2e04c775590"}},{"ruleId":"D2","level":"warning","message":{"text":"MapGenerator.mirror (cognitive 22): MapGenerator.mirror has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, match/switch 2 (3 pts), loops 2 (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":"core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0f8c844fae347493ca34ec8dcfd76d950fae76f8ce37e50d48aa8ea8e658af"}},{"ruleId":"D2","level":"warning","message":{"text":"PathingMap.getShortestPath (cognitive 22): PathingMap.getShortestPath has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/pathingmap/PathingMap.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13eb7da3d6c8f0bffa04147c0ead2b659a64ceae7de0c54ac014db11553ac0d"}},{"ruleId":"D2","level":"warning","message":{"text":"PathingMap.pathAsListWithDamage (cognitive 22): PathingMap.pathAsListWithDamage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, loops 2 (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":"core/src/com/unciv/logic/map/pathingmap/PathingMap.kt"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dde4a504e0098f7cdc6a41c838f43f49c6ea8f1f13e54e72fba3942be7e8170"}},{"ruleId":"D2","level":"warning","message":{"text":"Tile.matchesSingleTerrainFilter (cognitive 22): Tile.matchesSingleTerrainFilter has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 9, match/switch 2 (nesting depth added 5). 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":"core/src/com/unciv/logic/map/tile/Tile.kt"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd088427ce4ca599df86a68aab5667b5442dc8b30d59d79e13e257d01216e162"}},{"ruleId":"D2","level":"warning","message":{"text":"TradeRequest.decline (cognitive 22): TradeRequest.decline has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/trade/Trade.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79a4fed253f3b78c0c3a11325ff8a8ae10e5626fc925f7c558fd1ab483d7b4a"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesetCache.loadRulesets (cognitive 22): RulesetCache.loadRulesets has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/RulesetCache.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c024de776a08c3c0fc9bd8fa6372264758569a7cbdf02867b70c9b00e9d4886"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesetValidator.addImprovementErrors (cognitive 22): RulesetValidator.addImprovementErrors has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98c4de71852471285393f7e308cd375ef3b32a7dc60745aeb2a6e3d570467ff"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseUnitDescriptions.getDifferences (cognitive 22): BaseUnitDescriptions.getDifferences has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 4 (5 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/BaseUnitDescriptions.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b58d0ca1c76cf21be2536c5f4de8ccaf299e3774ba791ce6f3d153ff0ac478e"}},{"ruleId":"D2","level":"warning","message":{"text":"TechnologyDescriptions.buildTechIconsIndex (cognitive 22): TechnologyDescriptions.buildTechIconsIndex has cognitive complexity 22 (threshold 15). Drivers by points: loops 11 (17 pts), boolean chains 5 (nesting depth added 6). 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":"core/src/com/unciv/ui/objectdescriptions/TechnologyDescriptions.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91ef585cb97f4a80736dd6db0482696c57b6be937981c663f895ea760e1a0f0"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiplayerTab.addMultiplayerServerOptions (cognitive 22): MultiplayerTab.addMultiplayerServerOptions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (16 pts), match/switch 1 (3 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/popups/options/MultiplayerTab.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c365b95318b449839749628f65e50b1a4ca636cc09aa4dbc883b82556e2f5d"}},{"ruleId":"D2","level":"warning","message":{"text":"DiplomacyScreen.updateLeftSideTable (cognitive 22): DiplomacyScreen.updateLeftSideTable has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/diplomacyscreen/DiplomacyScreen.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"145976784a14c7d554727298036c7ccb2b4b8640a0fac029d53808ba6c2bcebe"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourcesOverviewTab.updateVertical (cognitive 22): ResourcesOverviewTab.updateVertical has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 6 (11 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/overviewscreen/ResourcesOverviewTab.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73000b3809666693510e00de9b3be8b693f73d015672a54e280d0ff9760170e"}},{"ruleId":"D2","level":"warning","message":{"text":"WorldMapHolder.updateMovementOverlay (cognitive 22): WorldMapHolder.updateMovementOverlay has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (5 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69602b5a9e1d6ae57d189b30d9b8cb3d874508affe95cbf683bc9114d33295a"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitAutomation.tryHealUnit (cognitive 21): UnitAutomation.tryHealUnit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/UnitAutomation.kt"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee377c3146b54fb0b8c0df1164ee9bdb7cbb5d900c90e26faa28f1be8c1de16"}},{"ruleId":"D2","level":"warning","message":{"text":"TargetHelper.containsAttackableEnemy (cognitive 21): TargetHelper.containsAttackableEnemy has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/battle/TargetHelper.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2246c591e1740861a23eac9b4a5a6f030522d28f98eb18e9f32c95d3fdc50d8"}},{"ruleId":"D2","level":"warning","message":{"text":"CityConquestFunctions.liberateCity (cognitive 21): CityConquestFunctions.liberateCity has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 3 (4 pts), match/switch 1 (3 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":"core/src/com/unciv/logic/city/managers/CityConquestFunctions.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8f8584369681154fc8891c62a7c244d951d619f5a5a0d344ed0e064ffff0c9"}},{"ruleId":"D2","level":"warning","message":{"text":"GithubAPI.downloadAndExtract (cognitive 21): GithubAPI.downloadAndExtract has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/github/GithubAPI.kt"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d1f3b92f309a54d121370d7d87dcd109501a47fb0e8bd68beef8b79d3a4c7a"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitActions.getGiftActions (cognitive 21): UnitActions.getGiftActions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/actions/UnitActions.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"79855affd6918f07e5ccd8d156899d874a803e02daf1f48087186b644436f217"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitActionsFromUniques.getTriggerUniqueActions (cognitive 21): UnitActionsFromUniques.getTriggerUniqueActions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/actions/UnitActionsFromUniques.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a13ee0646ea7bdf886c10ffc05c9ad5a39531da3e7f99d0c39371b5bb209d2"}},{"ruleId":"D2","level":"warning","message":{"text":"TileImprovementFunctions.canImprovementBeBuiltHere (cognitive 21): TileImprovementFunctions.canImprovementBeBuiltHere has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 14, if/else 6, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/tile/TileImprovementFunctions.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c18f297f16e7e21e29030ba1952a29a9a6c77beaa0615ac36018cbde20918d"}},{"ruleId":"D2","level":"warning","message":{"text":"Spy.endTurn (cognitive 21): Spy.endTurn has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/Spy.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4658b85bb22fa827c05ec80b8271e6a96678bbcacc38bf62a47c51560f475b2b"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRulesetValidator.checkEventCircularTriggers (cognitive 21): BaseRulesetValidator.checkEventCircularTriggers has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, loops 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b0dd7475bcbbbac91b399dae21831692c1819c6ad7e90dc3fee9df2ab0cd99"}},{"ruleId":"D2","level":"warning","message":{"text":"FontRulesetIcons.addRulesetImages (cognitive 21): FontRulesetIcons.addRulesetImages has cognitive complexity 21 (threshold 15). Drivers by points: loops 10 (13 pts), if/else 5 (7 pts), boolean chains 1 (nesting depth added 5). 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":"core/src/com/unciv/ui/components/fonts/FontRulesetIcons.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a5db39adfde957776cb9ad7fe54a4a445952fd8639a9b436ef52f572641605"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationsScroll.updateContent (cognitive 21): NotificationsScroll.updateContent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3, loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/NotificationsScroll.kt"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff3a7f2c99dc6612fec24ba042b60d7fcbd7f8a90f384aee99bcdfc6a46ea81"}},{"ruleId":"D2","level":"warning","message":{"text":"CityLocationTileRanker.rankTileToSettle (cognitive 20): CityLocationTileRanker.rankTileToSettle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 2 (3 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":"core/src/com/unciv/logic/automation/unit/CityLocationTileRanker.kt"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f80adf8d09190a9d9fd05e983527130c5cd74391924da2a8e3f8291fbf5a6f"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerAutomation.getImprovementPriority (cognitive 20): WorkerAutomation.getImprovementPriority has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d88810d3ca2bf3bae24e65210ad095521dca4d70c84d36fadfee52ae9d66d5"}},{"ruleId":"D2","level":"warning","message":{"text":"NaturalWonderGenerator.spawnNaturalWonders (cognitive 20): NaturalWonderGenerator.spawnNaturalWonders has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/NaturalWonderGenerator.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"faee06b74f60cf3b6bb96db5ad2c57a3df29200f190ee4909282f9a8f83408b2"}},{"ruleId":"D2","level":"warning","message":{"text":"RegionStartFinder.findGoodPosition (cognitive 20): RegionStartFinder.findGoodPosition has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, loops 2 (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":"core/src/com/unciv/logic/map/mapgenerator/mapregions/RegionStartFinder.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e753b40afd4c5c37eb1ec525f4f5128cc32e06f7d2ff5d5f6f05d3b93e08ceb9"}},{"ruleId":"D2","level":"warning","message":{"text":"StartNormalizer.normalizeProduction (cognitive 20): StartNormalizer.normalizeProduction has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (9 pts), loops 1 (2 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/mapregions/StartNormalizer.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae72a089104dc8ba059b4a5772e2d147d9d5fa993b61b8333201bee6473ced6"}},{"ruleId":"D2","level":"warning","message":{"text":"StrategicBonusResourcePlacementLogic.placeBonusInThirdRingOfStart (cognitive 20): StrategicBonusResourcePlacementLogic.placeBonusInThirdRingOfStart has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/resourceplacement/StrategicBonusResourcePlacementLogic.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"61204bec36a4faa22eadd132b67274b66165f84c10c62bc6c486e41d2ede3084"}},{"ruleId":"D2","level":"warning","message":{"text":"Promotion.getCivilopediaTextLines (cognitive 20): Promotion.getCivilopediaTextLines has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (20 pts) (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":"core/src/com/unciv/models/ruleset/unit/Promotion.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"287953e5ed599c14f03b64e95969d1e575399eb884c5d65ffef4677bf1a15956"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRulesetValidator.addTerrainErrors (cognitive 20): BaseRulesetValidator.addTerrainErrors has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, loops 2 (3 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":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ecc6897f615a1a38580f7048feac21bb24e7dc77c4fc982eb93675187c2ba4"}},{"ruleId":"D2","level":"warning","message":{"text":"TranslationFileWriter.writeLanguageFile (cognitive 20): TranslationFileWriter.writeLanguageFile has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/translations/TranslationFileWriter.kt"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e200227e00e142e67d6029a29cd8cf6ad3a83b4250312096a69efc1d0beb8d"}},{"ruleId":"D2","level":"warning","message":{"text":"CityScreen.updateAnnexAndRazeCityButton (cognitive 20): CityScreen.updateAnnexAndRazeCityButton has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/cityscreen/CityScreen.kt"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca09fd96eed8e1afb33a208aca4dba59ddc540eafc1fbc437735ebf9a8481ce"}},{"ruleId":"D2","level":"warning","message":{"text":"WorldScreen.nextTurn (cognitive 20): WorldScreen.nextTurn has cognitive complexity 20 (threshold 15). Drivers by points: error handling 3 (9 pts), if/else 4, match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1391eb04d891d9799fd67fcb4ed5a350fadc2d76e94c3eb095bb8ff7c71a7c9"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitTable.tileSelected (cognitive 20): UnitTable.tileSelected has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 6, match/switch 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/unit/UnitTable.kt"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"340dd62bfdbc76cc17cca53e0411b769a95370764d65b8c81e4b96a78b3895ee"}},{"ruleId":"D2","level":"warning","message":{"text":"ImagePacker.packImages (cognitive 20): ImagePacker.packImages has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (6 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/ImagePacker.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"381989f32b08e350a89a6073303c0e38abc952e587400a97e7515ecf1d0d7cdf"}},{"ruleId":"D2","level":"warning","message":{"text":"run.main (cognitive 20): run.main has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, boolean chains 5, loops 2, error handling 1. Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 67). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/web-font/run.cjs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1a91bd40ad45379587f493c0e62147ac1c30c6dd58869333ead9c5d064c50f"}},{"ruleId":"D2","level":"warning","message":{"text":"NextTurnAutomation.automateCivMoves (cognitive 19): NextTurnAutomation.automateCivMoves has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb17748e09b55aa489de4f7ecfbc2172489aac0134ab8244b5320de17d77a36"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreatManager.getTilesWithEnemyUnitsInDistance (cognitive 19): ThreatManager.getTilesWithEnemyUnitsInDistance has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/ThreatManager.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb42bb70c176b309cc1d3cdc5df452b0776049e08bfde33a755539f691dc8447"}},{"ruleId":"D2","level":"warning","message":{"text":"AirUnitAutomation.automateFighter (cognitive 19): AirUnitAutomation.automateFighter has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a80c09388cf3dea43b8777c199dada3dec0d98ff26c757d3809ac7ed3631b2"}},{"ruleId":"D2","level":"warning","message":{"text":"ReligiousUnitAutomation.automateInquisitor (cognitive 19): ReligiousUnitAutomation.automateInquisitor has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 8 (9 pts), match/switch 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/ReligiousUnitAutomation.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca62944d6f001ba63118a9b623d0767efa2c3c0cdfe9b40de3e5ca8b5b376de"}},{"ruleId":"D2","level":"warning","message":{"text":"Battle.takeDamage (cognitive 19): Battle.takeDamage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a61bf41e4223a04b1b2fa8b87cacf59f594ba5b7486aa550188df650da04a9"}},{"ruleId":"D2","level":"warning","message":{"text":"CityConstructions.purchaseConstruction (cognitive 19): CityConstructions.purchaseConstruction has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/CityConstructions.kt"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f689e6c8d85f3f5bc534e2011ba3a40c16e28395f9d4b34dfa369a7cb8a160"}},{"ruleId":"D2","level":"warning","message":{"text":"TurnManager.startTurnFlags (cognitive 19): TurnManager.startTurnFlags has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/managers/TurnManager.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e175f24b92febc5c7c05ba839663bc645743568e0b25aa57632de8d68bab02e"}},{"ruleId":"D2","level":"warning","message":{"text":"TurnManager.endTurn (cognitive 19): TurnManager.endTurn has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/managers/TurnManager.kt"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"10408c530f424e0ee273327cd7a0b358307775ecdc0104440804e09c1900dd54"}},{"ruleId":"D2","level":"warning","message":{"text":"CivInfoTransientCache.updateCivResources (cognitive 19): CivInfoTransientCache.updateCivResources has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 6 (9 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/transients/CivInfoTransientCache.kt"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd79725ce39eb5539384f5e2251e0b60580ac884b2a4322835a5213036c3ada1"}},{"ruleId":"D2","level":"warning","message":{"text":"OdMapExport.write (cognitive 19): OdMapExport.write has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 6 (9 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":"core/src/com/unciv/logic/map/OdMapExport.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6923d44ddfefefe3f605e056bc9295bba20ddd2a16e10cc61c119bd1abac0dcc"}},{"ruleId":"D2","level":"warning","message":{"text":"MapRegions.splitRegion (cognitive 19): MapRegions.splitRegion has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/mapregions/MapRegions.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"776c6693a1122630dc19ea8df0dce15631d262c3008039673bd740560694c323"}},{"ruleId":"D2","level":"warning","message":{"text":"MapRegionResources.placeResourcesInTiles (cognitive 19): MapRegionResources.placeResourcesInTiles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 2, match/switch 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":"core/src/com/unciv/logic/map/mapgenerator/resourceplacement/MapRegionResources.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"58dfd84a2c5fcee7c6626aa416254374ab47c1ae82634b619a35d73d76a610be"}},{"ruleId":"D2","level":"warning","message":{"text":"MapRegionResources.tryAddingResourceToTiles (cognitive 19): MapRegionResources.tryAddingResourceToTiles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/resourceplacement/MapRegionResources.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfe1c81483f50e312d4f7bf4df8c0a234fb60a75cc5a3f5dfa76da9a850b002"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitMovement.getCannotMoveToReason (cognitive 19): UnitMovement.getCannotMoveToReason has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 9. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"0511dfb536d6c8afadffe718c4c030555b7a60463198cb2ab72d39ed426481a2"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesetValidator.addSpeedErrors (cognitive 19): RulesetValidator.addSpeedErrors has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0ea051ebbe4ccb245257aaa376b4ec1237d017b94a6178e44e73c85588f08e"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesetValidator.checkTilesetSanity (cognitive 19): RulesetValidator.checkTilesetSanity has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"577fc3c655a1e9ef74ce97fbc06241a164746eccdf56b2e3f54e068d957dcbe5"}},{"ruleId":"D2","level":"warning","message":{"text":"TranslationExtensionsKt.findMatchingAnyKind (cognitive 19): TranslationExtensionsKt.findMatchingAnyKind has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 pts), boolean chains 2 (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":"core/src/com/unciv/models/translations/TranslationExtensions.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd9d4ca675ab88d764fa2ecb1909aaec2d732f33fa8c86d90a0d65ab062379b"}},{"ruleId":"D2","level":"warning","message":{"text":"ColorMarkupLabel.prepareText (cognitive 19): ColorMarkupLabel.prepareText has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/widgets/ColorMarkupLabel.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a812cce9e7a1460c02da6523520b1d2f42c4a06a4d814ba351ab60d2b084e908"}},{"ruleId":"D2","level":"warning","message":{"text":"TabbedPager.selectPage (cognitive 19): TabbedPager.selectPage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/widgets/TabbedPager.kt"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0238c41fe03591ca8779d91deae7b5a6e6bf805b4e688d3be3aeac439d3a9e"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceDescriptions.getCivilopediaTextLines (cognitive 19): ResourceDescriptions.getCivilopediaTextLines has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6c1c7487e36fb0ce41d61470241e72de6467b238a30d4b038cd706b708cc9c"}},{"ruleId":"D2","level":"warning","message":{"text":"LineChart.generateLabels (cognitive 19): LineChart.generateLabels has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/victoryscreen/LineChart.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b300d10a0817d7b3fbc94f1dfe5873756f6302a24e9eb872a3f321653f80872"}},{"ruleId":"D2","level":"warning","message":{"text":"WorldMapHolder.onTileRightClicked (cognitive 19): WorldMapHolder.onTileRightClicked has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e7d12ff6f51536413ac8a4e1797d6304edb1d53d0f9ebe1aadf04ff1f24029"}},{"ruleId":"D2","level":"warning","message":{"text":"WorldMapHolder.moveUnitToTargetTile (cognitive 19): WorldMapHolder.moveUnitToTargetTile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, error handling 2, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d28fb2ef40886c41c4cf762c2ce6bc90fdba224c7baac73a053f0f7388070f2"}},{"ruleId":"D2","level":"warning","message":{"text":"WorldMapHolder.addTileOverlaysWithUnitMovement (cognitive 19): WorldMapHolder.addTileOverlaysWithUnitMovement has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"30985badeefba081e371ac241d5f87466faf6d6e81e1e033aee5ec9ed1fe8bb9"}},{"ruleId":"D2","level":"warning","message":{"text":"DiplomacyAutomation.offerToEstablishEmbassy (cognitive 18): DiplomacyAutomation.offerToEstablishEmbassy has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6a0069cfcffe25ace8b90b7e54461e8cbccd9c4687da66ab53726ed1562c86"}},{"ruleId":"D2","level":"warning","message":{"text":"NextTurnAutomation.valueCityStateAlliance (cognitive 18): NextTurnAutomation.valueCityStateAlliance has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e6bfd11147301a028eef555c6f44206b5cb763c15f7dcd379739a3f184fd5a"}},{"ruleId":"D2","level":"warning","message":{"text":"NextTurnAutomation.automateUnits (cognitive 18): NextTurnAutomation.automateUnits has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4, boolean chains 2 (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":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de6fc66fd83ee23c85c54314f00a3997b8ebd7d829230e44a638dba743c6890"}},{"ruleId":"D2","level":"warning","message":{"text":"NextTurnAutomation.automateCityConquer (cognitive 18): NextTurnAutomation.automateCityConquer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (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":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24472efa879da7b5bc47165269d0d557c9550aa0ecd8a31dea680b57824672f"}},{"ruleId":"D2","level":"warning","message":{"text":"Battle.plunderFromDamage (cognitive 18): Battle.plunderFromDamage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (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":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84b84ef26a34a1de09f462d33fb2975d154abe87795f4a400dffde33bfbbcb3"}},{"ruleId":"D2","level":"warning","message":{"text":"CityConstructions.validatedCopyOf (cognitive 18): CityConstructions.validatedCopyOf has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/CityConstructions.kt"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"db76b6216b7a63c39b8b783578128f10dd9f68cd058c46b88cf9b34e1c64b826"}},{"ruleId":"D2","level":"warning","message":{"text":"LabeledSounds.cacheMods (cognitive 18): LabeledSounds.cacheMods has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/files/IMediaFinder.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f275dbf7c47c506f431e4c3306ff4f7647352ba0615bfab53975e094f55935"}},{"ruleId":"D2","level":"warning","message":{"text":"GithubAPI.parseUrl (cognitive 18): GithubAPI.parseUrl has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/github/GithubAPI.kt"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c324fc14a4de687e4abb1cf7f28ef15c219e0df0716e0ae3b4d6f61f528c24"}},{"ruleId":"D2","level":"warning","message":{"text":"TileMap.getNeighborTileClockPosition (cognitive 18): TileMap.getNeighborTileClockPosition has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 6, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/TileMap.kt"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f4f5de8eafd3a28fc7960d0093f5f7865b0c49f9739b96e20760e4b7dfbe14"}},{"ruleId":"D2","level":"warning","message":{"text":"MapGenerator.spreadCoast (cognitive 18): MapGenerator.spreadCoast has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 4 (8 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"571fecf28cde378bcfb169a8f38161dd043004065d2273596a5936791c952655"}},{"ruleId":"D2","level":"warning","message":{"text":"MapLandmassGenerator.generateFlatEarthExtraWater (cognitive 18): MapLandmassGenerator.generateFlatEarthExtraWater has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (6 pts), boolean chains 2 (nesting depth added 10). 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":"core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd9b17e7a8c335d66b0ab144885e4795eafced263c241e43b689fd4d59e5147"}},{"ruleId":"D2","level":"warning","message":{"text":"MapRegions.generateRegions (cognitive 18): MapRegions.generateRegions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/mapregions/MapRegions.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6179d00ea81f7431ee3c98b00c5b5c44d2fdab41f0ba9052d34bf3386fcede"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitActionsFromUniques.getTransformActions (cognitive 18): UnitActionsFromUniques.getTransformActions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/actions/UnitActionsFromUniques.kt"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f863c400d55b8898039ae3ba111040e2bfa84e010711e4c463ba91398918bb9"}},{"ruleId":"D2","level":"warning","message":{"text":"Building.notMetRejections (cognitive 18): Building.notMetRejections has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"7920bd3cedfd6de50a0e2aa13b8e59c8722a2e148dadb0ddbe60118729f700b1"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseUnit.notMetRejections (cognitive 18): BaseUnit.notMetRejections has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/unit/BaseUnit.kt"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7fc1e01309216a719f32899b7685bab903b94152ae1cb9e1126249e582ea390"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRulesetValidator.addPolicyErrors (cognitive 18): BaseRulesetValidator.addPolicyErrors has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 5 (7 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d82a10bf4074209d57ab3e1000d23791aaed87d733927d69b6809baed03937"}},{"ruleId":"D2","level":"warning","message":{"text":"TechnologyDescriptions.getDescription (cognitive 18): TechnologyDescriptions.getDescription has cognitive complexity 18 (threshold 15). Drivers by points: loops 6 (9 pts), if/else 5 (6 pts), boolean chains 3 (nesting depth added 4). 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":"core/src/com/unciv/ui/objectdescriptions/TechnologyDescriptions.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4815bdc50b8dfc467ef7e1503637a87faee516882f2ac5122902222d98da08"}},{"ruleId":"D2","level":"warning","message":{"text":"CityConstructionsTable.updateAvailableConstructions (cognitive 18): CityConstructionsTable.updateAvailableConstructions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), match/switch 2 (7 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"771dd3f977ecdf2a0117f4316f6de2b8671e73805555a1bf2822036fe3f15437"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerPickerTable.update (cognitive 18): PlayerPickerTable.update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, loops 1 (nesting depth added 3). 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":"core/src/com/unciv/ui/screens/newgamescreen/PlayerPickerTable.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcc4335e25d0c8376a01196ed11769e88e148b1839efa5ce609002284050eda"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationsScroll.update (cognitive 18): NotificationsScroll.update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/NotificationsScroll.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e133e106e2229bcc206da8f1fca54243d36599ab63a4b581fa6df0d7553989"}},{"ruleId":"D2","level":"warning","message":{"text":"CityLocationTileRanker.canSettleTile (cognitive 17): CityLocationTileRanker.canSettleTile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/CityLocationTileRanker.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea1e918132ffd15c3775e9d0e81927ca01559629a5ec9891715f749faf03a68"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerAutomation.getBasePriority (cognitive 17): WorkerAutomation.getBasePriority has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (17 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":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"faefd89317128a4ea8108e571cd6c84953c5360a0735256f2f2c70e5a8d2f9fa"}},{"ruleId":"D2","level":"warning","message":{"text":"CityConquestFunctions.diplomaticRepercussionsForLiberatingCity (cognitive 17): CityConquestFunctions.diplomaticRepercussionsForLiberatingCity has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (6 pts), boolean chains 3 (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":"core/src/com/unciv/logic/city/managers/CityConquestFunctions.kt"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d3c9c1cdb772a7dab1d21e26ce56d904f6327361d99016d2fc438205026d65"}},{"ruleId":"D2","level":"warning","message":{"text":"CityStateFunctions.initCityState (cognitive 17): CityStateFunctions.initCityState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"345514d3882716575901be1cd740f507e82ca5e3cffc955cf1732cd7f9aba73d"}},{"ruleId":"D2","level":"warning","message":{"text":"CapitalConnectionsFinder.find (cognitive 17): CapitalConnectionsFinder.find has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts), boolean chains 1 (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":"core/src/com/unciv/logic/civilization/transients/CapitalConnectionsFinder.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b888f293b9cdde050d9b262f84dd5b9e9030a16117b40ee194223a7cf77429"}},{"ruleId":"D2","level":"warning","message":{"text":"CivInfoTransientCache.setTransients (cognitive 17): CivInfoTransientCache.setTransients has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 4, boolean chains 3 (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":"core/src/com/unciv/logic/civilization/transients/CivInfoTransientCache.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be99fa6a76b96759c03de4036dee6b9c5b0107846520385c7260bc90736b1b5"}},{"ruleId":"D2","level":"warning","message":{"text":"Github.rewriteModOptions (cognitive 17): Github.rewriteModOptions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/github/Github.kt"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad6a8ed2f6fe0b0a3373687d5868527f7bbd7441e4249e3d27fad773ad94fc7"}},{"ruleId":"D2","level":"warning","message":{"text":"MapGenTileData.evaluate (cognitive 17): MapGenTileData.evaluate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, match/switch 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":"core/src/com/unciv/logic/map/mapgenerator/mapregions/MapGenTileData.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"326c278001d818612589e5c680b4daf816831f6b3b889d6825f39243de56674c"}},{"ruleId":"D2","level":"warning","message":{"text":"StartNormalizer.addProductionBonuses (cognitive 17): StartNormalizer.addProductionBonuses has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 6, loops 1 (2 pts), match/switch 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":"core/src/com/unciv/logic/map/mapgenerator/mapregions/StartNormalizer.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"57fdb545be6dd6bf8c8c65afe91aa8a7075191e7860a3a71d6136f90cb63623e"}},{"ruleId":"D2","level":"warning","message":{"text":"StrategicBonusResourcePlacementLogic.placeMinorDepositsOnLand (cognitive 17): StrategicBonusResourcePlacementLogic.placeMinorDepositsOnLand has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/resourceplacement/StrategicBonusResourcePlacementLogic.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a3db14e131e2a5d336520662662000744e04f51ba3a5782a1a41e03e09107e"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiVersion.detect (cognitive 17): ApiVersion.detect has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 4 (6 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/ApiVersion.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"59122f9a15672d8b93e9c41d2072758e2f37c4f4982add7c37a029ed84a87701"}},{"ruleId":"D2","level":"warning","message":{"text":"Spy.initiateCoup (cognitive 17): Spy.initiateCoup has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/Spy.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b120912a8eaecbde664489b5abb9e0d8e1adabf0f1c3086043c53689b6a2387"}},{"ruleId":"D2","level":"warning","message":{"text":"Ruleset.mergeTechnologies (cognitive 17): Ruleset.mergeTechnologies has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 5, match/switch 2 (3 pts), loops 2 (nesting depth added 1). 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":"core/src/com/unciv/models/ruleset/Ruleset.kt"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a2e4d9729a6e9fed9992384fa89b6e9b3b42b747ba172be7f05bb707f4f73b"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRulesetValidator.addResourceErrors (cognitive 17): BaseRulesetValidator.addResourceErrors has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"082a1f6fd056fad38b85583b3307722ec9bffceff3af8b661b1daacf83e5b3ab"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRulesetValidator.addVictoryTypeErrors (cognitive 17): BaseRulesetValidator.addVictoryTypeErrors has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a55bc9d9519ea50e5e90132578e5e90361177976c73e6be663eba28284c682"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesetValidator.addModOptionsErrors (cognitive 17): RulesetValidator.addModOptionsErrors has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab250642f7ce3be7ea059084435a00515952973d6e330b70ab2d3c2dc5e4175"}},{"ruleId":"D2","level":"warning","message":{"text":"TextSimilarityKt.getTextDistance (cognitive 17): TextSimilarityKt.getTextDistance has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, match/switch 1 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/TextSimilarity.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26c0804e5c39700305085d08b5624193cd388fb4169d1dece0966d603eeea47"}},{"ruleId":"D2","level":"warning","message":{"text":"SkinCache.loadSkinConfigs (cognitive 17): SkinCache.loadSkinConfigs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 2 (5 pts), loops 3 (4 pts) (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":"core/src/com/unciv/models/skins/SkinCache.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b12f17f1cf55aeb7efb09e4c2a87edcb6d62c277d85f88d4a4876526dd79683"}},{"ruleId":"D2","level":"warning","message":{"text":"SkinStrings.getUiBackground (cognitive 17): SkinStrings.getUiBackground has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 4, match/switch 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/skins/SkinStrings.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5796f9276860ed6022d143d99ff51fc6ccc3e17ee9d3c63f3bd32cd954ac4c"}},{"ruleId":"D2","level":"warning","message":{"text":"CityButton.updateHiddenUnitMarkers (cognitive 17): CityButton.updateHiddenUnitMarkers has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 2 (6 pts), if/else 4 (5 pts), boolean chains 4, loops 2 (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":"core/src/com/unciv/ui/components/tilegroups/citybutton/CityButton.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce2b60c85c1af0881647603cdbe3d0b1d08b7cfee708b6e9b16a5bd593f416a"}},{"ruleId":"D2","level":"warning","message":{"text":"TileLayerFeatures.updateRoadImages (cognitive 17): TileLayerFeatures.updateRoadImages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/tilegroups/layers/TileLayerFeatures.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf220a7d843e35c5d19baa129373c661b7d6e891726ba940b271a490ccce4b7"}},{"ruleId":"D2","level":"warning","message":{"text":"SortableGrid.updateDetails (cognitive 17): SortableGrid.updateDetails has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/widgets/SortableGrid.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd72355543abc919af17daeb02db0e6281cb5f9b21443dcf1355e6a2ce8080a"}},{"ruleId":"D2","level":"warning","message":{"text":"BuildingDescriptions.addBuildingDifferences (cognitive 17): BuildingDescriptions.addBuildingDifferences has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/BuildingDescriptions.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"610406c514d0e1a5c9d891c589fb94680b0e37d651967f46ee12921604f8a369"}},{"ruleId":"D2","level":"warning","message":{"text":"BuildingDescriptions.getUniquesStrings (cognitive 17): BuildingDescriptions.getUniquesStrings has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 1 (3 pts), boolean chains 2, loops 2 (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":"core/src/com/unciv/ui/objectdescriptions/BuildingDescriptions.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d3a299c3fc688ae48f8c7fbbc5836834756cd81ce27f3d9d20d66f0405a937"}},{"ruleId":"D2","level":"warning","message":{"text":"CityConstructionsTable.getQueueEntry (cognitive 17): CityConstructionsTable.getQueueEntry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2ce8ac1c7f53d8939a0540a4f645f49b6f0408ce154b0dc6a7f11e20434c0e"}},{"ruleId":"D2","level":"warning","message":{"text":"CityStateDiplomacyTable.getCityStateDiplomacyTable (cognitive 17): CityStateDiplomacyTable.getCityStateDiplomacyTable has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, loops 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/diplomacyscreen/CityStateDiplomacyTable.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d052cb61b1b0896d6d27a0c8c9ff7c6eb6fc0e037dc6967791c634a77f30d21"}},{"ruleId":"D2","level":"warning","message":{"text":"MajorCivDiplomacyTable.getMajorCivDiplomacyTable (cognitive 17): MajorCivDiplomacyTable.getMajorCivDiplomacyTable has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/diplomacyscreen/MajorCivDiplomacyTable.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a70f7b8b750ef59238ccbf62180c3cdb1393df6ca83cbe20ee84048a24c0dd3"}},{"ruleId":"D2","level":"warning","message":{"text":"MapEditorViewTab.tileClickHandler (cognitive 17): MapEditorViewTab.tileClickHandler has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorViewTab.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e4bef00dd7669bb34a069290617a4a5993f780ca0209ccdeab19e953b25369"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiplayerHelpers.buildDescriptionText (cognitive 17): MultiplayerHelpers.buildDescriptionText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (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":"core/src/com/unciv/ui/screens/multiplayerscreens/MultiplayerHelpers.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f741ae192ab7a9c3e06e07295a66f22c3bc462021f59cac2f250dab4545089c"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitPresenter.updateWhenNeeded (cognitive 17): UnitPresenter.updateWhenNeeded has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/unit/presenter/UnitPresenter.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c01c0ab623d2fa95ac7aa85f14e19b65ec7e999c94c6e7750be08fdb45c64d2"}},{"ruleId":"D2","level":"warning","message":{"text":"BackwardCompatibility.removeTechAndPolicies (cognitive 16): BackwardCompatibility.removeTechAndPolicies has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 4 (7 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/BackwardCompatibility.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"63158bfc3157077385848b9d99805297e926bdb16c37615d55a9da94415c2d20"}},{"ruleId":"D2","level":"warning","message":{"text":"GameStarter.chooseCivilizations (cognitive 16): GameStarter.chooseCivilizations has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/GameStarter.kt"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"139e178101e45be58a657774f6492da6a236b691ab47f688c9e4ce32e3aca243"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstructionAutomation.getOnetimeUniqueBonuses (cognitive 16): ConstructionAutomation.getOnetimeUniqueBonuses has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), match/switch 2 (4 pts) (nesting depth added 3). 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":"core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"5408593603728b601580da2a38b2f9615e3682605c0a6743128650af40df0788"}},{"ruleId":"D2","level":"warning","message":{"text":"DiplomacyAutomation.checkMilitaryPresenceNearBorder (cognitive 16): DiplomacyAutomation.checkMilitaryPresenceNearBorder has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, loops 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"662ff060364fdd31cec5b5aab3acb5ae6f3905367ecab0a44231c5a79eb253e7"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerAutomation.isAutomationWorkableTile (cognitive 16): WorkerAutomation.isAutomationWorkableTile has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a98238f6bc835d6adf5bb4db34286327d0c1bcca9d541e4ba643c57a4bcee4b"}},{"ruleId":"D2","level":"warning","message":{"text":"Battle.movePreparingAttack (cognitive 16): Battle.movePreparingAttack has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf399f8b3dfa6be4b35145176bebee67102db8128a4b9fb20a598147e1f2181"}},{"ruleId":"D2","level":"warning","message":{"text":"Battle.triggerCombatUniques (cognitive 16): Battle.triggerCombatUniques has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), boolean chains 2 (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":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0cfe569ab69b170a5081dcf8464cc3ff0461838196864ca31ab6bb6d43b9e5"}},{"ruleId":"D2","level":"warning","message":{"text":"CityConstructions.validateInProgressConstructions (cognitive 16): CityConstructions.validateInProgressConstructions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/CityConstructions.kt"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b34b98fdc8002416801beb4befd01f96f3d846ff1a53e329a904d146b2a796"}},{"ruleId":"D2","level":"warning","message":{"text":"PolicyManager.adopt (cognitive 16): PolicyManager.adopt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2, 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":"core/src/com/unciv/logic/civilization/managers/PolicyManager.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dc3530fde3825a1011dc7cb28f5249ba334f40cde20a052c4d920ef63ff305"}},{"ruleId":"D2","level":"warning","message":{"text":"TechManager.obsoleteOldUnits (cognitive 16): TechManager.obsoleteOldUnits has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/managers/TechManager.kt"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"277a2279848021b342509084c70e785e505029ecbb14f3ca20ccc0858039c890"}},{"ruleId":"D2","level":"warning","message":{"text":"LuxuryResourcePlacementLogic.placeLuxuriesAtMajorCivStartLocations (cognitive 16): LuxuryResourcePlacementLogic.placeLuxuriesAtMajorCivStartLocations has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/resourceplacement/LuxuryResourcePlacementLogic.kt"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"4265cab491df3eba4936c550a992c8210ba69386d162c2eb16f8acf278955ecf"}},{"ruleId":"D2","level":"warning","message":{"text":"MapUnit.updateVisibleTiles (cognitive 16): MapUnit.updateVisibleTiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 2 (5 pts), boolean chains 3, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/MapUnit.kt"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"f395d9d3504338af0538f2a807d7a940a20878f36c1df689687dbf2c2d42a863"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitActionModifiers.canSpendStatsCost (cognitive 16): UnitActionModifiers.canSpendStatsCost has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/actions/UnitActionModifiers.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6c710db40991ba8ade2faa02def8f52d5eeaa855698a09345de951e2970dcd"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitActionModifiers.getSideEffectString (cognitive 16): UnitActionModifiers.getSideEffectString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/actions/UnitActionModifiers.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e731f60e7516ccc27b462e18d57fb4456d8693970996c9740a5d32fb7b3bcc32"}},{"ruleId":"D2","level":"warning","message":{"text":"PathingMap.fetchCache (cognitive 16): PathingMap.fetchCache has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/pathingmap/PathingMap.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"581471a9b69aa74c69b77038f9972026bb9ccea9bedb8b82c917b6b341c21c31"}},{"ruleId":"D2","level":"warning","message":{"text":"AStarPathfinder.findDamageFreeAnchor (cognitive 16): AStarPathfinder.findDamageFreeAnchor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/pathingmap/PathingMapAStarPathfinder.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a70bcb2ec6737ff2e3adc616cb4ece290caa49075185b5a41c2f1328eb03cb"}},{"ruleId":"D2","level":"warning","message":{"text":"TradeEvaluation.isTradeValid (cognitive 16): TradeEvaluation.isTradeValid has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), loops 2 (nesting depth added 2). 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":"core/src/com/unciv/logic/trade/TradeEvaluation.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f851c0f67331c7428febc04f33fe9d4d94a539dfc65067ddf76b941e2528d0b"}},{"ruleId":"D2","level":"warning","message":{"text":"Building.matchesSingleFilter (cognitive 16): Building.matchesSingleFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 1 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 8). 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":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a300ec325445aa0d6409f64f67deb183b522f4f8c72ad9d16a15dd3e1da5ad8"}},{"ruleId":"D2","level":"warning","message":{"text":"Building.isStatRelated (cognitive 16): Building.isStatRelated has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 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":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab91e0a5b23e45ff77bc02bbc5f0a86102086f853faf3f6a57340d929c964cc"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRulesetValidator.checkBuilding (cognitive 16): BaseRulesetValidator.checkBuilding has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bebf356b28210fbfed9005442936bf71897b0bcebe8d62b65615a5460ec861"}},{"ruleId":"D2","level":"warning","message":{"text":"CityTileGroup.update (cognitive 16): CityTileGroup.update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/tilegroups/CityTileGroup.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9949cb234795d166df9fc59e661db25b9ccb24425ae10b629382386f49f7b3"}},{"ruleId":"D2","level":"warning","message":{"text":"AtlasPreview.logMissingAtlas (cognitive 16): AtlasPreview.logMissingAtlas has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 2 (4 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/images/AtlasPreview.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e9af7498173c631b75314bd78d3fba4e50742b9524d3676f73c775d036c008"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniStatsTable.update (cognitive 16): MiniStatsTable.update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5817ef03d06f649b4c4bb216a7c00f9ba92d4ffc7e732d7cd3346ea6c0ee40"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkupRenderer.renderTo (cognitive 16): MarkupRenderer.renderTo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/civilopediascreen/MarkupRenderer.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b024adfbbe78dd1215960c52b8b091961cbd9d421b73b547f70541d2d5673f5a"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalPoliticsOverviewTable.getPoliticsOfCivTable (cognitive 16): GlobalPoliticsOverviewTable.getPoliticsOfCivTable has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsOverviewTable.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"339d1713415ed4e671679e805bfc0f714016bb4f00e55102867464a4bb69a326"}},{"ruleId":"D2","level":"warning","message":{"text":"UnitOverviewTabHelpers.updatePromotionsTable (cognitive 16): UnitOverviewTabHelpers.updatePromotionsTable has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTabHelpers.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee315594d127cc8ba00f02949af0e5ae62fbf7948d4425a844bfb2a4fbec323"}},{"ruleId":"D2","level":"warning","message":{"text":"BattleTable.update (cognitive 16): BattleTable.update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/bottombar/BattleTable.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"2393c7a61d1db9dedccf8faaaa16bb84314a173a1f85d97ba6bd9980de46fea9"}},{"ruleId":"D2","level":"warning","message":{"text":"MinimapTile.updateCityCircle (cognitive 16): MinimapTile.updateCityCircle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/minimap/MinimapTile.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c832c6439f1925a8a937b6bdc4db2db59da1f9c8df77062a28577fbbc306fc"}},{"ruleId":"D2","level":"warning","message":{"text":"WorldScreenTopBarResources.update (cognitive 16): WorldScreenTopBarResources.update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/topbar/WorldScreenTopBarResources.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2d0ed559dd8cc5d1f8656c7991e90c4934d225ee6819cdc35a6a93ee288e21"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopLauncher.main (cognitive 16): DesktopLauncher.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/DesktopLauncher.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ef508aa7f6491b9e457c8cebacd14712731050f038765f5e24481beea91f57"}},{"ruleId":"D2","level":"warning","message":{"text":"WebFont.getModFonts (cognitive 16): WebFont.getModFonts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 2 (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":"web/src/main/kotlin/com/unciv/app/web/WebFont.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b060e59ad7f71d56065f4d4a5e080cf625fa7251aef5a4533c746285e1870612"}},{"ruleId":"D2","level":"warning","message":{"text":"parseCommits (cognitive 16): parseCommits has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 2, loops 1 (nesting depth added 2). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 116, 145). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/incrementVersionAndChangelog.mjs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9e81d699de6cbbf56bf3575a6af913787b664664a8ecc55cbf12c8eca50255"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Civilization: TooManyMethods \u2014 119 methods. The bar is 30 methods; this is 89 over it, 3.97\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":"core/src/com/unciv/logic/civilization/Civilization.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9850187f93937ca75c277264d910f162736ce52bdf2f09bc5f841b0f72b5a465"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Tile: TooManyMethods \u2014 117 methods. The bar is 30 methods; this is 87 over it, 3.90\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":"core/src/com/unciv/logic/map/tile/Tile.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d972f7e9141589fadb1fedafd06d96a35d2649a647e3027338209d78cb2ba4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MapUnit: TooManyMethods \u2014 106 methods. The bar is 30 methods; this is 76 over it, 3.53\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":"core/src/com/unciv/logic/map/mapunit/MapUnit.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc310ed2308716f7cca1d8aad41c1d009576a2633151648dffcb463fe10905ec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: City: TooManyMethods \u2014 94 methods. The bar is 30 methods; this is 64 over it, 3.13\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":"core/src/com/unciv/logic/city/City.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f205caf513ba555f1a6cdf275b457fda8d061288bb67b839779d98f6359ac5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CityView: TooManyMethods \u2014 94 methods. The bar is 30 methods; this is 64 over it, 3.13\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":"core/src/com/unciv/view/CityView.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fee712f239d24c6dd9f8ba6ecc0216f40b7ea6b6b15a1b6b72f56a592fc69fe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MapUnitView: TooManyMethods \u2014 81 methods. The bar is 30 methods; this is 51 over it, 2.70\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":"core/src/com/unciv/view/MapUnitView.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"32eede3587702b4a1a69e50dce1703df80bed27ef4dd9930bf340ad98013eede"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CityConstructions: TooManyMethods \u2014 71 methods. The bar is 30 methods; this is 41 over it, 2.37\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":"core/src/com/unciv/logic/city/CityConstructions.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"603a398cedee1af4806745f646fa3bce6dce7c7efcad67e1aa29869068d9ed2e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CivView: TooManyMethods \u2014 69 methods. The bar is 30 methods; this is 39 over it, 2.30\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":"core/src/com/unciv/view/CivView.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"43490694869030e2e1604d0fd22ce53c05269ddab2a98420822e9c867c77f784"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextureArraySpriteBatch: ClassTooLong \u2014 918 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 518 over it, 2.30\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":"core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd88e867866a55a1df939629037bcd65295a1350aea22f04537a9ea527c4a9d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DiplomacyManager: TooManyMethods \u2014 64 methods. The bar is 30 methods; this is 34 over it, 2.13\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":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aada0a7db9555e6b349a10297832cacd4b1deec1905b4eeb6f54345042208c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: unique/UniqueTriggerActivation.kt: FileTooLong \u2014 1062 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 562 over it, 2.12\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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18c026a27e1fd4457c9be7fa7e54f6db6becbc2b5ab65481c278771a783f474"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Tile: ClassTooLong \u2014 800 significant lines (blank, comment-only and punctuation-only lines excluded), 117 methods. The bar is 400 significant lines; this is 400 over it, 2.00\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":"core/src/com/unciv/logic/map/tile/Tile.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"169be93db107bc353ba5e0a2a24b5b74ff58b044ff032c625d586094643aa76f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Civilization: ClassTooLong \u2014 781 significant lines (blank, comment-only and punctuation-only lines excluded), 119 methods. The bar is 400 significant lines; this is 381 over it, 1.95\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":"core/src/com/unciv/logic/civilization/Civilization.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eac455cff8b8843b44f36799bed61e4862dadf2171a1c706c6f888330bbecb3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TileView: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\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":"core/src/com/unciv/view/TileView.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c8ef90e519cc2e70bfc24d75b67fb1f30267ca942fd30cc31d68cb9f56879e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TextureArraySpriteBatch: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\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":"core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"384b96983589f345fbc3ef9da259a777f88ab07c03f470abf4c06a6ee7bfa706"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: basescreen/TextureArraySpriteBatch.java: FileTooLong \u2014 933 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: TextureArraySpriteBatch (47-1473). The bar is 500 significant lines; this is 433 over it, 1.87\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb059719ed2cca32f0b583c23b10d63d21e199e96d22c733a6a4943a2e14bf4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MapUnit: ClassTooLong \u2014 740 significant lines (blank, comment-only and punctuation-only lines excluded), 106 methods. The bar is 400 significant lines; this is 340 over it, 1.85\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":"core/src/com/unciv/logic/map/mapunit/MapUnit.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"44094ee6d9f50f7e8cb87acd9c9b39be7260290acd08039821a6299a9f53c45b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: civilization/Civilization.kt: FileTooLong \u2014 864 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: Civilization (60-1329). The bar is 500 significant lines; this is 364 over it, 1.73\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/Civilization.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b7c05168cd607b06e1c6add099287b9dcca3010f53bd32e7ea1207f6755e87"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseUnit: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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":"core/src/com/unciv/models/ruleset/unit/BaseUnit.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1098c7b2d1b7e626fc6bd32bcd13654bbca537c4691c660d09b821660e6210"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RulesetValidator: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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":"core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b588ad7f25c5d438c7b9f32308f6d14e3f073c5e4a9545daf4d3e54ba1946f45"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImageGetter: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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":"core/src/com/unciv/ui/images/ImageGetter.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a6e5124cc291b282a0a175e2eac97bc8d3ec29a3019d57feea54b79ff28911"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: unique/UniqueType.kt: FileTooLong \u2014 847 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: class (28-1222). The bar is 500 significant lines; this is 347 over it, 1.69\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc36403c776490c237402a25693dacd405a9788405cd44a2eee46fa29cfe0b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tile/Tile.kt: FileTooLong \u2014 839 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: Tile (42-1282). The bar is 500 significant lines; this is 339 over it, 1.68\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/tile/Tile.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37d4a95f57ed0309d3ed2e71320403223006c026a661ecd4dc1acd8d3b299a0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QuestManager: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\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":"core/src/com/unciv/logic/civilization/managers/quests/QuestManager.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14f630c675ffb753ae300806839654ca0febaa1aa2d5195a93093faaf147f37"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CityConstructions: ClassTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 400 significant lines; this is 247 over it, 1.62\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":"core/src/com/unciv/logic/city/CityConstructions.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6456f88967fa112e495e16db0c3aef3d8bb09ab45bb6016e15dca1d668712602"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mapunit/MapUnit.kt: FileTooLong \u2014 774 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MapUnit (41-1247). The bar is 500 significant lines; this is 274 over it, 1.55\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/MapUnit.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53aac138f206cd50e99a98f1e6473fa99930986f18004e498422591485baedbb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TileMap: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\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":"core/src/com/unciv/logic/map/TileMap.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa843c8051e069d99a3c66d9f95f0dcae9e6e8c1a023f4bee28c08e24bebcf35"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UncivServerRunner.serverRun: MethodTooLong \u2014 serverRun runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"server/src/com/unciv/app/server/UncivServer.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"741be5d51bf9ab221b8a7f7cf5db0d6e30a52b46bd5c54c0b9acd91391df11e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MusicController: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\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":"core/src/com/unciv/ui/audio/MusicController.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c2c1722944ac11600deeffad6789a93757214299c1e423005711696617a4e7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Ruleset.load: MethodTooLong \u2014 load runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\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":"core/src/com/unciv/models/ruleset/Ruleset.kt"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"d119acfb4ae9229138a5d6ca75c84aeb32865e2deea9cdb0962399016dcb1f6b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CityStateFunctions: ClassTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 176 over it, 1.44\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":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5906e6b91a0234f9891f3dd6e5f4838de97b89b98c01610cd0486fcba17d8765"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UnitMovement: ClassTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 163 over it, 1.41\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":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f3761e54f2af6c1e8b8074e7ba15a20d030628abf6e07aeb4f159b10720c03"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ForeignCityView: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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":"core/src/com/unciv/view/ForeignCityView.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1096bba2083a64106d531433e289db620db839e0e55ee9f3d1114d7db3285e08"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RulesetValidator: ClassTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 155 over it, 1.39\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":"core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fe6b7ecf23cabea2c5cdac41d6ef88e31119e021f0d69d5af686a17410f230"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: city/CityConstructions.kt: FileTooLong \u2014 691 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: CityConstructions (55-1159). The bar is 500 significant lines; this is 191 over it, 1.38\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/CityConstructions.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"561f29b0ed1b9fd65b9a9d90913c7f2384e3aa52aad965848aaa8233f32e7bd4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: run-game.main: FunctionTooLong \u2014 main runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"web/validation/web-font/run-game.cjs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f5f2756d44faa9c1a6a05eb4dc37b7a7db2aef449d6f8efc6c08a8e658971e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GameInfo: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"core/src/com/unciv/logic/GameInfo.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e974232599e90d12c2ce0f425ea0009971135a74e6b2a7a53009d7ca2b5ae75f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GameOptionsTable: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"36374c3b8e65edaf079ac961a7329bf6fbe0bcf8794ec2f01fd0e2edd58ae21b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LongPriorityQueue: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"core/src/com/unciv/utils/LongPriorityQueue.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1840241815fd96a836b15a4feb2f9858c8c13878375debdc9ae05ff307042d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CityStateFunctions: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2aff439d8a29d30ad755b7f1d35031aeeeb168b4ca9ffc6f89a23091970bc1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReligionManager: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"core/src/com/unciv/logic/civilization/managers/ReligionManager.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e37dc5e8178c3ad527e576ad4c1c66fe75fec837fdab48f9e3ab850e72f0921"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MapGenerator: ClassTooLong \u2014 500 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 100 over it, 1.25\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":"core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab212cbeeea57f25b9ccfea24452eee60c960036824f7e60bc947a1f754fa6b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: movement/UnitMovement.kt: FileTooLong \u2014 624 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: UnitMovement (48-1011). The bar is 500 significant lines; this is 124 over it, 1.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f354f8a6bcd392d6f39bf26f2b4df80f7c6b5c0b2c9cfca716ecdaa557dd3f7c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CityConstructionsTable: ClassTooLong \u2014 498 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 98 over it, 1.25\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":"core/src/com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"5691601c427ee1231ba246c38b858f070725502a500a6c7c2243d544fd0f7826"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: City: ClassTooLong \u2014 496 significant lines (blank, comment-only and punctuation-only lines excluded), 94 methods. The bar is 400 significant lines; this is 96 over it, 1.24\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":"core/src/com/unciv/logic/city/City.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"093922c270c5186cb7a10d52f723474338bd695da03b1ba3da078c636e06a2ca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TechManager: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\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":"core/src/com/unciv/logic/civilization/managers/TechManager.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ce953e26ac9d8e4f9c93c17725c2752de47f858f660e5949667237c8cbbde8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TileMap: ClassTooLong \u2014 489 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 89 over it, 1.22\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":"core/src/com/unciv/logic/map/TileMap.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"12837829646435290581d947bb342251c7357c1c86910abd16d929dee5431e28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: diplomacy/CityStateFunctions.kt: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: CityStateFunctions (28-922). The bar is 500 significant lines; this is 100 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b696ee90493debd48e69a8b679b0bcefe60a80bb0e3a7d308ee92d5cfc09a67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: validation/RulesetValidator.kt: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: RulesetValidator (66-910). The bar is 500 significant lines; this is 97 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c5f77591f2c5b5f310650f50a08c2128ea3324800bb19f0f103bc22d9e6b28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: diplomacy/DiplomacyManager.kt: FileTooLong \u2014 593 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: DiplomacyManager (164-984). The bar is 500 significant lines; this is 93 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4839a97909fa9c9192cc49fa2d5545104202ae902ad62dadc01f0624596913"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorldScreen: ClassTooLong \u2014 470 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 70 over it, 1.18\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":"core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1449d282d47b4135e0f30e0fb23c4fc0ed875b7ee765d5aa29745752b6472b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TradeLogic.acceptTrade: MethodTooLong \u2014 acceptTrade runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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":"core/src/com/unciv/logic/trade/TradeLogic.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a58028a5097a48c4a650c3022f5ecd41304a76e9207dce0f83d1cc3603c74e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TabbedPager: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"core/src/com/unciv/ui/components/widgets/TabbedPager.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcee48bb2a4961bbda64dce1da06f676b8b41678daf5c28896ca343c7c07dca1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AlertPopup: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"core/src/com/unciv/ui/screens/worldscreen/AlertPopup.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"505edb2b4ed83818a077b3815e1cd30d846f36b12066539728f38409ca229367"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: translations/TranslationFileWriter.kt: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 69 over it, 1.14\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":"core/src/com/unciv/models/translations/TranslationFileWriter.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a06706e92da77b22a508ac2b19a32fb751ea6bb2559231287aa1835b4b0213"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DiplomacyManager: ClassTooLong \u2014 455 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods. The bar is 400 significant lines; this is 55 over it, 1.14\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":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e175c2d74e472ab4e7df35e70acc94118412a665c35adfd389dc53aca5a7bc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AlertPopup: ClassTooLong \u2014 455 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 55 over it, 1.14\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":"core/src/com/unciv/ui/screens/worldscreen/AlertPopup.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a3fe5590f4db6104470c51c7f66dfc925dc0104b30fd66adb85e5d1b88e54f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: worldscreen/WorldScreen.kt: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: WorldScreen (120-861). The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e8fa78e6584d74b21fabab0558c2cb334e4f878994f371aebf4f7a4972cd09"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: battle/Battle.kt: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 67 over it, 1.13\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":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f5e4bd20c459bf9223c35068d0074d23117cbf8fc3adb466d309eedad713fa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorldScreen: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4a607092f45cd68a1533de1226065bb3ba98d593260b9e02802ebc205ff74e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cityscreen/CityConstructionsTable.kt: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: CityConstructionsTable (69-824). The bar is 500 significant lines; this is 57 over it, 1.11\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1248becc0c7156b27c58f0a35f87136a0b1d00f6e22fe72e1e14f5506ba3b2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GameInfo: ClassTooLong \u2014 441 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 41 over it, 1.10\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":"core/src/com/unciv/logic/GameInfo.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"64eae2795b48be0c4b03b524996311838ad0023c8a036edebc1a884d1c1b9891"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UncivFiles: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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":"core/src/com/unciv/logic/files/UncivFiles.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba9e3b46970de6c3faf14b6e0f7f0d68d75f2d9297ba4dc2da0555a2e258315"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UnitMovement: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc8ed23a7f26381dd97b5e398ba7c44fd000bab9e8469625a57b2eb2216a501"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Ruleset: ClassTooLong \u2014 436 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 36 over it, 1.09\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":"core/src/com/unciv/models/ruleset/Ruleset.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3fd8e4d4e363b7d4e030422f94924e1376ccd0da045f778128a0fd93baba37"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: city/City.kt: FileTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: City (51-797). The bar is 500 significant lines; this is 41 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/City.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09de53197b9ff39343f84c6453da83cc3904949bd5739027179a91afc30506a2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorldMapHolder: ClassTooLong \u2014 432 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 32 over it, 1.08\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":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5dee52220cd92e7a4e3ca152b12f05fd58050d4c489f81734647162bb6b47b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MapRegions.assignRegions: MethodTooLong \u2014 assignRegions runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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":"core/src/com/unciv/logic/map/mapgenerator/mapregions/MapRegions.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c49826abd0b4af4b016850163151a83f70debf4ff32dec2aae30785e962bc8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mapgenerator/MapGenerator.kt: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: MapGenerator (45-826). The bar is 500 significant lines; this is 34 over it, 1.07\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f553116e04e68d88cb3b5cb234c5b1d8dab90806c5f463cb927a556638a58b5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModManagementScreen: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"core/src/com/unciv/ui/screens/modmanager/ModManagementScreen.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"293adc03d0a471ea23617e33d8379f818691649f104b1dad153d9214ce082234"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModManagementScreen: ClassTooLong \u2014 426 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 26 over it, 1.07\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":"core/src/com/unciv/ui/screens/modmanager/ModManagementScreen.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59c42ba940072d51a6131dd9ce55414d5351b367503407d9d246b8bf10464fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: newgamescreen/GameOptionsTable.kt: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: GameOptionsTable (42-620). The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6ee916bc9952222fd71de76fa2447a1fbb542495c1d17edb04e16462222404"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: logic/GameInfo.kt: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: GameInfo (100-885). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/GameInfo.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb1d66332e15393bba345928a646ceafe07b4ca74fe3f451af20643f57f2ec9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ruleset/Ruleset.kt: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: Ruleset (106-768). The bar is 500 significant lines; this is 22 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Ruleset.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e2c5d8cd98e354a90656545a618807479696c1c1dce550be13d790e3e3bdc6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextureArraySpriteBatch.draw: MethodTooLong \u2014 draw runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"da39d24ed65a38e998b0daf4ef038bb3e05f43c51e4f8a9987045d49a47c5d32"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BattleTable.simulateBattle: MethodTooLong \u2014 simulateBattle runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"core/src/com/unciv/ui/screens/worldscreen/bottombar/BattleTable.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f577ad1fe5a0bbf2629a4471f208d4b20dcc8d4ca2ea15d7344e5c7fe897411"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Spy: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"core/src/com/unciv/models/Spy.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7774dce7f2436eb4710daf17309d9e96a5fc01c334277b3658b8194e95363b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Building: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4284c60c492caccda079c852be28a23640292ddc8e97085cd55e326beefa7238"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Popup: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"core/src/com/unciv/ui/popups/Popup.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cb82c84768578a58b28a1321b6779d90d5537fe7e444952ac17a039fec857b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CityConstructionsTable: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"core/src/com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b7a41a82137a971b6a11bc157067ddec79858537c929e3e1b8769a8cb2307a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: browser-fetch-contract.main: FunctionTooLong \u2014 main runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"web/validation/http-fetch-engine/browser-fetch-contract.cjs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdd59b61b0057aa7ff2dc66bbdcbe9cf3a266ff739ce6e37483d11982173274"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GameStarter: ClassTooLong \u2014 411 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 11 over it, 1.03\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":"core/src/com/unciv/logic/GameStarter.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6aaf54af5de82b9117c2993fa1d61bd5ff861b32210d90de3fbe3eb5e9915e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: map/TileMap.kt: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: TileMap (34-932). The bar is 500 significant lines; this is 13 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/TileMap.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23315534dac463ccd31030968ddf53fabb9ab396db0f6551de379289afa9103c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: civilization/NextTurnAutomation.kt: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 12 over it, 1.02\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":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6644dc329064bd2113097dfde943648834c8a7ce587196a539a2c2ce3a2ffd33"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GameOptionsTable: ClassTooLong \u2014 402 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 2 over it, 1.01\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":"core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee55abf7a2a85571afa4a41cbdea7dd42332954ce5987df27bb8c33498441ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:416-545 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:548-605 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:608-653 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:656-697 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:705-750 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:786-831 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:834-951 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:954-1087 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:1090-1143 \u2014 These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members\u0027 grain \u2014 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. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8df10efe29a6e817e588601d5d37eb223fc4a4551b4c8f94ac1e4b84f79a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): core/src/com/unciv/models/ruleset/Building.kt:194-231 | core/src/com/unciv/models/ruleset/unit/BaseUnitCost.kt:96-133 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a3c89440a91a6e77ee86cabb790c6b2e00faa2f55d7f88385e8eb2c2b5e907"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): core/src/com/unciv/logic/map/mapgenerator/MapElevationGenerator.kt:71-117 | core/src/com/unciv/logic/map/mapgenerator/MapElevationGenerator.kt:119-161 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"core/src/com/unciv/logic/map/mapgenerator/MapElevationGenerator.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"018eb9bb2b9f6bf1b54424fc92af4540402e41ce71791192da028bdf632857a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): core/src/com/unciv/models/ruleset/Building.kt:451-495 | core/src/com/unciv/models/ruleset/unit/BaseUnit.kt:328-371 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdb630a0e821995ef1f6e13a989e7481f0df18440150b0ebb3652537c395536"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt:173-204 | core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt:277-307 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f748315d4cd50945ac144dc8a6629e5f188e09e49fcc23e3b4f29fbd6e270a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): core/src/com/unciv/models/ruleset/Building.kt:162-191 | core/src/com/unciv/models/ruleset/unit/BaseUnitCost.kt:40-75 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee53ae0c3c0b9e7850c4ce9ac2656e4585d975c558e9fb172e748f4a82278ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): core/src/com/unciv/logic/automation/civilization/DeclareWarTargetAutomation.kt:50-74 | core/src/com/unciv/logic/automation/civilization/DeclareWarTargetAutomation.kt:79-103 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"core/src/com/unciv/logic/automation/civilization/DeclareWarTargetAutomation.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cb931de50064f9f9a26f4fb2aae4c2f126e1cc70939b07b6d009321b9e5f36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:387-421 | core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:423-479 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc3198ade6b28cd11f163ede0e30d8a5b216ceb679b2e20ce14c93c338ff5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:682-713 | core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:834-857 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"364de488da5d50730774bfe71a217d4aa9e68868906981a637b87ab0bb779fd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): core/src/com/unciv/logic/map/mapunit/actions/UnitActionsReligion.kt:18-46 | core/src/com/unciv/logic/map/mapunit/actions/UnitActionsReligion.kt:48-75 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"core/src/com/unciv/logic/map/mapunit/actions/UnitActionsReligion.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b87e4e65d6c7b721ca27adcb0de928c5999813847c77b83cdd4927c4f1a5ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/com/unciv/logic/civilization/Civilization.kt:663-677 | core/src/com/unciv/logic/civilization/Civilization.kt:687-703 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"core/src/com/unciv/logic/civilization/Civilization.kt"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e3b662eea4f3261a25cdb3b830f7eb38ef060c833efb6fe3ea82b57d13a4ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): core/src/com/unciv/ui/screens/multiplayerscreens/MultiplayerScreen.kt:202-240 | core/src/com/unciv/ui/screens/multiplayerscreens/MultiplayerScreen.kt:247-286 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"core/src/com/unciv/ui/screens/multiplayerscreens/MultiplayerScreen.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ec386d68f18cfc739c5d0d5f59166e67cf0b75c1906abcaae3fcec0a7a7776"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt:285-299 | core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt:301-314 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1f37c8aaa86aa23f77792f88d1f1c738fb865365c57eb72d7438e94bbffac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): core/src/com/unciv/ui/screens/worldscreen/status/AutoPlayMenu.kt:67-85 | core/src/com/unciv/ui/screens/worldscreen/status/AutoPlayMenu.kt:87-104 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"core/src/com/unciv/ui/screens/worldscreen/status/AutoPlayMenu.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd41b16ef9bddbf04d3f6dcab2378c71b5b66c4b04abc11739cb76357e97f3d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt:716-739 | core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt:766-791 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fff459c2bffe1ee4f8275a75a3e8f89273ff8c7f9d87af9568207996bbd91a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/com/unciv/logic/automation/civilization/ThreatManager.kt:135-151 | core/src/com/unciv/logic/automation/unit/UnitAutomation.kt:435-451 \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":"core/src/com/unciv/logic/automation/civilization/ThreatManager.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d785d3add27518dcdc48306ceddfe103359d4232c68d3835f93dd9c153f0064a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): core/src/com/unciv/logic/multiplayer/Multiplayer.kt:151-188 | core/src/com/unciv/logic/multiplayer/Multiplayer.kt:197-236 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"core/src/com/unciv/logic/multiplayer/Multiplayer.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28fb4ff927fcbe37478afc6a04c75be76c16e8df9fa548cb258eef26b12398b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt:741-764 | core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt:793-816 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d224d4c18b951fae3790c055cb4b597dc553dac02ae4e9515a427dc7e8060a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/com/unciv/models/ruleset/Building.kt:240-255 | core/src/com/unciv/models/ruleset/unit/BaseUnitCost.kt:78-92 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"80beee42441bf7bd74fa34da538e7e25aba10e39c59655d6c3845d6c229c7fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt:149-166 | core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt:644-665 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"da41b9dee98bc8861bda09db41a66b3c050e3564b364078afb9605338b09cda8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): core/src/com/unciv/logic/map/MapPathing.kt:85-105 | core/src/com/unciv/logic/map/MapPathing.kt:118-140 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"core/src/com/unciv/logic/map/MapPathing.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee38d2e2271173c8a7745e19e8423f882be4081e1209560889e8e2211dbd570e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/com/unciv/ui/images/ImageGetter.kt:420-437 | core/src/com/unciv/ui/images/ImageGetter.kt:439-455 \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":"core/src/com/unciv/ui/images/ImageGetter.kt"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"300badcaf555797aa09657fa07a0f29ba5dbfd386f3d4d827001a4ca52a54fbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): core/src/com/unciv/logic/files/UncivFiles.kt:251-270 | core/src/com/unciv/logic/files/UncivFiles.kt:464-483 \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":"core/src/com/unciv/logic/files/UncivFiles.kt"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3258d677837ac7dbe44df658b9a8c9bc1a3bba033d5c619769535b1cc09f06f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorOdImporter.kt:81-95 | core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorWesnothImporter.kt:83-104 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorOdImporter.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8b284fd460242436dedf3c493dd0459282727063570f51c54af28f4d3e2140"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): android/src/com/unciv/app/MultiplayerTurnCheckWorker.kt:95-107 | android/src/com/unciv/app/MultiplayerTurnCheckWorker.kt:116-128 \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":"android/src/com/unciv/app/MultiplayerTurnCheckWorker.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"035d0ef38a11a01e4812f3592bd2e0fd006cb698ae4061a7b46bfba36b374bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): core/src/com/unciv/ui/screens/devconsole/CliInput.kt:62-71 | core/src/com/unciv/ui/screens/devconsole/CliInput.kt:113-122 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"core/src/com/unciv/ui/screens/devconsole/CliInput.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b3a1fcf4757b5f0aef8c0b98b775e05f42931d4450150476a205f92264afef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): core/src/com/unciv/ui/components/widgets/ZoomableScrollPane.kt:208-225 | core/src/com/unciv/ui/components/widgets/ZoomableScrollPane.kt:227-244 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"core/src/com/unciv/ui/components/widgets/ZoomableScrollPane.kt"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6066664f251869261679f6f195e0f95f6eaf01cceb11b8f72b937a07015e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): core/src/com/unciv/logic/map/pathingmap/PathingMap.kt:541-562 | core/src/com/unciv/logic/map/pathingmap/PathingMap.kt:565-586 | core/src/com/unciv/logic/map/pathingmap/PathingMap.kt:589-606 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"core/src/com/unciv/logic/map/pathingmap/PathingMap.kt"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5a1acddc75a309eb8bfedd37596a421d3c6bf3365a2908692a0b1c894720b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/com/unciv/ui/screens/worldscreen/worldmap/OverlayButtonData.kt:91-113 | core/src/com/unciv/ui/screens/worldscreen/worldmap/OverlayButtonData.kt:122-140 \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":"core/src/com/unciv/ui/screens/worldscreen/worldmap/OverlayButtonData.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"bead42464bbbc5ad4b358f17c317a43355c629ada6c8581f1098c6f7985ec186"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/com/unciv/ui/screens/cityscreen/SpecialistAllocationTable.kt:82-95 | core/src/com/unciv/ui/screens/cityscreen/SpecialistAllocationTable.kt:97-109 \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":"core/src/com/unciv/ui/screens/cityscreen/SpecialistAllocationTable.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7053521ef915c50f06a2a25cf9865a683a3216d56fa2d203f010b33955acbda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): core/src/com/unciv/ui/objectdescriptions/DescriptionHelpers.kt:43-58 | core/src/com/unciv/ui/objectdescriptions/FormattedLineListBuilder.kt:247-261 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"core/src/com/unciv/ui/objectdescriptions/DescriptionHelpers.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb62234677b324a0ba476b25dcd9d2fa86cc961fa3e8c7c47abd569247bd815"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): core/src/com/unciv/logic/automation/civilization/MotivationToAttackAutomation.kt:225-242 | core/src/com/unciv/logic/automation/civilization/MotivationToAttackAutomation.kt:245-262 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"core/src/com/unciv/logic/automation/civilization/MotivationToAttackAutomation.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"887dee7fd943a045a7164167f36f911a31110bd0d1c1bbf6d0f8963e0d031ac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/com/unciv/logic/civilization/Civilization.kt:1074-1086 | core/src/com/unciv/logic/civilization/Civilization.kt:1088-1102 \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":"core/src/com/unciv/logic/civilization/Civilization.kt"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"e500d87680817dd05c4b8ce8efe5491e08980f6267d4be279ec1943cba4c6246"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/com/unciv/ui/objectdescriptions/TechnologyDescriptions.kt:406-414 | core/src/com/unciv/ui/objectdescriptions/TechnologyDescriptions.kt:422-430 \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":"core/src/com/unciv/ui/objectdescriptions/TechnologyDescriptions.kt"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b11abf40a93178aef40f45e7712417208fc91f7320e4c3403dc3d946864f2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/com/unciv/ui/popups/options/OptionsPopupHelpers.kt:127-142 | core/src/com/unciv/ui/popups/options/OptionsPopupHelpers.kt:153-163 \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":"core/src/com/unciv/ui/popups/options/OptionsPopupHelpers.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"100d07f53d50fa2821088bc239fe2b192d2025b6edf9cf8c6f520063904d66af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): core/src/com/unciv/models/ruleset/nation/Nation.kt:165-175 | core/src/com/unciv/models/ruleset/tile/Terrain.kt:178-187 | core/src/com/unciv/models/ruleset/unit/BaseUnit.kt:440-449 \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":"core/src/com/unciv/models/ruleset/nation/Nation.kt"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f4b5a4a6dbbbb23a2c5cab08ce0d5b5e3871128675284d314bfe003b2ad17d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorViewTab.kt:268-272 | core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorViewTab.kt:275-278 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorViewTab.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ce2bd5be12cb0e064d02b1479585af0357cb5bc85c419eec6336e6d2f448d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): core/src/com/unciv/ui/screens/multiplayerscreens/MultiplayerScreen.kt:139-154 | core/src/com/unciv/ui/screens/multiplayerscreens/MultiplayerScreen.kt:163-178 | core/src/com/unciv/ui/screens/multiplayerscreens/MultiplayerScreen.kt:180-195 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"core/src/com/unciv/ui/screens/multiplayerscreens/MultiplayerScreen.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c58ba7be652ee3d673b17aa826918e160bf86cd54fb368b73fb31821a9150e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/com/unciv/models/ruleset/IConstruction.kt:144-152 | core/src/com/unciv/models/ruleset/tile/TileImprovement.kt:186-194 \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":"core/src/com/unciv/models/ruleset/IConstruction.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfeb546171ea619a7b80c0b2b8eb6d2af5c1a0aaf346929785fedf0db720ba80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/com/unciv/models/ruleset/unique/Countables.kt:194-204 | core/src/com/unciv/models/ruleset/unique/Countables.kt:238-246 \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":"core/src/com/unciv/models/ruleset/unique/Countables.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8eafd682966ed73c2347a2995fa12b0568606435d148cff1746a86ed81505bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/com/unciv/logic/civilization/CivConstructions.kt:107-117 | core/src/com/unciv/logic/civilization/CivConstructions.kt:131-141 \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":"core/src/com/unciv/logic/civilization/CivConstructions.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e39736948f92d49c0da3ad643d203ec944cea91f5cde2f57a8414d0ef41281"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): core/src/com/unciv/logic/multiplayer/storage/UncivServerFileStorage.kt:54-72 | core/src/com/unciv/logic/multiplayer/storage/UncivServerFileStorage.kt:89-107 \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":"core/src/com/unciv/logic/multiplayer/storage/UncivServerFileStorage.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ed406bcd12fd356b880e7b122640c344f802c9d8134e80193088e38b221563"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/com/unciv/logic/civilization/diplomacy/DiplomacyFunctions.kt:113-121 | core/src/com/unciv/logic/civilization/diplomacy/DiplomacyFunctions.kt:127-135 \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":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyFunctions.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00ffda0511cf758cb77fe2509839cb56774224b4a9050de09fcabe530d3e264"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): core/src/com/unciv/logic/map/mapgenerator/resourceplacement/StrategicBonusResourcePlacementLogic.kt:202-217 | core/src/com/unciv/logic/map/mapgenerator/resourceplacement/StrategicBonusResourcePlacementLogic.kt:292-308 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"core/src/com/unciv/logic/map/mapgenerator/resourceplacement/StrategicBonusResourcePlacementLogic.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbe336db47965c170ac8aa785676811f320e9bfd53ec295a847e670c789b939"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:252-270 | core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:273-285 \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":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"2099b7a86d948faa600d80713182a698df3b03da18863c752d98265c8cc6ba6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/com/unciv/ui/screens/diplomacyscreen/CityStateDiplomacyTable.kt:212-224 | core/src/com/unciv/ui/screens/diplomacyscreen/CityStateDiplomacyTable.kt:226-243 \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":"core/src/com/unciv/ui/screens/diplomacyscreen/CityStateDiplomacyTable.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"148dc08fd69125a09c1809558989931e3d3b0b4bee4d034d6f4fd5c30346c341"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): android/src/com/unciv/app/AndroidSaverLoader.kt:35-53 | android/src/com/unciv/app/AndroidSaverLoader.kt:58-72 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"android/src/com/unciv/app/AndroidSaverLoader.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"944e7c88d3f34811a3267de12f79b48c50d4a21021176e338392ddd5066815c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/com/unciv/logic/civilization/CivConstructions.kt:119-129 | core/src/com/unciv/logic/civilization/CivConstructions.kt:143-153 \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":"core/src/com/unciv/logic/civilization/CivConstructions.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28a189abfd1b7d305db5e49e176a99e73440dd9dd4076637e4d65b8692953ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/com/unciv/logic/multiplayer/storage/UncivServerFileStorage.kt:13-24 | core/src/com/unciv/logic/multiplayer/storage/UncivServerFileStorage.kt:42-52 \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":"core/src/com/unciv/logic/multiplayer/storage/UncivServerFileStorage.kt"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec14189d7c4c0c4226c75908b551f48525415754665a4365d1a14b509f56079"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/com/unciv/logic/civilization/diplomacy/DiplomacyFunctions.kt:174-182 | core/src/com/unciv/logic/civilization/diplomacy/DiplomacyFunctions.kt:207-216 \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":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyFunctions.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb66971ebd7257b83fa1db3f09eb0ce777ff91c868d7e7f810fe07ac04d15b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt:387-403 | core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt:440-462 \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":"core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec25ed404001b0bc2cae7256d15e1286a12a1095193b0a1e57005a7d119d14a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): core/src/com/unciv/ui/screens/cityscreen/CityMapHolder.kt:13-27 | core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt:58-71 | core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt:85-98 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"core/src/com/unciv/ui/screens/cityscreen/CityMapHolder.kt"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"211e2f1e5a0b33a35574b33ce467f684c78b2f6ba004b9db900e40514e5c1088"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorEditSubTabs.kt:184-194 | core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorEditSubTabs.kt:239-250 \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":"core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorEditSubTabs.kt"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a9fca0f0b870efdccf46058ba1c5f1e25ce4f2a2020d2c70828380dcf50569"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/com/unciv/ui/screens/victoryscreen/LineChart.kt:123-131 | core/src/com/unciv/ui/screens/victoryscreen/LineChart.kt:137-145 \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":"core/src/com/unciv/ui/screens/victoryscreen/LineChart.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebc47119fd9af2c15a73170699d7ee206445f3277f68a7eca9f04607b603bad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/com/unciv/logic/map/mapgenerator/MapElevationGenerator.kt:163-171 | core/src/com/unciv/logic/map/mapgenerator/MapElevationGenerator.kt:173-181 \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":"core/src/com/unciv/logic/map/mapgenerator/MapElevationGenerator.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"795698a3289eff0d0ca1321f40b5b5cf8fa36b8baad58448d7a5b7329473c395"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/com/unciv/logic/map/mapgenerator/Perlin.kt:44-56 | core/src/com/unciv/logic/map/mapgenerator/Perlin.kt:62-79 \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":"core/src/com/unciv/logic/map/mapgenerator/Perlin.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fe385a761e2a89a82d6bb37535499b452c9d5d5201e411092c0cf5add66f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): core/src/com/unciv/ui/screens/devconsole/DevConsolePopup.kt:174-186 | core/src/com/unciv/ui/screens/devconsole/DevConsolePopup.kt:188-200 \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":"core/src/com/unciv/ui/screens/devconsole/DevConsolePopup.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f2fb04e29d60e0a9f88c7804a299d42570c40ec38cae6a152e5d2e235be4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorOdImporter.kt:70-79 | core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorWesnothImporter.kt:73-81 \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorOdImporter.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"632628465b9083bbabf571e1d5aa6cdc88fbb61538a232253698870ee51de0c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/com/unciv/ui/screens/multiplayerscreens/MultiplayerScreen.kt:101-108 | core/src/com/unciv/ui/screens/multiplayerscreens/MultiplayerScreen.kt:110-119 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/multiplayerscreens/MultiplayerScreen.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30c66038fdea54b55e3a6cec7c40a180d72d784492d2f1b8c1ee6db936b9236"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/com/unciv/logic/map/mapunit/MapUnit.kt:377-384 | core/src/com/unciv/models/ruleset/unit/BaseUnit.kt:499-505 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"core/src/com/unciv/logic/map/mapunit/MapUnit.kt"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"598c6db035ded74241600d3188507ee44c88ae9f00e56c929ed6ba245c99bcb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorFilesScroll.kt:68-76 | core/src/com/unciv/ui/screens/newgamescreen/MapFileSelectTable.kt:115-122 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorFilesScroll.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"786879fb51b28382887a071a22d7a7b9d9b8f82be03827e137f13e735ed94bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/com/unciv/logic/battle/MapUnitCombatant.kt:38-44 | core/src/com/unciv/logic/battle/Battle.kt:875-882 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"core/src/com/unciv/logic/battle/MapUnitCombatant.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c5cd1c8cfd0313df45b1f1474cec621a671049d43cbaa7aa11740521bb3e60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): core/src/com/unciv/utils/LongPriorityQueue.kt:103-116 | core/src/com/unciv/utils/LongPriorityQueue.kt:118-132 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"core/src/com/unciv/utils/LongPriorityQueue.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"163bd570901f9e47ac27f19797a48fe2d44dfbd26f71ad9b149f148ed1b57162"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt:346-353 | core/src/com/unciv/logic/GameStarter.kt:158-164 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"297164ca8f2374adb8e36aa43277d1965e05b36d954463b01bc69a2cca3a3dd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt:841-844 | core/src/com/unciv/ui/images/ImageGetter.kt:522-524 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"20031cec164d89f29f9ceae8289fe9d4ab26e26c3323175e3eeeb3b58d413876"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): core/src/com/unciv/logic/city/City.kt:336-340 | core/src/com/unciv/logic/civilization/Civilization.kt:1062-1068 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"core/src/com/unciv/logic/city/City.kt"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"3598ab2598f4d9ca123507a28b1a8f12f94212894741ced6fec56528b803b3c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): core/src/com/unciv/models/ruleset/Building.kt:472-488 | core/src/com/unciv/models/ruleset/unit/BaseUnit.kt:348-364 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/com/unciv/models/ruleset/Building.kt:472\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":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"41310370f90ceb1851e15ac976e5a2c61192cd2854e62b060ae01eb01f360806"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:806-821 | core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:839-855 \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 \u0060core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:806\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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1c31531f8a65641b4a16b04df19a9028262a79b2aea2390077f3686581d800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt:67-82 | core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt:334-349 \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 \u0060core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt:67\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":"core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf86c8db1fbac82649cab8e464faefbd89a567707b9f24eb70a732a568e4dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:224-238 | core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:315-330 \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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f99a95d101ca2d6c78c7eccda796050a4f7f9308ed4cd66ea05dc53543d9fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201316 lines \u00D7 2): core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorOdImporter.kt:86-95 | core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorWesnothImporter.kt:89-104 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorOdImporter.kt:86\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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorOdImporter.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"15820325c8c5a49dbdb47fcd75fe4232f3b0dafd126c07352331053cc74b4de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:401-415 | core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:464-473 \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 \u0060core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:401\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:464\u0060 calls \u0060getCivUnits\u0060 and \u0060core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:401\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":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ec074aecd9e716d6016d3ba8e9b83881df2c3fbc02b2f0a20d0daae96801fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/com/unciv/logic/map/pathingmap/PathingMap.kt:548-562 | core/src/com/unciv/logic/map/pathingmap/PathingMap.kt:572-586 \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 \u0060core/src/com/unciv/logic/map/pathingmap/PathingMap.kt:548\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":"core/src/com/unciv/logic/map/pathingmap/PathingMap.kt"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06cbfc3d2e078443d234d1d4bd9e180aa8d0df637d373367d6bb5671b0a221d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:859-873 | core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:878-892 \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 \u0060core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:859\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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"4507e7e2d3d43619ae90fb69a245ac2b76c20a8a08c222aa022e47b24d17ff60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): core/src/com/unciv/models/skins/SkinStrings.kt:56-69 | core/src/com/unciv/models/skins/SkinStrings.kt:83-96 \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 \u0060core/src/com/unciv/models/skins/SkinStrings.kt:56\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/skins/SkinStrings.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5e27d87821796a5a8a1b3538ae8e184de7afa51ead014470d8ab1f4bdae69c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): core/src/com/unciv/logic/map/TileMap.kt:339-350 | core/src/com/unciv/logic/map/TileMap.kt:353-361 \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 \u0060core/src/com/unciv/logic/map/TileMap.kt:339\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":"core/src/com/unciv/logic/map/TileMap.kt"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"19416abb4c3bb0defafc2e21ba5c1d5c900280930d7b31bc925d2f435af1984d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/com/unciv/models/ruleset/Building.kt:456-467 | core/src/com/unciv/models/ruleset/unit/BaseUnit.kt:332-343 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/com/unciv/models/ruleset/Building.kt:456\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":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d2387c8aed0c026cd8cd01dadabe68c4e34e114a64b34ed6d72a7bb6ff8648"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt:60-71 | core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt:87-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd68a0a8bf76f559b0b0567c294ef09ae9701d7e21f7dc1ece56b811cac185e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:181-188 | core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:222-229 | core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:313-321 \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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:311\u0060 calls \u0060getCivilizationOrNull\u0060 and \u0060core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:180\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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d30874761306a5af73e34f3c1d96328f6eb9dbee9a44867483fdca0973b2aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 3): core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt:99-110 | core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt:160-171 | core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt:187-193 \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 \u0060core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt:99\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":"core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b377385b527ce08174016b55ae975b5419526cb4c2daccd8b139eae7ef13981e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/com/unciv/logic/map/pathingmap/PathingMap.kt:368-376 | core/src/com/unciv/logic/map/pathingmap/PathingMap.kt:378-386 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/pathingmap/PathingMap.kt"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2a806a34f7ef5af8efe1b23cc73c1e773710019b53c1f3cd2b0cccc9678d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/com/unciv/logic/simulation/Simulation.kt:270-278 | core/src/com/unciv/logic/simulation/Simulation.kt:280-288 \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 \u0060core/src/com/unciv/logic/simulation/Simulation.kt:270\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":"core/src/com/unciv/logic/simulation/Simulation.kt"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba5e80db2b9d421ab78921496e4947a9f65e1e0d270c4fd94b5d2f44d6a9b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/com/unciv/models/ruleset/Belief.kt:27-35 | core/src/com/unciv/models/ruleset/tech/Technology.kt:47-55 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Belief.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"936783a87efc82884018ae29b64077572491cc355f8d9a9c0c8e91b42f43f20e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/com/unciv/models/ruleset/nation/Nation.kt:167-175 | core/src/com/unciv/models/ruleset/tile/TileImprovement.kt:87-95 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/nation/Nation.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"8636aa37354cc8099835aa59b229fbe9a6885201240f419e8be75601450be585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): core/src/com/unciv/logic/civilization/Civilization.kt:669-675 | core/src/com/unciv/logic/civilization/Civilization.kt:694-701 \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 \u0060core/src/com/unciv/logic/civilization/Civilization.kt:669\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":"core/src/com/unciv/logic/civilization/Civilization.kt"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c6a458004f8c3b6cf5e2e585d826495bbda171c37f4619a7e565ee919a61ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 3): core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt:267-274 | core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt:276-283 | core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt:284-288 \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 \u0060core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt:267\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt:264\u0060 calls \u0060add\u0060, \u0060row\u0060 and \u0060core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt:273\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":"core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01072133b851e97d61ff39cd9a1a7b2c65643ada967b390d107be2f9daf5f64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt:158-165 | core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt:654-661 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"595dea7e7b240fc91413b996e9001d058f9553092535a2a612eab389aa486ead"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): core/src/com/unciv/ui/screens/worldscreen/bottombar/BattleTable.kt:358-365 | core/src/com/unciv/ui/screens/worldscreen/bottombar/BattleTable.kt:427-434 \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":"core/src/com/unciv/ui/screens/worldscreen/bottombar/BattleTable.kt"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86f2644cb482260ea3a7ab0051ab1b4a94852d3d16ba228c806d645c759c249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/com/unciv/logic/map/mapgenerator/mapregions/MapRegions.kt:292-298 | core/src/com/unciv/logic/map/mapgenerator/mapregions/MapRegions.kt:301-307 | core/src/com/unciv/logic/map/mapgenerator/mapregions/MapRegions.kt:310-316 \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 \u0060core/src/com/unciv/logic/map/mapgenerator/mapregions/MapRegions.kt:292\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 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":"core/src/com/unciv/logic/map/mapgenerator/mapregions/MapRegions.kt"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b5b6e0c849bb0bd108aef8a0796e27f65275da50eb070a5728226f0ca14ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:50-56 | core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:64-70 | core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:78-84 \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 \u0060core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:50\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":"core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe615f1a8b4fe2d9efda61a198c8d20a4e7b297201237e75379cc6697438aa40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/com/unciv/logic/battle/Battle.kt:259-265 | core/src/com/unciv/logic/battle/Battle.kt:268-274 \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":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2822bb709e7a82caa31be799bc73f99b8a42ecdaf3ab09c7510fcb603bde1bb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/com/unciv/logic/civilization/Civilization.kt:1075-1081 | core/src/com/unciv/logic/civilization/Civilization.kt:1090-1096 \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 \u0060core/src/com/unciv/logic/civilization/Civilization.kt:1075\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/com/unciv/logic/civilization/Civilization.kt:1097\u0060 calls \u0060addHappiness\u0060 and \u0060core/src/com/unciv/logic/civilization/Civilization.kt:1082\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":"core/src/com/unciv/logic/civilization/Civilization.kt"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"536a1fd14a60c12c1df780da31bdc7212bab4acf401eb93819527ad0a2e9d5ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/com/unciv/logic/civilization/managers/PolicyManager.kt:267-273 | core/src/com/unciv/logic/civilization/managers/TechManager.kt:330-336 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"core/src/com/unciv/logic/civilization/managers/PolicyManager.kt"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e8b94ebcdbe210ba457b236cacb9825f61b1e48a320639df45c922b2be5e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/com/unciv/models/ruleset/Policy.kt:107-113 | core/src/com/unciv/ui/objectdescriptions/TechnologyDescriptions.kt:271-277 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/com/unciv/models/ruleset/Policy.kt:107\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":"core/src/com/unciv/models/ruleset/Policy.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"281575111050beffe84a75b5aa7aa18e74117e0adb656209cc257ccaa6e92944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:277-283 | core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:311-317 \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. 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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"58121f9b20a3d1d7876b4bcc30049af88ca383104ec24283ca7919720d8d2abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:1141-1147 | core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:1163-1168 \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 \u0060core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:1141\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. 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. 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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9653780cce185bfb1160a4d629ccb23b49a367c61d24dc937fb3d3d2c70b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/com/unciv/logic/battle/Battle.kt:448-453 | core/src/com/unciv/logic/battle/Battle.kt:457-462 \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 \u0060core/src/com/unciv/logic/battle/Battle.kt:448\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":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"79484cc311d6c0cdf5ed6243128962b41d18e44d93cb2b815492c01a488d0b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt:287-295 | core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt:302-310 \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 \u0060core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt:287\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":"core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acb064ea5c42c97f2e935c6b49a4fe72d9ca9536cb2818958d7d300525a1d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:641-646 | core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:661-666 \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 \u0060core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:641\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. 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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f27b8bd4da2f0457c610b5d57a5184cb523a8076833c764dd703e2e590f67f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/com/unciv/ui/components/widgets/BorderedTable.kt:43-48 | core/src/com/unciv/ui/components/widgets/BorderedTable.kt:50-55 \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":"core/src/com/unciv/ui/components/widgets/BorderedTable.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e67b1c019acd08e851d8a99183f0b9e6e2df5f5cfb5f627d5425cd219b6cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/com/unciv/logic/automation/civilization/DeclareWarTargetAutomation.kt:51-55 | core/src/com/unciv/logic/automation/civilization/DeclareWarTargetAutomation.kt:80-84 \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 \u0060core/src/com/unciv/logic/automation/civilization/DeclareWarTargetAutomation.kt:51\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":"core/src/com/unciv/logic/automation/civilization/DeclareWarTargetAutomation.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89ce83945aa3a09e1e9b699f40140f5cd2e9b55d780d5de3996265dd8f6a405"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt:97-105 | core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt:158-166 \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":"core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f178c8d81b9dd8f9145a15a39efacb8e51319deebd19952b712f42bf529ce98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/com/unciv/models/ruleset/unique/Countables.kt:195-199 | core/src/com/unciv/models/ruleset/unique/Countables.kt:239-243 \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 \u0060core/src/com/unciv/models/ruleset/unique/Countables.kt:195\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":"core/src/com/unciv/models/ruleset/unique/Countables.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c48726efd3ac12b132179f3edb38f1ffe6eb7f1122790d6d5880467f0956fa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/com/unciv/logic/map/AStar.kt:151-159 | core/src/com/unciv/logic/map/BFS.kt:75-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/AStar.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6875eb938ef3b8937349f1d26435768bae8c86b62548173abf208a133e91027"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/com/unciv/models/ruleset/Policy.kt:42-46 | core/src/com/unciv/models/ruleset/tile/TileResource.kt:129-133 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Policy.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a36177c41c2922f6b21a07dbec46214df5ef75836bee7f366faa1d8d27be06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorLoadTab.kt:68-78 | core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorSaveTab.kt:95-105 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorLoadTab.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a090f69d3e9cf25f44c24fe5536e975e989c5d98e0a8c1a706a87cbb710138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/com/unciv/logic/city/City.kt:413-417 | core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt:657-661 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060flag\u0060 to \u0060CityFlags\u0060 in one and \u0060DiplomacyFlags\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt:664\u0060 calls \u0060getFlag\u0060 and \u0060core/src/com/unciv/logic/city/City.kt:419\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":"core/src/com/unciv/logic/city/City.kt"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ccb39ebe186fe3d66d8a30f241ca64670fb2424b2c26bd624507a30971193b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/com/unciv/logic/civilization/Civilization.kt:1305-1312 | core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsOverviewTable.kt:328-334 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"core/src/com/unciv/logic/civilization/Civilization.kt"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b14c4ae0d0c770b6810fa5602561f969606906124ff6efde29bd78fcd9a4cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:257-274 | core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:345-362 \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 \u0060core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:257\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:277\u0060 calls \u0060getCivilizationOrNull\u0060 and \u0060core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt:365\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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3e5facb5da94545d959c352d89d3b525d1efdb279b6fca741ebae15db1f1ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): core/src/com/unciv/logic/map/MapPathing.kt:90-105 | core/src/com/unciv/logic/map/MapPathing.kt:124-140 \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 \u0060core/src/com/unciv/logic/map/MapPathing.kt:90\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":"core/src/com/unciv/logic/map/MapPathing.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fb97b2ba5ea7f07d1c50f91e0107a2cf82bd2b44de2aa15494b8c26cf9bc06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:55-63 | core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:83-89 | core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:103-111 \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 \u0060core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:103\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:101\u0060 calls \u0060getResourceRequirementsPerTurn\u0060, \u0060containsKey\u0060 and \u0060core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:54\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":"core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4f32bd143e423ebc2f3f74f16b429e9537d4f1b9ab237ffc46304a33baf843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:395-403 | core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:426-434 \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 \u0060core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt:395\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"e107c4e2d7820c1e8d0200428ead6f0e75dd4e4cd5c58d354b0cc2f3dbbd6d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:93-99 | core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt:103-109 \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":"core/src/com/unciv/ui/objectdescriptions/ResourceDescriptions.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"966f76a0b8d63523db8553e592c91344d4d326139f68421013ea869050382200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/com/unciv/models/ruleset/Policy.kt:129-133 | core/src/com/unciv/models/ruleset/Policy.kt:155-159 \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 \u0060core/src/com/unciv/models/ruleset/Policy.kt:129\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":"core/src/com/unciv/models/ruleset/Policy.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ded10e3513e0f404dae213e755f260c89cd61ad64955bf8e8b87ece044218d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/com/unciv/logic/map/mapgenerator/resourceplacement/MapRegionResources.kt:59-63 | core/src/com/unciv/logic/map/mapgenerator/resourceplacement/MapRegionResources.kt:76-80 \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":"core/src/com/unciv/logic/map/mapgenerator/resourceplacement/MapRegionResources.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcb3ca81ba4c3130673f2090368e244dde0e0ed39f29d97672fedc72a7c4a5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 3): core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:426-497 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:844-915 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:964-1035 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b58548189b3ba25603408594b6a8e3133b05316ef326677e6eabc20d092181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:797-807 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:917-927 \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":"core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"1877f52e61ded1db25901308773a8a3cc335116c8b2da76f091ffa0a2a1e190d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:621-630 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:665-674 \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":"core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1d8964986bbda27fe173894884c7a8f6e8907470c745f6326edaaa46a54223"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:802-808 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:922-928 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:1112-1120 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad12ad032f27a97bf3bf6d5630ea5cba5ef9aabf7b4e76335da47a9bfc4a31c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:519-525 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:579-585 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:627-633 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:671-677 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:724-730 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:805-811 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:925-931 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:1061-1067 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:1117-1123 \u2014 all 9 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcb5659a9668398399a02569cd24421604bef4a4a08f6430d5ad75cc1859ce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:539-545 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:599-605 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:647-653 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:691-697 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:744-750 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:825-831 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:945-951 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:1081-1087 | core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:1137-1143 \u2014 all 9 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 \u0060core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java:539\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":"core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6d4f2edc10bbea19bce0483572333aeece4b7989e2ca955b69739453ca27e7"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: .:core: .:core: abstractness 0.02, instability 0.00, distance 0.98 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fca0e0a533c2f30fa9ca12d1b90a9f490e872c3242b3c973514a5667422a79f3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ModConstants (LCOM4 4): ModConstants\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ModConstants.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1c06da21c50707e402d6830c5323232be6a79b4bd0bb244a27687c33112749"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CrashScreen (LCOM4 4): CrashScreen\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/crashhandling/CrashScreen.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4bfcd24820917e361cfc32eb8181d4b91b1e3db030295ef1f77afba528c077"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DiplomacyScreen (LCOM4 4): DiplomacyScreen\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/diplomacyscreen/DiplomacyScreen.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9f609519d90db112431b08e974177f644fef02e3b6b08795dfdc8939ff9d38"}},{"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":"c0640e4d36dc4e693fc6dec3d6abe08a0040f26e06e3a332767432066448ad21"},"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: core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt: core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 331 in UniqueTriggerActivation.getTriggerFunction at line 79. 2 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt\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":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f397de5a3ccd2951ebe24de54b942e8c68388dffad24aa251ab67a32b4003f02"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapTileUpdater.kt: core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapTileUpdater.kt changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in WorldMapTileUpdater.updateTilesForSelectedUnit at line 61. 2 of those changes were fix/bug commits, and the other 24 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapTileUpdater.kt\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":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapTileUpdater.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabd0717e793b0e4c2eb3c4c951160e209e79e697429fb9bc588b05c2413d141"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/unit/UnitAutomation.kt: core/src/com/unciv/logic/automation/unit/UnitAutomation.kt changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in UnitAutomation.automateUnitMoves at line 53. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/unit/UnitAutomation.kt\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":"core/src/com/unciv/logic/automation/unit/UnitAutomation.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5782e07e9a76f3f573d87af80ff30427b81259a71893fcd1c645b4bdbd38d364"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/unit/CivilianUnitAutomation.kt: core/src/com/unciv/logic/automation/unit/CivilianUnitAutomation.kt changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in CivilianUnitAutomation.automateCivilianUnit at line 23. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/unit/CivilianUnitAutomation.kt\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":"core/src/com/unciv/logic/automation/unit/CivilianUnitAutomation.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5fbd33f15967ecebf6fc3273db16b2bf3894471cb6b6d8e5a8472a387e0d31"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt: core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt changed 40 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in WorldMapHolder.onTileClicked at line 166. 6 of those changes were fix/bug commits, and the other 34 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt\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":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee2635064d3bfa9fd3ca28f4d8a17a6c1cfb043d6c208ad7286dc8f887a5b7a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/unit/SpecificUnitAutomation.kt: core/src/com/unciv/logic/automation/unit/SpecificUnitAutomation.kt changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in SpecificUnitAutomation.automateSettlerActions at line 113. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/unit/SpecificUnitAutomation.kt\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":"core/src/com/unciv/logic/automation/unit/SpecificUnitAutomation.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb7c474d3ba22e3b859670c545422a7fdf5d8e42aeca10d185006c39eab6737"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/screens/worldscreen/bottombar/BattleTable.kt: core/src/com/unciv/ui/screens/worldscreen/bottombar/BattleTable.kt changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in BattleTable.simulateBattle at line 180. 2 of those changes were fix/bug commits, and the other 19 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/screens/worldscreen/bottombar/BattleTable.kt\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":"core/src/com/unciv/ui/screens/worldscreen/bottombar/BattleTable.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3031e9b17461e3f97ec491e2bb396e6f0c24b9fcd61bcc99572eb6a200433c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt: core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in WorkerAutomation.getImprovementRanking at line 513. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt\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":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"013a88582244781a96229e3439ab5bfae4f3c79898c6c2697a3b139fc89ac570"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt: core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in WorldScreen.update at line 419. 2 of those changes were fix/bug commits, and the other 19 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt\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":"core/src/com/unciv/ui/screens/worldscreen/WorldScreen.kt"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e851695632de825e817785dbe7ca875f1344df788db3a8a43eacfdab2a5dfd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/map/mapunit/MapUnit.kt: core/src/com/unciv/logic/map/mapunit/MapUnit.kt changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in MapUnit.healingAmountForTile at line 535. 6 of those changes were fix/bug commits, and the other 18 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/map/mapunit/MapUnit.kt\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":"core/src/com/unciv/logic/map/mapunit/MapUnit.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bae7fac78f371527a9877e64f30210bda9115e3a13d0806166dc48af73ce14c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt: core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in UnitMovement.moveToTile at line 500. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt\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":"core/src/com/unciv/logic/map/mapunit/movement/UnitMovement.kt"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c786e6e490126136acdfcb4d8a9fb5bdef1bd17aa36e30690e6a090d87b178"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt: core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in NextTurnAutomation.trainSettler at line 636. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt\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":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fa7f2e70b415167ea9372d92aa9bd128f0ec7b002fff23c578f1f1dd8e5e30"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/screens/worldscreen/unit/UnitTable.kt: core/src/com/unciv/ui/screens/worldscreen/unit/UnitTable.kt changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in UnitTable.tileSelected at line 211. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/screens/worldscreen/unit/UnitTable.kt\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":"core/src/com/unciv/ui/screens/worldscreen/unit/UnitTable.kt"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e10b656f533fd64005df203718bddb12a03486293bf0b268d8e5010475829a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/models/ruleset/unique/Conditionals.kt: core/src/com/unciv/models/ruleset/unique/Conditionals.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 162 in Conditionals.conditionalApplies at line 28. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/models/ruleset/unique/Conditionals.kt\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":"core/src/com/unciv/models/ruleset/unique/Conditionals.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b576755a2b641dd4f74ee28e62f93e24f1c1e7a2da8a63a85a73646cc56d8653"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/civilization/managers/TurnManager.kt: core/src/com/unciv/logic/civilization/managers/TurnManager.kt changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in TurnManager.startTurn at line 29. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/civilization/managers/TurnManager.kt\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":"core/src/com/unciv/logic/civilization/managers/TurnManager.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b38b3ac03de2a53049ab518c087d26ad197880a2804158cc8420df80083ad30"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/screens/pickerscreens/ImprovementPickerScreen.kt: core/src/com/unciv/ui/screens/pickerscreens/ImprovementPickerScreen.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ImprovementPickerScreen.addImprovementRow at line 125. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/screens/pickerscreens/ImprovementPickerScreen.kt\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":"core/src/com/unciv/ui/screens/pickerscreens/ImprovementPickerScreen.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26bed684199cdf650426fe8921b69e18aec3c4d34188630e046012252429732"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/GameInfo.kt: core/src/com/unciv/logic/GameInfo.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in GameInfo.nextTurn at line 384. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/GameInfo.kt\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":"core/src/com/unciv/logic/GameInfo.kt"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d50051e07633a5b8c88f52d4482f742a7528d5a225e41dc5c9f445a5341e69e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/models/ruleset/Victory.kt: core/src/com/unciv/models/ruleset/Victory.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in Milestone.getVictoryScreenButtons at line 277. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/models/ruleset/Victory.kt\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":"core/src/com/unciv/models/ruleset/Victory.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b362b8ece1be370d96457dbc72d85cce94eac6493118e16ed319e354d0249d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/unit/RoadBetweenCitiesAutomation.kt: core/src/com/unciv/logic/automation/unit/RoadBetweenCitiesAutomation.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in RoadBetweenCitiesAutomation.getRoadsToBuildFromCity at line 129. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/unit/RoadBetweenCitiesAutomation.kt\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":"core/src/com/unciv/logic/automation/unit/RoadBetweenCitiesAutomation.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"2463f22e17e183fc78e68bf6c7bf6cb61dac50516ec38700781c98ebd8121f10"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/screens/worldscreen/unit/actions/UnitActionsTable.kt: core/src/com/unciv/ui/screens/worldscreen/unit/actions/UnitActionsTable.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in UnitActionsTable.update at line 58. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/screens/worldscreen/unit/actions/UnitActionsTable.kt\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":"core/src/com/unciv/ui/screens/worldscreen/unit/actions/UnitActionsTable.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5820722110d6a6d1e43d10b8ccae8fd16121b0671f9353c1498250a0bed03685"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt: core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AirUnitAutomation.automateFighter at line 21. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt\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":"core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c52f48cdc9af93e048df1c4c696757c9c6c858e510c850dae9e8f18f12a7929"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt: core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in DiplomacyAutomation.offerPeaceTreaty at line 399. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt\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":"core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea5418baa3898346a1a90bb634e0e89f9cc8ab1853c14e272770135c6f190a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/civilization/MotivationToAttackAutomation.kt: core/src/com/unciv/logic/automation/civilization/MotivationToAttackAutomation.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in MotivationToAttackAutomation.hasAtLeastMotivationToAttack at line 31. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/civilization/MotivationToAttackAutomation.kt\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":"core/src/com/unciv/logic/automation/civilization/MotivationToAttackAutomation.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"147dc76e7a7522ed65c19f615ffbd8e45086dcb391921a67188cec086daa45be"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/objectdescriptions/TileDescription.kt: core/src/com/unciv/ui/objectdescriptions/TileDescription.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in TileDescription.toMarkup at line 23. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/objectdescriptions/TileDescription.kt\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":"core/src/com/unciv/ui/objectdescriptions/TileDescription.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6249be33a81be32854b0ff585f956f5766c0109738eae775429c0af96a384fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/Automation.kt: core/src/com/unciv/logic/automation/Automation.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Automation.chooseMilitaryUnit at line 199. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/Automation.kt\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":"core/src/com/unciv/logic/automation/Automation.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"099b45c7e2d0a221c09b5a9d6b0e794b0c105988608d13efe5a22492a51a51c2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/map/pathingmap/PathingMap.kt: core/src/com/unciv/logic/map/pathingmap/PathingMap.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in PathingMap.getShortestPath at line 148. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/map/pathingmap/PathingMap.kt\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":"core/src/com/unciv/logic/map/pathingmap/PathingMap.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c513398c8fdc903b013bb040074547ff6eabb6c8f21bf364d24c02e63b27efa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt: core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in CityStatsTable.addText at line 127. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt\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":"core/src/com/unciv/ui/screens/cityscreen/CityStatsTable.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"29751e1dce7d8ff31d6f535e32d0aac0281da1b5e131d37d46f524753d664dc8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/unit/ReligiousUnitAutomation.kt: core/src/com/unciv/logic/automation/unit/ReligiousUnitAutomation.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ReligiousUnitAutomation.automateInquisitor at line 89. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/unit/ReligiousUnitAutomation.kt\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":"core/src/com/unciv/logic/automation/unit/ReligiousUnitAutomation.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfb2f5e7d24a21dcc16a8b244fe16a242bb8806a6c5c21ec1d48cb7b80959e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/models/ruleset/Ruleset.kt: core/src/com/unciv/models/ruleset/Ruleset.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Ruleset.mergeTechnologies at line 340. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/models/ruleset/Ruleset.kt\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":"core/src/com/unciv/models/ruleset/Ruleset.kt"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"568d953283f8a4c9362381463b36b85a0fe36e545111934bfbf803b2ae444762"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsOverviewTable.kt: core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsOverviewTable.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in GlobalPoliticsOverviewTable.updateDiagram at line 256. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsOverviewTable.kt\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":"core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsOverviewTable.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"904bb619a36449936ff1165886971e0cd761f70ad2a726546c9bc17fabde424b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/components/tilegroups/layers/TileLayerBorders.kt: core/src/com/unciv/ui/components/tilegroups/layers/TileLayerBorders.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in TileLayerBorders.updateBorders at line 34. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/components/tilegroups/layers/TileLayerBorders.kt\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":"core/src/com/unciv/ui/components/tilegroups/layers/TileLayerBorders.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0270eec6be2522193f619e5195f67c0cf943f6d3971a5c3f91eed47bc438f356"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/map/pathingmap/PathingMapAStarPathfinder.kt: core/src/com/unciv/logic/map/pathingmap/PathingMapAStarPathfinder.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in AStarPathfinder.calculateNeighborNode at line 160. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/map/pathingmap/PathingMapAStarPathfinder.kt\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":"core/src/com/unciv/logic/map/pathingmap/PathingMapAStarPathfinder.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d44ac9be8a15b49de4ccb0ae9c19b15a18fcc89c7af0b9f8dec8ba7e388aa23"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/automation/unit/RoadToAutomation.kt: core/src/com/unciv/logic/automation/unit/RoadToAutomation.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in RoadToAutomation.automateConnectRoad at line 34. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/automation/unit/RoadToAutomation.kt\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":"core/src/com/unciv/logic/automation/unit/RoadToAutomation.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5f10c54320343609d30f3a78bc03bb9c7c8e274ff6a16aa6de672a59910b68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/simulation/Simulation.kt: core/src/com/unciv/logic/simulation/Simulation.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Simulation.text at line 232. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/simulation/Simulation.kt\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":"core/src/com/unciv/logic/simulation/Simulation.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7ad06b119042980664dc2617f8f39c4ce88f67b137bcde47972ddc192109a3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt: core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in CityStateFunctions.updateAllyCivForCityState at line 287. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt\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":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"7130240823d89b72fd819269fb5f4b92ecd3613f86ddea70921d25d5c135a95f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/objectdescriptions/BaseUnitDescriptions.kt: core/src/com/unciv/ui/objectdescriptions/BaseUnitDescriptions.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in BaseUnitDescriptions.getBaseUnitCivilopediaTextLines at line 87. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/objectdescriptions/BaseUnitDescriptions.kt\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":"core/src/com/unciv/ui/objectdescriptions/BaseUnitDescriptions.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"99da4f29f1adda6bfabe9c50cb7fcc96a207bcfdd509bcd5c6f1bdb76a28fe8b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/models/ruleset/validation/UniqueValidator.kt: core/src/com/unciv/models/ruleset/validation/UniqueValidator.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in UniqueValidator.checkUnique at line 91. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/models/ruleset/validation/UniqueValidator.kt\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":"core/src/com/unciv/models/ruleset/validation/UniqueValidator.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1120dc2146309b55c4b09e19d1b0ade1f6bef9bd89a468bb4672f9700ebea439"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/objectdescriptions/BuildingDescriptions.kt: core/src/com/unciv/ui/objectdescriptions/BuildingDescriptions.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in BuildingDescriptions.getBuildingCivilopediaTextLines at line 168. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/objectdescriptions/BuildingDescriptions.kt\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":"core/src/com/unciv/ui/objectdescriptions/BuildingDescriptions.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f27aacdc61af084f4a7c952c21aa4e146e8fc64961ed3cb5495173c134e0f74"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/battle/TargetHelper.kt: core/src/com/unciv/logic/battle/TargetHelper.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in TargetHelper.getAttackableEnemies at line 15. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/battle/TargetHelper.kt\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":"core/src/com/unciv/logic/battle/TargetHelper.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"72afbe9602dfb147342f80dcc0ad66a26be0297e5318bd9874f2dcf92db36a27"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/screens/victoryscreen/VictoryScreenIllustrations.kt: core/src/com/unciv/ui/screens/victoryscreen/VictoryScreenIllustrations.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in VictoryScreenIllustrations.victoryCompletePercent at line 219. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/screens/victoryscreen/VictoryScreenIllustrations.kt\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":"core/src/com/unciv/ui/screens/victoryscreen/VictoryScreenIllustrations.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5e3ad978e1adc81674739866c9c1261f9af27ce3701d0772f8b416ed89fe16"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/ui/components/tilegroups/CityTileGroup.kt: core/src/com/unciv/ui/components/tilegroups/CityTileGroup.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in CityTileGroup.update at line 30. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/components/tilegroups/CityTileGroup.kt\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":"core/src/com/unciv/ui/components/tilegroups/CityTileGroup.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18c654a8efd87721737b4a91cba2a1628f0a08b7bc554f79338976178e8e3fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/com/unciv/logic/civilization/ExploredRegion.kt: core/src/com/unciv/logic/civilization/ExploredRegion.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ExploredRegion.expandToInclude at line 96. 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 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/logic/civilization/ExploredRegion.kt\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":"core/src/com/unciv/logic/civilization/ExploredRegion.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba9f4b308110532b5d7f09b4a209daef355b9b5bd641ca8ca1cbaec47a369d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsDiagramGroup.kt: core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsDiagramGroup.kt changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is WidgetIndex.getRelation at line 180), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cchore: Fix global policy diagram click to open legend intercepted by lines (#15439)\u201D; \u201Cchore: Better fix for that \u0060GlobalPoliticsDiagramGroup.Relations.entries\u0060 bug (#15410)\u201D; \u201CSolve #15393 GlobalPoliticsDiagramGroup crashing bug - not solved the root cause since this is a compiler bug\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:54:45 \u002B02:00\u0027 --until=\u00272026-11-13 11:54:45 \u002B02:00\u0027 --full-history --no-merges -- core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsDiagramGroup.kt\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":"core/src/com/unciv/ui/screens/overviewscreen/GlobalPoliticsDiagramGroup.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec2358af2d01a98cc8ca1add396e01652f2c173039746fb01127fc914b0dcfb"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 57 significant file(s) lose their only recent owner: core/src/com/unciv/models/ruleset/unique/DeprecatedUniques.kt, core/src/com/unciv/ui/screens/pickerscreens/PolicyPickerScreen.kt, core/src/com/unciv/ui/screens/cityscreen/CityScreen.kt, core/src/com/unciv/view/MapUnitView.kt, core/src/com/unciv/view/TileView.kt, core/src/com/unciv/ui/components/tilegroups/layers/TileLayerTerrain.kt, core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt, core/src/com/unciv/view/CityView.kt (\u002B49 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9213e493007c907cdf4b85135d86dc7a1dd3133cea9254ec4c8a2fa1dbb1e6e"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 20 significant file(s) lose their only recent owner: core/src/com/unciv/models/translations/TranslationExtensions.kt, core/src/com/unciv/ui/screens/civilopediascreen/FormattedLine.kt, core/src/com/unciv/logic/civilization/managers/quests/QuestImplementation.kt, core/src/com/unciv/ui/components/widgets/UncivTextField.kt, core/src/com/unciv/ui/screens/basescreen/StageMouseOverDebug.kt, core/src/com/unciv/logic/map/CarrierSlotMatcher.kt, core/src/com/unciv/models/ruleset/nation/Difficulty.kt, core/src/com/unciv/models/ruleset/Speed.kt (\u002B12 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3d0f3f8950d9b213dfb5651fc7728747e553e5a272e78e74c3d7cb945d9b1a73"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 4 significant file(s) lose their only recent owner: core/src/com/unciv/logic/map/OdMapExport.kt, core/src/com/unciv/logic/map/OdMapImport.kt, core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorOdImporter.kt, core/src/com/unciv/logic/map/OdTerrain.kt. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"13cc409a14c765d4635113e8b3c6aa6d079b294d3fc18dfaec50a2ed1e9b5688"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 6 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (88 single-owned of 559 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 559 of the 738 production source files in this repository met that bar). They are anonymized user #4 (2 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)), anonymized user #8 (1 file(s)), anonymized user #9 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: core/src/com/unciv/logic/battle/AttackRecorder.kt, core/src/com/unciv/logic/battle/AttackEvent.kt, core/src/com/unciv/ui/screens/worldscreen/TutorialTaskTable.kt, core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorModsTab.kt, core/src/com/unciv/ui/screens/modmanager/ModDecoratedButton.kt, core/src/com/unciv/ui/components/fonts/ModFonts.kt, desktop/src/com/unciv/app/desktop/DiscordUpdater.kt."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO Autocompletion unit test - DevConsolePopup is too tightly integrated with WorldScreen at the moment to allow that. \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":"tests/src/com/unciv/ui/screens/devconsole/DevConsoleTests.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff13ca00541d3d3fb7996b8e2049190e8bda15aed87775273ef7f46fab245cf0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo This test was designed before the Bangla language was merged, and uses its own data. \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":"tests/src/com/unciv/logic/TranslationTests.kt"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"5449ba6f47fd83945b724c3fe16764095bb56382eb889cbe065f8ee2c133b8ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Bug: cities aren\u0027t given a city context for filtering \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":"tests/src/com/unciv/logic/filter/CityCivFilterTests.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3cd4c8f11ba680c82aef476829b5015dd7854771e92f952913fd455f3f71322"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Check if the user is the current player and validate its password this requires decoding the game file \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":"server/src/com/unciv/app/server/UncivServer.kt"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eff64db0a68058f7c94d40a370a2131a636fabde1f5be1b8405da40eb6a6d82"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: GameStarter places \u0022Tundra\u0022 startBias first. Can we make it generic by checking count by terrain? \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":"core/src/com/unciv/Constants.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a00ac975a27a35c89146991613cdb358cca6cec24d80e3503615eef96515d9c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this is very opaque behaviour to modders \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":"core/src/com/unciv/Constants.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bcec852914a5feb4c82d6b2e95cd8a6bac10c472fe6ba78a13ce43f73d9a1c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Citystats being stateful breaks the \u0022stateless\u0022 ideal of View API, think about this :/ \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":"core/src/com/unciv/view/CityView.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f83cff4497644c142b5aa247cd6ca27b9d661e6d01e656373687935d6fa022"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Citystats being stateful breaks the \u0022stateless\u0022 ideal of View API, think about this :/ \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":"core/src/com/unciv/view/CityView.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b01a9e10d42593f12df2b94302703c5ed5e1085a55babfb58c352072eb36a5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Compare with getCivResourcesByName for overlap/conflict \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":"core/src/com/unciv/view/CivView.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ab050d75bfbe20109e73254a519b60309ef35847fcc3f66ef20831ec2fc03f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace with multi-target AStar \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":"core/src/com/unciv/view/TileView.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65714991f0f3c3c724a169dae6729dc1fcabbd9d0431b4db40215053dd92a36"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo check generated translations \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":"core/src/com/unciv/ui/screens/worldscreen/RenderEvent.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a017aa21463cddb45e70122154a2982ddfb95513b79218ff1b14441aaf12cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: valid tiles for actions should be handled internally, not 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":"core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e8aedbea43947644a43e44db616f13b1d0fb419b3437c807bf9137593a2d89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo Idea: use victoryCompletePercent to allow \u0022percentage\u0022 images - e.g. \u0022Destroy all players\u0022 now works all or nothing - boring. \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":"core/src/com/unciv/ui/screens/victoryscreen/VictoryScreenIllustrations.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c086520e00b4d3ccd89baddbdd40654cc7454e6ef8aa2e3b6a3f190790aa2cc4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo measure: 265f = PickerPane.bottomTable.height \u002B SplitPane.handle.height \u002B 2* TabbedPager.header.height \u002B separator.height \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":"core/src/com/unciv/ui/screens/victoryscreen/VictoryScreenIllustrations.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3047371e409345820dbe506867e93e6d9d30994254ed016cfab3a37957fffb81"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo reduce code duplication \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":"core/src/com/unciv/ui/screens/savescreens/QuickSave.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60685a934a931592cca515d3957631cdcf13c6c99f89323f429898e1d9de980"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo key auto-repeat for navigation keys? \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":"core/src/com/unciv/ui/screens/savescreens/VerticalFileListScrollPane.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"44493016d802c77d1191d7317809455412834fc3f2654720115977454aca57b6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO should be a skin ButtonStyle, this mixes with the style override from disable() below - which is a very wrong approach anyway \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":"core/src/com/unciv/ui/screens/pickerscreens/ImprovementPickerScreen.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe26cf6c276a53009a356349ed3a3b3631d987cbbee5ad28a9cb5b8f1867d51"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO If we\u0027d want to use scene2d correctly, this is supposed to happen inside an overridden layout() method \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":"core/src/com/unciv/ui/screens/pickerscreens/PolicyPickerScreen.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62d60581436f0dcfb6424d3e7dadf8013478799049d1011504495c2ae7b40b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo resolve kludge by making BranchHeader a proper class \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":"core/src/com/unciv/ui/screens/pickerscreens/PolicyPickerScreen.kt"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34e6ea7b29f8e083c331ef1f26bc24f218b4b830de39ed0f3b2a74ad5c781f5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo Kludge! Positioning and alignment of the header Table within its parent has quirks when content width \u003C stage width \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":"core/src/com/unciv/ui/screens/overviewscreen/CityOverviewTab.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f59afa7fff8f876fa65df76fb2de6b29ebc68dd1ba1899fa149124587c0f339"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo Kludge! Positioning and alignment of the header Table within its parent has quirks when content width \u003C stage width \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":"core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTab.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f15b26cf499f5427b7badaeeecf8d5b64cc4cadfabacb6fbcccd06d144bcf6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo The original did its own sort: \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":"core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTab.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52be2882c68ca2392df826146f7ffe05e4bee7e6bc4ed2aad2f5f328daa28a3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo the comments and todo below are copied verbatim from CityOverviewTab - synergies? \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":"core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTab.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"283b4466845b82520dc8ff119ff85510d09738a525f286761ee24b41c9b4355d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Extending getEntryValue here to have a second String-based \u0022channel\u0022 - could go into SortableGrid, possibly by defining a DataType per column??? \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":"core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTabColumn.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a96c2681c93fe1db30ab2f9c1817043f29cba06f2d06b8e32d444b34c788a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo these overrides call a getTilesInDistance(3).firstOrNull loop independently and possibly repeatedly - caching? \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":"core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTabColumn.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dd08db9d9bff6075ace72896b294a8bae26cc88cc23e5e0c3428a81a0a6906"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo these overrides call getPossibleUpgrades independently and possibly repeatedly - caching? \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":"core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTabColumn.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae72d626cd3ee2d2d76708eb7e7d0f5258a8934d1a86967a43d9a35201f181a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo seems the picker does not call this if only the unit rename was used \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":"core/src/com/unciv/ui/screens/overviewscreen/UnitOverviewTabHelpers.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30adf08bfc1bc4e4fe4ec7a265b29dbae4477292a6a60f00bbea3e2240e9161"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Risky - triggers? \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":"core/src/com/unciv/ui/screens/newgamescreen/NewGameScreen.kt"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2e6fda1d9d37499eb705b68d85e0f9999684679bde11b80e0f09d8182ab083"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo this works, but means getUnwrappedNearestTo fails - on the x-y == maxLongitude vertical \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":"core/src/com/unciv/ui/screens/mapeditorscreen/EditorMapHolder.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9985a9d39deafb71d6b95d4e11ee6740fba00165be5985b683bbea1c65781761"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo normalize properly \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc5dde7643074aba4c5acab3aa940db90c0dee158910389d8958a05bb97cb06"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo functional Tab for Units (empty Tab is prepared but commented out in MapEditorEditTab.AllEditSubTabs) \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"27267ffc617c4af7776828989d5bc2754cac3576ee4fe4240ec9bd6925804fee"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo copy/paste tile areas? (As tool tab, brush sized, floodfill forbidden, tab displays copied area) \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0165acd971cda000525dd5d53563c8cb60328739cc1a2051f5b26afa433d3823"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Synergy with Civilopedia for drawing loose tiles / terrain icons \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2dddf8bee76807a689f2e362dba0ddbc0339c124611982085eefa062c533b6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo left-align everything so a half-open drawer is more useful \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a356c4c5c9d80f350bc0523ba226cf60dd8b26b92539ccee9957239ba813e9d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo combined brush \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfb058a255681830752cc4fbf6bc05a8995ca32a04aaa0c6ce55c5ffd92ad8c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Tooltips for Edit items with info on placeability? Place this info as Brush description? In Expander? \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6372843a9b54aea45df20bd22a38decc5bb5dc2c71e161f856a9db3ed361cd09"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Civilopedia links from edit items by right-click/long-tap? \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"876c95bd47ee75d3f0f955a90d10ed986cc05631d94781267f799209ef82090e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Mod tab change base ruleset - disableAllCheckboxes - instead some intelligence to leave those mods on that stay compatible? \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5d938e107838fb167034bc92e8b9b8bf5d724f0d262fedb5fed464309ef603"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo The setSkin call in newMapHolder belongs in ImageGetter.setNewRuleset and should be intelligent as resetFont is expensive and the probability a mod touched a few EmojiIcons is low \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb86efd74b129e06b16632d08d474c37e9b31360895a76df2d36b61d8001c94"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo new brush: remove natural wonder \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e471087f1cca1007d5a6dd84194592a5fafffe413cd3dcbf053f0e27433b07a1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Nat Wonder step generator: Needs tweaks to avoid placing duplicates or wonders too close together \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2318b8bf4c6b044afed44058f6e0c942c3983793a8b8a94d9080c78a42d543"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Music? Different suffix? Off? 20% Volume? \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ffc01ae94072ec8582a9efe89e1c16c17bbfd0436574b34ba49ca9b48f16c4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo See #6694 - allow adding tiles to a map (1 cell all around on hex? world-wrapped hex?? all around on rectangular? top bottom only on world-wrapped??)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"799e5752cec338d5b7b55deaa33bc88e9397a35464d04badde88c9bb20f373e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo move map copy\u0026paste to save/load?? \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorScreen.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1b03e28666c9b6d5f19834899c42848fd7f925dffd5cdce106c7f24f8a4280"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo tweak on actual phone \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorToolsDrawer.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"95565e7a34964fdc8b25fb7c1c77ec27946a506310c7fe3b3029a4b11dba9c4f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Allow different rulesets? \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":"core/src/com/unciv/ui/screens/mapeditorscreen/MapEditorWesnothImporter.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c291e712add3cdd13434e7dc755a8785f3c7bd091d18cc820bb02735a83de3f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo this needs a better icon \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":"core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorEditSubTabs.kt"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"3865f8a483be44f6bafbc513094fb09da9222df07fe36391c9e135405818068e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - to allow accessing files *outside the app scope* on Android, switch to \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":"core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorOptionsTab.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"93700fc5be6c66d681a47d0ffcda683e44c7ee10d34c715ce43035e277d399f6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo - unsure this helps \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":"core/src/com/unciv/ui/screens/mapeditorscreen/tabs/MapEditorViewTab.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ae7963efe0cfd9f2b40e461fef83bc685fd1c1b571bda41a51de7768b326c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo this covers many cases but not all - do we really need to loop over all civs? \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":"core/src/com/unciv/ui/screens/devconsole/ConsoleTileCommands.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"75eefde4f609244c3d8fe898017c021bfae48843d500631f224b9bfe453d23b1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: potential synergy with map editor \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":"core/src/com/unciv/ui/screens/civilopediascreen/CivilopediaImageGetters.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecac73e3e076c408761113c9687766bced8fdce646a50c27a44648741e2d8bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO Unify with the one in CityScreenTileTable? \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":"core/src/com/unciv/ui/screens/cityscreen/ConstructionInfoTable.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee83797fdacbc74278cb5fa3d471d26fbbb9f6747db9373e449d6eada92a913"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Choose alternative (alt binding, remove, auto-equivalence, multikey bindings) \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":"core/src/com/unciv/ui/screens/cityscreen/DetailedStatsPopup.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"38392eb94bd3cc29ca5263d598121eb3eb6cf24498d089403e9e39df8f5e5e4a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO needs more testing whether this holds in all cases \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":"core/src/com/unciv/ui/screens/basescreen/TutorialController.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7876d68f83d0419815feec97d0660e48502e565a208a37fa7e2e1c5f7d83fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Check add/remove-all for \u0022place one improvement\u0022 buildings \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":"core/src/com/unciv/ui/popups/CityScreenConstructionMenu.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f80bf858d2bcf0de20a26071dffa8fec916c8d767ad00b5ae7e65c787a8fef6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo topTable and bottomTable _could_ be separately skinnable - but would need care so rounded edges work \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":"core/src/com/unciv/ui/popups/Popup.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d856a99bd1b3df0e64a07f0493a437e7442d743abbb6e453ab65c99a39dd59"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO This was wrapped then colspan(2) before - look \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":"core/src/com/unciv/ui/popups/options/DebugTab.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6050b50f51fcf54d9038edb0ea5bc7a25b576a05de2af2e66b296fb69ceaf6d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: I doubt that helps, the setting has only influence on CivilopediaScreen \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":"core/src/com/unciv/ui/popups/options/DisplayTab.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"6267d205b09f807f4f36e894f1b96eacd274ddbd7b10c7be747a986da3b141ed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Unify with rejection reasons? \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":"core/src/com/unciv/ui/objectdescriptions/BuildingDescriptions.kt"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f9420ca29a9885374acd4012a2f928da1e4a0a1d9dacda9736b5ca32481969"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: give user a mod warning that the image names has to be [name].9.png \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":"core/src/com/unciv/ui/images/ImageGetter.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6797e1098e0b4ec84a5093e6dc13b4c7fdc57b633f69a76cbda07a1a2fe48e66"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo We may be in a critical low-memory situation. Using a lot ot String concatenation and trimIndent \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":"core/src/com/unciv/ui/crashhandling/CrashScreen.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf999588bdbd55eee84fa4d5de0de7a976d8178e06778744915eb0ff29ad8bd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo sound \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":"core/src/com/unciv/ui/components/ParticleEffectMapFireworks.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d727817ce7f0aa06d76ef8d263bfdbbae9530beb3216839c2d43d49a79db04fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo moddability (refactor media search first) \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":"core/src/com/unciv/ui/components/ParticleEffectMapFireworks.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f3cb804a7690217beca49886c44e0bb4a99d1769060ac7286f080b4fda1a61"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO If keys are assigned, the widget is in a popup not filling stage width, and a button is \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":"core/src/com/unciv/ui/components/widgets/TabbedPager.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"498129bd70a106234d89852fc7d9ca55a059f99e0f79c6bd71843c81aeeab8df"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO magic numbers that **seem** like they might depend on these values can be found in \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":"core/src/com/unciv/ui/components/tilegroups/TileGroupMap.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2230dff5edca566de38e8b5d2da74b5efb6a32c89146fb6867dd4947d0756212"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Culled when too large and panned away. \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":"core/src/com/unciv/ui/components/tilegroups/layers/TileLayerMisc.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc00573dad109138dc6b7fe090265cde607c7284b0be5a259cb62dd640b61f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo Old listener said \u0022happens if there\u0027s a double (or more) click function but no single click\u0022 - \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":"core/src/com/unciv/ui/components/input/ActivationActionMap.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25d3ae338264d5f3a3444c0949546719afcc149bb66d0a938eaedd94b726894"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: There\u0027s a few other \u0060if (\u003E0) \u0022\u002B\u0022 else \u0022\u0022\u0060 around, and a DecimalFormat solution in DetailedStatsPopup: unify \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":"core/src/com/unciv/ui/components/extensions/FormattingExtensions.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d58dc3ac0ddd91172f6933c9b482933b15b1be02f8e297cd8818fc9040928e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo ButtonStyle *does* have a \u0060disabled\u0060 Drawable, and Button ignores touches in disabled state anyway - all this is a wrong approach \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":"core/src/com/unciv/ui/components/extensions/Scene2dExtensions.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0137cd89a92aa95589046da9d50f38778e8a38dff8ffd8b9330724d62f70bff2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Needs to be called even when no fade desired to correctly set state - Think about changing that \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":"core/src/com/unciv/ui/audio/MusicController.kt"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69cc0b6787d6825f3377866327d2e1a8893bf8d7e29208f8dfffcfc00d0c2e0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Once we remove support for the old flag system we can remove the null check \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":"core/src/com/unciv/models/Spy.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fd1ced4324c09c45e4102e661f6f1d7db679f747726af1cfc65299e9ea6e16"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO remove once sure they\u0027re unused \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":"core/src/com/unciv/models/UnitAction.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0776f8d2271e8999275dbe77e178bb0a13aa8bb6d85916b112758d6a74afa24e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Legacy implementation, has the weakness that a later replacement can hit the result of an earlier replacement in weird cases. \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":"core/src/com/unciv/models/translations/TranslationExtensions.kt"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c4ee119c2c40a2f9d08051c0cb05c1611cd00f829676191cc081dca55f7c48"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: add unrepeatable events \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":"core/src/com/unciv/models/ruleset/Event.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f068a5c2c0e63182ed1a72433bd41dab5993df3b783542cf378dec14334d3d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo migrate to civilopediaText then remove or deprecate? \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":"core/src/com/unciv/models/ruleset/Tutorial.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd50ee6d59ffd858c03fd4febbe2014144829d07b4a3ebe6ae59dbc70b91379e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo remove from here, this is models, not UI \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":"core/src/com/unciv/models/ruleset/Victory.kt"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad2166305ba0a93eb516aa0797f8a0ebf407581dae0fb14b6a06c59b3e8f816"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Links should be \u0060Building/params[0]\u0060, but then the Wonder links don\u0027t resolve correctly \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":"core/src/com/unciv/models/ruleset/Victory.kt"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d8603115d95ff9c15f61d0fdca8b6b861913aab3e2d0769536beb9ff879dd3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo the whole \u0027starting unit\u0027 thing needs to be redone, there\u0027s no reason we can\u0027t have a single list containing all the starting units. \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":"core/src/com/unciv/models/ruleset/validation/BaseRulesetValidator.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0fd051157b7b6aca1dbe34715effd6c5bce56024d0fc9e935e31e9dd39da8d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Create overload method for floating point constants. Settle on using either floats or doubles in ModConstants.kt \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":"core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"40999d85c4bed244eb48e2b77af8c0cb1716f1d70528732fdf8a8ff89d32b43d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: More thorough checks. Here I picked just those where bad values might endanger stability. \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":"core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f933ddfe58d72bf40284511e31405e6be263b58646a313a3d0aacaa3af0d7360"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO We should have an IHasMatchesFilter? \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":"core/src/com/unciv/models/ruleset/unique/IHasUniques.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcc226bf51765cee927643eee9102375bc293b985ea4c042920dc2bc581a96a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo potentially remove if OneTimeRevealSpecificMapTiles changes \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":"core/src/com/unciv/models/ruleset/unique/UniqueParameterType.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a212a2fba353167a7e1478d351317cf549f69f6edf1e422041af0c4311cff4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: Lowercase the \u0027U\u0027 of \u0027Units\u0027 in this unique \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":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4464dc2dcbaf93a194fab2fa8b0915849c2cffe9b9f8a11d8e6bd233eb73af5f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: Lowercase the \u0027U\u0027 of \u0027Units\u0027 in this unique \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":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"b939c4de2365431ab43ee922f43b2b8cc4af64e0d4e93a69980fd1f9ee58e201"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: capitalization of \u0027Unhappiness\u0027 -\u003E \u0027unhappiness\u0027 \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":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa9e29244930eeca4e9fd13da610f5a7af32df46cc376c70cf576ab86edf098"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: capitalization of \u0027happiness\u0027 -\u003E \u0027Happiness\u0027 \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":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bef0c7afa5ff09180e935852c325ac7396e79c29398713aa86fa56fc92125be"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: capitalization of \u0027happiness\u0027 -\u003E \u0027Happiness\u0027 \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":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b63cbc6a614396255e0fb07d838e523be393917e955ca1f88fc2d486ffc885"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // ToDo: make per unit and use unit filters? \u0022Enables embarkation \u003Cfor [land] units\u003E\u0022 \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":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda989e9292faa7e804a16e016443f9f7cb1dee4a3b676e9d8aa3549751f4f3c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo should these two be merged to avoid the confusion? \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":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"417da2c13fcd1aef23e93784000b6e3582fdafb616b214cda2c53a2000cdb412"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo nuclear weapon and spaceship enabling requires a rethink. \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":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"043e7faddcdab1296d9e2908b2157a9cf96536d12ffdfe6122adb433023cae06"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should be replaced by \u0022Can instantly construct a [] improvement \u003Cby consuming this unit\u003E\u0022 \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":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1a6ff9993f2b61a722bee858051130d3cee5c6d77940686b9a2d50c83083b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: The \u0022up to [All]\u0022 used in vanilla json is not nice to read. Split? \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":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e64a853fec99d253b72d1529bbe61912b3528e1344fe31776a764e42f9f16b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo To think over - leave as is for future use or remove templates and translations by adding the flag? \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":"core/src/com/unciv/models/ruleset/unique/UniqueType.kt"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"047fdcea0513bc68fb9be260f3e6800d19a2ec4f5afec01348892a9ffaf65c42"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Not sure what to do about current position 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":"core/src/com/unciv/models/ruleset/unique/expressions/Parser.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bdd6946a084ffd90013d9aa44d1378550010041b7532a1dab18933932c7b8b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Allow potentially non-latin script //TODO questionable \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":"core/src/com/unciv/models/ruleset/unique/expressions/Tokenizer.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc46975cd0d163be39b9bf63e4fb6d56f4f90ac84cefdbdb0caff15c1d55f25"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo where should we explain Rivers? \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":"core/src/com/unciv/models/ruleset/tile/Terrain.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9e4b51e87373bd152d94c74713610d39bedd1d6754b0df84a127e452c121ef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Why does this have to be so complicated? A unit\u0027s \u0022Can build [Land] improvements on tiles\u0022 \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":"core/src/com/unciv/models/ruleset/tile/TileImprovement.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9be946bda1cf020a8617b57dee869404358092b60d131a513c2fab761eb2392"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: Add \u0027multifilter=false\u0027 option to Multifilter itself to cut down on duplicate 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":"core/src/com/unciv/models/ruleset/nation/Nation.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"18717676ff714fe261327ad4f54fbb43b4a64258a84cbfc8f46073fa9066361a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove nullable after migration \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":"core/src/com/unciv/models/metadata/GameParameters.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"908d6aa50a64bab8798da132bb6f85c0789ef00e81e96dcd14a57b5301f92bd3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Play some nice music TODO: measuring actual play time might be nicer \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":"core/src/com/unciv/logic/GameInfo.kt"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3d69620bef244e2a05f63288af2985d527094c6121ba5fa9f5efc25ca96bb9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: Add more in depth evaluation 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":"core/src/com/unciv/logic/trade/TradeEvaluation.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0e546a9f3ba9f61bdf21a447bcbc48aa58811c5e26085842b77b09fdc8391e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: Add more in depth evaluation 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":"core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2606772d7162f4f899b32fc3b157ad557f5eb3e62727a01fd4622a8a25ce55f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: More sophisticated formula needed, a reverse of [CityStateFunctions.influenceGainedByGift] \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":"core/src/com/unciv/logic/trade/TradeEvaluation.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1868be790cfe18b4d224e44ce8647565d6bf573eb97a74f323cf6f2e747770"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We don\u0027t know if other human player would agree to peace \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":"core/src/com/unciv/logic/trade/TradeEvaluation.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab0fd4839fc976e8af61c1ec70cfd93e38eeb7da9061831edf20a5b781a672b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //Todo:AddDefensiveTreatyHere \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":"core/src/com/unciv/logic/trade/TradeEvaluation.kt"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"061445e885508af80c425f1f9d265ef29d216ea98b1a95d1fdb4b4be4d0e4378"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO look into how to maybe extract interfaces to not make this take two different methods \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":"core/src/com/unciv/logic/multiplayer/Multiplayer.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"2328d9cdddd838c2b4f01196e5c6480ea051d52f6b57ad0db1e315dad0c20172"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This could be improved, since this consumes more resources than necessary \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":"core/src/com/unciv/logic/multiplayer/storage/ApiV2FileStorageEmulator.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"200ba60a5150bb097945a1bdea5c7b876f0f13c4ff5be976c9e40d17ad7c973c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \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":"core/src/com/unciv/logic/multiplayer/chat/ChatWebSocket.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f10cfc32fec784778d6337e2534cc8159a144a9fe748ec0e2f27250dd86335d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO once we can assume there are no more games out there serialized in the verbose \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":"core/src/com/unciv/logic/map/HexMath.kt"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11c44b6c6f30a9a5196d51af4a9e764430927de5e32de4e478dbda9cf20228f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: Eventually, all path generation in the game should be moved into 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":"core/src/com/unciv/logic/map/MapPathing.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cee418c30be8e10afad43acf361e77de1494d0badf1746fc298c6877bba2b34"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Generic-ify to unique \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":"core/src/com/unciv/logic/map/tile/Tile.kt"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d689ac58403ffb56a2dac5bc7116b2d85ab5768fd482a90c9ccedcf336fd17"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo synergy potential with [MapEditorEditRiversTab]? \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":"core/src/com/unciv/logic/map/tile/Tile.kt"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5661c4ba3f865ddeddf04216d20e8f1a7da4a1b5b692e0d8ca7e06a8e1a51dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO this is one approach to get these stats in - supporting only the Stats UniqueType. \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":"core/src/com/unciv/logic/map/tile/TileStatFunctions.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd3f9c8c3055797eb0729f1e85dd0f66f33d0fa9be25dc75a5a4f8e9632eafd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Eliminate endTurnDamage call. \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":"core/src/com/unciv/logic/map/pathingmap/PathingMapAStarPathfinder.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a704d08456e6d7534445b7ccca4c1d4712ab0a430c5b9609d258bb38bc1ce4f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: consider parameterizing [terrainFilter] in some of the following: \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":"core/src/com/unciv/logic/map/mapunit/MapUnitCache.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7daf6635018da1051ab82fa942caa2b5cec43032d956cddf70c174c7b27ea130"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Does the AI never buy upgrades??? \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":"core/src/com/unciv/logic/map/mapunit/UnitUpgradeManager.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb3dac3b8367a0fc15a091c0b8bd0feec20792748c0b5dd6e3d5cc355e16baf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO From the source, this should apply _Production_ modifiers (Temple of Artemis? GameSpeed! StartEra!), at the moment it doesn\u0027t \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":"core/src/com/unciv/logic/map/mapunit/UnitUpgradeManager.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e55b86bfcc0847c29692523efbdf8356a9e5ca248c1dcae51af4907d384f591"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // This is quite different from the normal tile temperature. TODO: Unify \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":"core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60b9c8183fad0f53925dc615d1e43e0a1d1f80d4df92ec8c3f62139d32766ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Query for latest release and save as Mod Version? \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":"core/src/com/unciv/logic/github/GithubAPI.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2c8679630f546fe10970c6865b1ce5cb7e482010ff82c28bb3df21a6eba1fa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Query a specific release for its name attribute - the page will link the tag \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":"core/src/com/unciv/logic/github/GithubAPI.kt"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19ba79ac176af13f0a8a47566e60cacdb738c7246a819734a3c20d30f879266"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: Can there be a deterministic priority/ordering within game mods or visualMods? \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":"core/src/com/unciv/logic/files/IMediaFinder.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"621e5e8bed7196e1d27b12447d20749a8cc576852fe5fbcfc07c3a9b150539c6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: Great Admiral? \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":"core/src/com/unciv/logic/civilization/managers/GreatPersonManager.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b029dc2e721a3b710a0f0985b29f55700fc226a6766c4cc7bec53c6f1e461845"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: Free GP from policies and wonders should increase threshold according to the wiki \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":"core/src/com/unciv/logic/civilization/managers/GreatPersonManager.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebeef030c8bfecf9fda5f74e6394d863c26a0a972a9ac9e41b6ef4b05cbe899"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: GP from Maya long count should increase threshold as well - implement together \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":"core/src/com/unciv/logic/civilization/managers/GreatPersonManager.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf44f591f0341a10c1e4e62d6185dbf93e0c10615b8b4d4d6698ce2d2113caab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Can this be mapped downstream to a PolicyAction:NotificationAction? \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":"core/src/com/unciv/logic/civilization/managers/PolicyManager.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b697c1ed59007c7455abb309abdafc68b60ba20fd752e0a2b4d5ab002cc830"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Return false if attempting to put a religious city-state in a game without religion \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":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2025fba704af85e7a0a83dbd5c035cca82ff67c5d49c8826f5a13cbfa5ab000"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: City-states don\u0027t give allies resources from civ-wide uniques! \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":"core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0ec8ac823854b68cc451f36d30827f4fcfe8626650e41b3cf4a53b9209378f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO that should be a const val, hardcoded in several places \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":"core/src/com/unciv/logic/city/managers/CityConquestFunctions.kt"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebd4a022677c51acff0ef4eaf38a600a4ea7b8ba5e0bb57d79df29c4b198781"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make prefixes moddable per nation? Support suffixes? \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":"core/src/com/unciv/logic/city/managers/CityFounder.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"134acbcffa7121aa3883ad2da05aaa2a1c368a7e5a354af19283bead7087352d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check overlap with addInterceptionNotifications, and unify what we can \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":"core/src/com/unciv/logic/battle/AirInterception.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c42106bf415a5415c62731e3926e5d564050514fd673722e6b6f618c0498d2e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Optimize [friendlyAirUnitsInRange] by creating an alternate [ThreatManager.getTilesWithEnemyUnitsInDistance] that handles only friendly units \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":"core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"98593de3ecefa29869c9aec4358360e4d3253a0f479d67c4f7bd035693a32cf7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: maybe group by size and choose highest priority within the same size turns \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":"core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"911554fdbbb42d7dd71ce2444986a85be324d3b1417c352a383b382b0f937909"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: maybe group by size and choose highest priority within the same size turns \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":"core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e338ba1633f08a666f13e892f78d5fbf1539d35baa4286f93093a760d5dfa7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: this logic looks similar to some parts of automateFighter, maybe pull out common 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":"core/src/com/unciv/logic/automation/unit/AirUnitAutomation.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ddc5360b2cbce54955f360a905bf15090343ae4a3be1fd8d30729b7d7d69c2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo For air units, prefer to attack tiles with lower intercept chance \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":"core/src/com/unciv/logic/automation/unit/BattleHelper.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3517690f68dc0835efc6fd407750a505f831d6f7fcf501289982e9536d8e35d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: AgreedToNotSettleNearUs is hardcoded for now but it may be better to softcode it below in getDistanceToCityModifier \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":"core/src/com/unciv/logic/automation/unit/CityLocationTileRanker.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe5a8b005ec4fabcd69505960b609a3ea1fb1255304233843bc93a15a0e9468"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo this now supports \u0022Great General\u0022-like mod units not combining \u0027aura\u0027 and citadel \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":"core/src/com/unciv/logic/automation/unit/CivilianUnitAutomation.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c889d5a9e3927bb06f4a474d3aa44714a8cb0b3cc3024626f8f1ce46640b9b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: save up great scientists/writers for late game (8 turns after research labs/broadcast towers resp.) \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":"core/src/com/unciv/logic/automation/unit/CivilianUnitAutomation.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13b517f0386cf4cface01bae95998dda0c4733ebc0326852b9b36dc2686ba5d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This could be more complex to walk to the city state that is most beneficial to \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":"core/src/com/unciv/logic/automation/unit/CivilianUnitAutomation.kt"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"567e9ec6ba38c2306b7d8a82c458d29ecc1a7f881a94e33dd81b62a982463473"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: The AI tends to have a lot of great generals. Maybe there should be a cutoff \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":"core/src/com/unciv/logic/automation/unit/CivilianUnitAutomation.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0de7c5ffdf3c01f99fa2c34023767ced720a486e98b28cdaa309083b4cd34a5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Coastal cities that have harbor connection, should maintain roads only for mobility (railroads won\u0027t be built) \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":"core/src/com/unciv/logic/automation/unit/RoadBetweenCitiesAutomation.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f71c4ca176559f9ccbd38720f34a8c4753c30fe10c3e6437418a0b1775fb8db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove roads logic, e.g. toward lost or razed cities or remnant roads from conquered territory \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":"core/src/com/unciv/logic/automation/unit/RoadBetweenCitiesAutomation.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4dbc818e5c6bc9f14806dc80901794e040fca81cb56478d89ea0befa61e444"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If BFS were to deal in vectors instead of Tiles, we could copy this on cloning \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":"core/src/com/unciv/logic/automation/unit/RoadBetweenCitiesAutomation.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ee2d195d116928e2264b5220914068bec41de365992bf9a3c7ce528b7eeb8c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This number is not consistent across turns because pathing depends on worker position \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":"core/src/com/unciv/logic/automation/unit/RoadBetweenCitiesAutomation.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"296bf490d72dbd0e3af923f7f990a2cb1518a97f948c9d4b751e25a33ebdb964"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: May return inconsistent paths across turns due to worker position, this makes it impossible to plan an exact road resulting in excessive roads built \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":"core/src/com/unciv/logic/automation/unit/RoadBetweenCitiesAutomation.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f42cbe3ae88327e1cf7c8eb9f6d178326568efc6e09961420eda7853362d30"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Caching \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":"core/src/com/unciv/logic/automation/unit/RoadToAutomation.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd086400e9d951e273b0b9fe7aab362b3bddf469bc3caa2be4d184d51070767"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Figure out a way to not use turns as it might not be the best metric, what if we are a civ starting in the middle of a game? \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":"core/src/com/unciv/logic/automation/unit/SpecificUnitAutomation.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f344337f496a31c07e87705a0ace499953deea1d43fa60a1237f3e562786e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: UnitMovement.canReach still very expensive and could benefit from caching, it\u0027s not using BFS \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":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"630088b10cb3251492f950a9c84c523db2c2e0aaf1d6366e817ace0e3c7ca2d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace this code entirely and change [chooseImprovement] to not continue building the improvement by default \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":"core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c48a1842ef0490d46d2caf51f3176959d9a431614883e1321214189e1c65084"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We use negative values in WaryOf for now so that we aren\u0027t adding any extra fields to the save file \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":"core/src/com/unciv/logic/automation/civilization/DeclareWarPlanEvaluator.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa2de3e4ad142b6e0ab2bdf469bf70e42f325fe16c919f33129ccdcc8218f09"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We use negative values in WaryOf for now so that we aren\u0027t adding any extra fields to the save file \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":"core/src/com/unciv/logic/automation/civilization/DeclareWarTargetAutomation.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24bab8a970f37219bb3b35e849dbcc523735f85668663835df513e9b08004fe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Maybe add in payment requests in some situations \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":"core/src/com/unciv/logic/automation/civilization/DeclareWarTargetAutomation.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc0b90020d21a0fcf9f1b11e1d1288451886916610e8ed1bc31717ec0116baa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add gold offer 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":"core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca969524403b66a1cac7c09429d8095e16d1e57392167ccb97280177d631aac8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider consequences of denouncing others \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":"core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"15139527cb1c7c646cb0b542469cf58b86a5ae82f1636a5fddbd8c82027cf586"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: For now this will be a very high value because the AI can\u0027t handle multiple fronts, this should be changed later though \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":"core/src/com/unciv/logic/automation/civilization/MotivationToAttackAutomation.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"154d70d787d72607b89809dfed47725d0ba6f0f1c2484005dfb571ed3730781f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo can take a second - why? \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":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"840a0a13f7b6ee9e0bc46f3304726e3386a6ff47ccfcbbe8bf6adc60f7a89f50"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: some cleverness, this is just wild guessing. \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":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c5369703c577bd0e52ea57d38278d8410cef0d878bccca2acd7defc873b8d5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: apply WarmongerHatred personality trait 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":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f77ac1ba33bc6565e0c9829a8f4594b28235eb597ba02ccb2aafeed190c16d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: in late game, this may not be worth it \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":"core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5109e1ea8c66aab7eaeb7e22514987e69a9ddc3b57862c83cf9adeea7db91f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: declare war if enemy missionaries enter our civ without permission \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":"core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4fa9439820dad162df91452e9967e4ae29d6fff359620db83d79f22a678908"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: All bad things are build anyways at the moment, maybe let\u0027s stop doing that and chose perpetual construction instead \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":"core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1f2740dcdd9f0ee2953fc9ea12e9bddd72d161a52872565b162936c7a8f7ab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: add worker disbandment and consumption of great persons if under attack \u0026 short on unit supply \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":"core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"db87b01072de3b93b1b144181da120ae292b90ef59494aece84a5c5faf976f78"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo Still ignores whether that boat can reach the not-yet-found tile to improve \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":"core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"001a1d29cd226f5a41b5bcb0d8fc0f37fbac6e056e8f82a4d00eede570096980"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo Prepare for mods that allow improving water tiles without a resource? \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":"core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cadeb8714614e1db20f17193bf49a1f16421722cadfa13f3f0102859067eaaf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo should workboatAutomationSearchMaxTiles depend on game state? \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":"core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f6e511005e33830103f950aafb51e541f65802334b08b37f7412141922de8b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo: breaks city connection; trade route gold is currently not considered for markets etc. \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":"core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f150f930662d11ff0ba92cdb0e1fa89831955427c512fe347ebae664da17692"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060uncivRepoURL\u0060 spells \u0060URL\u0060 where 30 names in the project spell it \u0060Url\u0060: 30 of 32 names in project core spell the token \u0060Url\u0060 (30 of 32; unit: names in project core containing \u0060Url\u0060). Peers: IdChecker.uncivUrlPrefix (core/src/com/unciv/logic/IdChecker.kt:33); IdChecker.checkAndReturnIdFromUrl (core/src/com/unciv/logic/IdChecker.kt:61); Github.getPreviewImageOrNull(modUrl) (core/src/com/unciv/logic/github/Github.kt:125); Github.getPreviewImageOrNull(avatarUrl) (core/src/com/unciv/logic/github/Github.kt:125); GithubAPI.baseUrl (core/src/com/unciv/logic/github/GithubAPI.kt:58). Rename to \u0060uncivRepoUrl\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/Constants.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b19aee7f93ca4ade6da87825344d5667799a0f5fb4966bb3955aed79c11ea0f"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060wikiURL\u0060 spells \u0060URL\u0060 where 30 names in the project spell it \u0060Url\u0060: 30 of 32 names in project core spell the token \u0060Url\u0060 (30 of 32; unit: names in project core containing \u0060Url\u0060). Peers: IdChecker.uncivUrlPrefix (core/src/com/unciv/logic/IdChecker.kt:33); IdChecker.checkAndReturnIdFromUrl (core/src/com/unciv/logic/IdChecker.kt:61); Github.getPreviewImageOrNull(modUrl) (core/src/com/unciv/logic/github/Github.kt:125); Github.getPreviewImageOrNull(avatarUrl) (core/src/com/unciv/logic/github/Github.kt:125); GithubAPI.baseUrl (core/src/com/unciv/logic/github/GithubAPI.kt:58). Rename to \u0060wikiUrl\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/Constants.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e7ccf9020760c2d3240e047f7624b83317ad8c92ce6ad7439818bdc97cc849"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 10 project(s) overshoot their size bounds, lowering Project Cohesion to 8.0/10. The most over is \u0060core\u0060 (121923 LoC, 3681 module-visible types across 91 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","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":"e3d9bc32c9c596d4ce83e2484b112428de525765e46a2b5ce29ab1e46a58d58a"},"properties":{"commitSha":"1430d7f89d574201915e66650b39295791d49052"}},{"ruleId":"D28","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":"672baa3d1410a80d2fe7bbfb3331d7c40ed9acb2215e08f761bc376eead31c75"},"properties":{"commitSha":"9fbca562ae8422f8819a25f5f10c1c3659a3bc16"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"48f0a727abebb8a943f984b76530719809fc846d45f5622be176ab3078ff5282"},"taxa":[{"id":"CWE-321","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":"D28","level":"note","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","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":"7907ff9267bb9724f67e89b0bb2884de43c9f607c8b63bac1432a8bb65922514"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"93eb9b0ac087746f16e3a244bf3438cc3473001e8b8cb64f7a4d5737523422a7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"27789577c8a05eeac13e4303f197c7276f37d8288fd9e32781e9fe988ab821ee"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"6cfafc68027386298b6ffcc1cf0c53c46409b1fcc021c89eb1e69ce8295fc9f0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"b1210d485c76e222fcb372614e2d967d4dde60fdb4794e661bef8d42c3776e37"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"eae57b8d5cf173c5655b2fae1a1e00d568b1e59a91c93df96e4ee94425ece36b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"caf8e872cd287070860217e60e7da38288f9efe277b714ea85fe13024106ec2a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"4be2c4a17f2624aaf9c376b4b9a0f760124bad7d045a192d3466c26e9e9d6a1b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"14162a438a1bdd3f5e06f7c3499a9c7ffd034bd8fb7b33497dbf186db2b53f46"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"9627e76751f7c0488997e8cadde0dad93fcc9d1dd51dbd94821e7133cf4c4e08"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"e02269e0c81412f1f278406d78028cd35def68c032dd526f7d7597afe50a8fe1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"0ef56faf42c7146abab8fb404211709607f0cd6c9787a3fe7924bd5d6805eb28"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"df6be022ac1b5816efc7c74ba6752c25abe3912f2096c359caee1b11b2b109c1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"e019f5a6460aa5374b16b8059a41471129fcca4e911f93e33131f210ed9b1e2a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"6d872bd9b659a7ed8bbf6e1a78de28449638f8ebe98293ff6c6cfb44c5d3d604"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"4f03f98d15387d585118a4bfeb6a0522e8bfd74ca6f9f24188da57b7da5d6545"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"978b9fb86b9e41f758ea13ff127ec10cdef3eba5da1bc3352f82ba3872baaae6"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"ac276cb24df4e8ed16af9fcc2f91b06ffa4454437861f261edf38bcc62ebea29"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"589655d2693df1edde0ce4c45717508b3bf434157e87d7d4f9519402399edba2"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"3205081364086ad34ec1a0690f8a0275b01e20e6c353924aafde7705fd4133b5"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"2f5e0ab9585baa4ea02446629c710eabe430229d357a73184457475338b36ed9"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"8903dfe15728a92e01f9a2b88e0a80fd08e6f674032e33159c1bf7878c7331ba"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"3f3bcece771955be2e31514449e597a5d6153defe9962946fd6763913939ba79"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"ac19a9be67b82b9af4d30ba896f14ac08bc585649181ad87bf9e90edacb68b4b"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"1f70fe8417be7b97258a1c76c3f18f994061d7ff08543d0bf5186c051d8553fd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"eee47ca4e4be2b8290b5596023c829d41676996bad46e1c7e45ae95eef79be71"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"ce9bf363d20f22c2138bdf1c0180783a29873090964c10e24eb4890336c69829"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"e628d5e266e3861226dd2d7ca22992adee2b04e04f276a9ce254aaf379f79cc0"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"8c993814f3df2824d0979dc1eeefcac708526b4fa66cb47699a1a23fc84fd15c"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"aa33ff5b2404a2abad923a184b0e62ca9e31731d3ac3c34a36bdd0c8490fe0db"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"fa8d61757467e1f69974b5c878d0a5995fe62612d8ffcd85f2e915a5be250c01"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"4d1550635ebd17123c728f50e1dcedb570be39b4b284528e62982c1dcc0af399"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"6fbbd467ff2a74cf840c816be01dc89e808e0f7e2c072531bbe619f216204259"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"9037b65a80c738ab7ac7d226174d989a79d4bdb78a7f50b1a0cec07071d539b9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"154aaa2c9ab71720d96f135fa4372e644f0548be2f0876bb2617fa14af972e6b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"8f529a80d51fc32b19ca8ebaf3ed77ea72fbbeb7ded36cee6f0068abf860d80d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"fd8fd322c023a2039d40dcf88f727c627213fd39949cfedda8e87cab8fb726f0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"96f36ae0922cfdfaef7f42e6b7a466f13cd00001e4b1202b324d2be92c5af684"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"be7f0a7e2d70524bd83983cb1f572de292601a82e503c086d80d4aa410b08c51"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"5a290d42f65cb4d058022a902b9f5adbdff6ddb5196aca899b20293171e69c06"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"fe2414f58220e5a3598a4bd4d8c4bb60e982b69b0c3c23041f0735dbe69383d6"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"cfdbbd2f7493e5fafac67c40b1a5c533096808e0a650f9efa87095a0720149ad"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c69c8a67ab45ed65cd2a18d98173f452d520144331aad63eca6d8a63a286c1d2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"e46b3ee68801ad89a12e4596ef72b6b67b06a0079e74e9db0da4224eb21e1b66"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"ee3647f82fe1510e0f116aca05be644f421887d3ed42afd16258f00272eb5924"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"6340c6eb63339b9051a7f970581aa03fb9ff0acdf33d066204fd19810b16089e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"cafedd8a02877704e7f2e15fa6eed7a1283f4d5b8db4c6d3b7fd2beb0e3b3055"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"8c9e2e2ddd79d00223b5b0a572445b5d82faef847141cbdab848c84e8f5b8de1"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"86a7f03ff4d88d1b8f5486bec22b20d33c02968885eec15ca5e25c457f9dbec5"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"b4b85e1104c85f8ef070278d316aa87606da08b452e4c8806d092241e82d5efb"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"6f526d995b2758b0eee530496132f802c72020b0ab64e2120765f7dd3b05c5e0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c582a2206186f04e6ace3a8407154ccc53f772880a16cfe5c3e9ba8f9aff31c5"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"6053eb719f3d96a9765a39b37a007b7ba6f9375b66d6aea3db2eae25677b30a7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"7f6101ec489527205b958377fb5c6324fd2f874e52cdb3871fca1f1ce08125ab"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"bd95246d4051ffb3cd66fecfd90a52701799af2543d8b49589e0fe5d556b168f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"cc911fe4c06c634b17c4a6e209394a4fb4400394d35a6a3a8a13e257d1feeda9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"3698d79731714fc938d762e657e4058b8de5228354e9e9ec17da0653fbaf9adb"},"taxa":[{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"b4ca8aa7f5fbed5db8d0c1fc275a18198c38c4369bf1a70dbdb282098e4a03a1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"ca20e72ae24e98d1dbc1215562da379bf6d24946dcbd7efa491f09d9d04087ce"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"75fd593de85c17f1c85c68d74eec7944718a9ced08cdaf48ab8f5e331f374a21"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"5a5cd1a944ee2451ad27d684e147700ea5593f6d697d36456873c911c310d66c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"78e00842ecd4c151c7dee5d5489512252ae6dd30d9bb26c33070a75df93cf127"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"30e8f77566de787dbcff201b51eec9a75e36140313c6f0a8a32d4b64835da149"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"4850a06343ec760874cf6564cb36d4bcfd0699cb3ea91246aecb327bf3702881"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c5c2a3af45ae36bcdd8587b9aa5b2e6b2f623d22b941a939b9974d13982a2d11"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"82455f0689b09a1481fc3af945d02f45f581c2d58036e7aa3e227085e428285c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"63b7fe9bf826567c9596f3bd2a10be1d487e79e1c35bff0c1867913c42829f3d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"3768c4362eaa86482e1c0f02e9b7f15f7db53ed25b9b0e4e0d16fbc31173f78e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"56bc32507e4b7b3c3b2749e542e6704e340194516b3a6f05085075c003ca5116"},"taxa":[{"id":"CWE-269","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"8551cdfd047ac61b44976eb65a06ef04722379f16f016bc8fbf78a3f58a937d2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c0d11b0d17d42ef51833ac533b65dd002da40ee5ef3f964dc1ed2578a8a3ba71"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"2727f51d1f6d2013583a373230d57d919d4d15d50dce77baca8eaa35f1af2a9d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"9673bf2b2421c81ff6f3e66f87c0f3f889b29c5166de597518241ba60b7c36b9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"dc8e029f4f166c909dab834084627138b1da851cb596f1dafbad38b25c7e20f0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"b7f2aa1400786b05010fd6800995ebf7527f119fe7a31abe622b66fffd6064c3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c535dc1dde66ffc63f7fc0a9f1096984aafc3d9b5d0a1bafe4981e85cc6c4f10"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"a0206ad94e0e06beeb83a0a0bd4ad1d8237555f4ca23ed90234eb688ac2377e6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"a0b984aba006c1c9926f91e924fa69b05c0b65c929612e4525e66a7338617d1f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c84286dd4c2245db2d674a592002b2c06a4a58819d666f042708b8829e5aeb51"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"c008c27d97e082ebdc2e72694f550a128ffcb040948b49924e4320b4d8e17579"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"08c7e0dcc6a95416ac37bf5cd5830fd276e14a5d4ac614249e18eb9a63490316"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"775c6b000b5a0edac7547abf99a6c0a6ba98c0b3a49355a868b23b62fa59d468"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"ee18d6731138f999ab768be279cd736ffef9c288ac36ee1abeb99b6209d6545e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"e1653a8d7619d5a3657996d20dc52165c48fa555a0d1333556a8f6332ef6904c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"67b8d5be660e5ec12646f3f7e5f921ff1aa7ce66f17422d724bbd8cff4571225"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"f2e8b35f75725ec805ef60a782fb79d83ac2b0096829b625dfd35a18acc33f23"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"0cb0788ade3e2ac340867383366ae17ca64365508da87167ebaf5d55bdf50dfa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"576b1def371344d15f242c4543e3c9c619a41a19ffcff332e8600e33f1626b1c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"0063393c75dcac2215b46ce7172d21ed848da6c07ced6038016f7f5440813a9a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"ff6f4c911cd0cb30b3ad55bbe8759af0f5a0be84a071f6c0f6bc339487a02ef8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"fd24b7b5c40754d67fdd82f8bb0ef97b0fb3f92ad8e6b4746b8744f224d6b1b6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"29ac46994a274b1210ef4ba580760d8c637ef3b07268a0ff1784739926cdac57"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"ec3bedd5f8222a2a824de8d76df2f8ad90191e941354ff085f4c5ed01b238092"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"10c2746f8b5b55339550afa8cad031c29823dea325cf8c7b911bc946efc831bd"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"d5bf0abaa03e208a4fc9ac1c1e07d6729acee1a0b00c4b2da7b97a832ce41f3f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"320c9a6036ec7bbce73e364f0ebc81e0f50bfd9599ce1e28db13ffcede8af829"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"551279e5e27b3258b4bd5690e7847e34519e1d82c5f255dc28587a77c1776820"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"84fd904b7f0584e50d329d5ecdbd9fa1bb02a434b0844f4fb6ab08c0f45b57a0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"aed8418423d17e9a72047e86970273a920f62c0340a6f456a68e4c00846ff747"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"6b0ac9a8e28b59b53dac2ae479b462f09e9f87f8cd2950a8aab62d8574f81e81"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"8f6e7ce93875fe777db4bd47f570e96e7940f450c4747899b479655c20f72efe"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"829d188e39dae3017705250bf3cf738076eda80f53aad607168eded2ca445121"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"77efb57a4de57c14a1f9f95d7f7f493127b5ae742c02de910c54de6d41963c02"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"d30da30f89d9a74c266d4251b3c7f0f8f405df0b95780db1bb6f8cb17aae78f5"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"2686dc49dced78b98bd88cbef856e1943741b3144738785b69119f3d90258b6e"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"29457df707142b1204fa3a64e44062e5bebdfbd1ae302c0dac830bb3bb990788"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"0e18b3ee6be5565f572e9b1fc3674b40af808934c4e71fec2b30750d2d5a88a9"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"becbc5502f94878197b05d70c7ef15f1353fd99a90efcb824b9c43f11ae5ce7a"}},{"ruleId":"D31","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":"62ba3f391b97d680ac34e630794a6a7fc0f3b16bd44bab9e323085ff4fa2c944"}},{"ruleId":"D31","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":"42df37442e14f81f3cbd393e724f437d06f29536a9128837ec12736c2ba28972"}},{"ruleId":"D31","level":"note","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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/apiv2/ApiV2.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"838a05e87f3e9cb2f4141549078cf1a0e5284ccf15e10600ff0c1067ee4546c8"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 22 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: core/src/com/unciv/ui/components/widgets/ZoomableScrollPane.kt, core/src/com/unciv/logic/multiplayer/apiv2/ResponseStructs.kt, core/src/com/unciv/logic/multiplayer/apiv2/WebSocketStructs.kt, core/src/com/unciv/logic/event/EventBus.kt, buildSrc/src/main/kotlin/AndroidImagePacker.kt, core/src/com/unciv/models/skins/SkinStrings.kt, core/src/com/unciv/logic/multiplayer/apiv2/JsonSerializers.kt, core/src/com/unciv/ui/screens/pickerscreens/PickerPane.kt (and 14 more) (23 orphaned of 559 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 559 of the 738 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/widgets/ZoomableScrollPane.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c255bc9dcf55336081e823d1194d55603cd19973f6a6190757319fca36f9dcd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/apiv2/ResponseStructs.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39adff8e89a09a6f3ed9bb2b96dc6241754ddf6cc799e2acdcf5b79b21f4e05"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/apiv2/WebSocketStructs.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5090f67ebb19ccd7b169b1a6ed96707eda1dcbb1ec05da66d1e87e9443a90dcc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/event/EventBus.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0253eda987303ef92bb047121c7faf0adb47c7e326e131ac007586ea4bd99e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"buildSrc/src/main/kotlin/AndroidImagePacker.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6082e28f145abbb3dd3e4b3f74927705fce59655bbab24ebdf1b387bd1e91b7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/skins/SkinStrings.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2e7c1dbb1b00df87858c8a5a5e7695b7d596e928841036aa5cc9bd70e93073"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/apiv2/JsonSerializers.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb313efa7adfc18500843bc369fe987cb257bb1853bb7b56159e16196a7b5b72"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/pickerscreens/PickerPane.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca447c4169b4e8174b7d2e7081741fb8a80f4e7d348c2397235c7b0012c6287"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/ZoomGestureListener.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba44a5d155be7d1a8b903b8360e41d047d647d54de31918164106426195c2f96"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/status/MultiplayerStatusButton.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9575284e1d04c3495f36acc34762a9cd2c5ee0d329cc0ba2f1392c149e0dd5bc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/chat/ChatStore.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb74196650e1b272fe339c6554aab49f988b4953b48fa5b4f45c578cb615f1ba"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/extensions/FormattingExtensions.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f551f09764ee97dc1f031b6bfda617e64b073c58a5329036069c11f90a373c86"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/validation/TextSimilarity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06b61b8399d4a427c0f2df1ae35b72cc9536b5fdc323710ed73cd60c3094f2d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/skins/SkinCache.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c556cef5599c983513c7c0762dc4d72e48931bb665231f4a87d97dca71b09b8f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/CreateGameFromSettings.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd5ad315f772eca07e78b8a9d87e69356d5ab20b2c5fe4d9a74ac510f6512de"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/multiplayerscreens/ViewFriendsListScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71a369d7fa3217e0327af1d2abb3cf03ce08d2b76a534b07fe7fddfff4b1163"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/multiplayerscreens/AddFriendScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"507c5ad4b85628cd685dbbf613a9ac2eed752a1559754ee6f532ffed0f2c7753"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/unit/AutoPlay.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c976732432222fe68e2a83ec4bdfa74d3db7e23d660906aa762faeb23909c9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/widgets/BorderedTable.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d13284fb4308477ce3ac69d8ed0267c3ad1e7a807a40a6c1c3784087966dadb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/popups/AskTextPopup.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4918fb4b4da125479095ff77e50b125167f7bffc1857ccdd85fe8b5efc1882"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/apiv2/AuthHelper.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67d5b091cef1e45248b9a522818f68e0cf106191ca8287c9fce9a2c2c0ed84d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/apiv2/RequestStructs.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55f626a9f336e773b55f4ef331cc3234ed6e2b5601235238c748a125bc3f944"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Conditionals.kt \u2194 UniqueType.kt: \u0060core/src/com/unciv/models/ruleset/unique/Conditionals.kt\u0060 and \u0060core/src/com/unciv/models/ruleset/unique/UniqueType.kt\u0060 change together 67% of the time (41 of the 61 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 41 shared commits counted here, the most recent 3 are \u0060e326a871\u0060 Add conditionals for current unit movement (#14695); \u0060686060b1\u0060 Carrying conditional and countable (#14369); \u00600c298dae\u0060 Fix \u0060\u003Con [difficulty] or higher/lower\u003E\u0060 Conditional (#14236) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/unique/Conditionals.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"244b26e65110ca14ae1e4333665b3976f1835b5aab27b546c2ccec38a1f7b740"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BuildConfig.kt \u2194 UncivGame.kt: \u0060buildSrc/src/main/kotlin/BuildConfig.kt\u0060 and \u0060core/src/com/unciv/UncivGame.kt\u0060 change together 63% of the time (426 of the 673 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 426 shared commits counted here, the most recent 3 are \u0060f9ba686b\u0060 Version rollout (#15995); \u006055a9a072\u0060 Version rollout (#15981); \u00609b5d128c\u0060 Version rollout (#15966) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"buildSrc/src/main/kotlin/BuildConfig.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8e9957a795cf27cec20ea5fddbcefc6cf6be99a5d9451f3b6f9798cf9b6aa7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: NextTurnAutomation.kt \u2194 Trade.kt: \u0060core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt\u0060 and \u0060core/src/com/unciv/logic/trade/Trade.kt\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00600ddbb46c\u0060 Implementation for establishing embassies in diplomacy (#13625); \u0060700e2416\u0060 AI Open Borders Offer fix (#10178); \u0060cc162460\u0060 AI diplomatic actions rework (#10071) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1faa4647fa1095e85d51eb4566664a6170587fe4715f124c18d7c44285ea0b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CityConstructions.kt \u2194 CityScreenConstructionMenu.kt: \u0060core/src/com/unciv/logic/city/CityConstructions.kt\u0060 and \u0060core/src/com/unciv/ui/popups/CityScreenConstructionMenu.kt\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060c4cec5dc\u0060 Construction queue: MaxNumberBuildable counting and thread-safe queue\u2026; \u0060eb511576\u0060 chore: Refactor PerpetualConstruction (#15089); \u0060cd22be00\u0060 Partially fix #13831 - city construction menu cannot add improvement-\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/CityConstructions.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ee3609ceda39870af5631bfaf341f50a821cb02fe2919f0ccab829068fa19b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: OverlayButtonData.kt \u2194 WorldMapTileUpdater.kt: \u0060core/src/com/unciv/ui/screens/worldscreen/worldmap/OverlayButtonData.kt\u0060 and \u0060core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapTileUpdater.kt\u0060 change together 53% of the time (10 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060007d1cb3\u0060 View implementation - RoadToAutomation - see #15280; \u0060f0791d7f\u0060 View implementation - wander() conversion, minimize MapUnitView essen\u2026; \u0060feb5e606\u0060 Revert \u0022fix:Refactor movement logic for hidden unit handling (#15547)\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/worldscreen/worldmap/OverlayButtonData.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cffc5bb03ec58500445a172bdcb9ad38676a2fbecaf895c75ee253a3bd073ab"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Github.kt \u2194 ModInfoAndActionPane.kt: \u0060core/src/com/unciv/logic/github/Github.kt\u0060 and \u0060core/src/com/unciv/ui/screens/modmanager/ModInfoAndActionPane.kt\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060c31823c4\u0060 Streamed extracting while downloading mods (#14261); \u00608da4987b\u0060 Mod downloading tweaks and fixes (#14114); \u00602e2ceb99\u0060 Fix selecting local mods without preview won\u0027t display an avatar (#14\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/github/Github.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2d5cb5f6c0e00ff8f4003ffab35a70a9892b619f146c2098b543d4046cf712"}},{"ruleId":"D36","level":"note","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":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","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":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","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":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","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":"aebeaa7dc065aa3532a0a783441ba416ef3e9475fb3ca0335824fa88a5e23801"}},{"ruleId":"D36","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":"9485d18b26c1395356557a13cef6abffb88b1ca0cafa33ebfa15fc49e465c2cd"}},{"ruleId":"D36","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":"4e55e80bf0c978cc7eceaa530796d33b07aea0da642625577428bcacecb6dd95"}},{"ruleId":"D36","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":"43134089e538068f108291e1d5b2498863f48966a49af0bf267be8a3e19b5f40"}},{"ruleId":"D36","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":"60addd4d01130fba87427634370ebe0a631fbffabe55e5e884f5754be1738c79"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","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":"8a55cbc7bca3bf82725e194e2e5aca5d82c6e93c71d6905ab690acfd6e99083d"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","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":"a832bea9e01f6689c02e5834bc1f7f354942c890686b0d18f6972db49d29fb85"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","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":"9f48c2e2db0e0ad83ea2ad422d9b735dc01ed3f41493518c9832699e172d13eb"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","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":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","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":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 5/10 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060web/validation/desktop-network-contract\u0060, \u0060web/validation/http-fetch-engine\u0060, \u0060web/validation/json-roundtrip\u0060, \u0060web/validation/reflection-field\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 11 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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/androidBuild.yml"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P5","level":"warning","message":{"text":"No DR/backup evidence: A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced \u2014 a volume that survives a container recreate is not a tested restore from catastrophic loss."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5daabb38c90b07af65b8738cf94ce884e90a7d8fef810d341de5c186188c8fe0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient {\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/chat/ChatWebSocket.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d8f414884eaa94f35ce94f32d3dfcbe82773dc7edd9cf1a531ac957349ca06"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060.openConnection(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/storage/DropBox.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd92866437567a3156d818082bd0e1f65fef501b9673061721c38bcadd2993a3"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient {\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/desktop-network-contract/src/main/kotlin/com/unciv/logic/multiplayer/apiv2/Main.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b0d27c11be9d0b4567eeb2537079788c53f696d35ed68aeb4cdf229a338b2e"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/http-fetch-engine/browser-fetch-contract.cjs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e06e94bbc548ea65e11d275ef164aa463530734b286b1eebda6116357885d2b"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/http-fetch-engine/browser-fetch-contract.cjs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7bc0a1056d55deaa0a0717168be11aa66e567a366981f1403614c22c52dbf3"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060getPreviewImageOrNull\u0060 is async and calls runBlocking \u2014 a blocking call inside async code stalls the coroutine\u0027s thread, and every coroutine dispatched to it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/github/Github.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46e40a75caef9d0de5dd2520703930e5c3c793753d708b9b5c5ece8e3e720a7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060awaitPing\u0060 is async and calls runBlocking \u2014 a blocking call inside async code stalls the coroutine\u0027s thread, and every coroutine dispatched to it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/apiv2/ApiV2.kt"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"874cdb78f30ced784de6caa37c2b1e3fa0c9a12b93dc4d81d3dd50d1e159f9f4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060zlib.gzipSync\u0060 in \u0060main\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/http-fetch-engine/browser-fetch-contract.cjs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"244c324a26ad8ba07b3cad09d88becf856265d9887176b017b7737fc609eef4b"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 7 plain JS \u2014 the untyped files are web/validation/display-options/run.cjs, web/validation/http-fetch-engine/browser-fetch-contract.cjs, web/validation/http-fetch-engine/run.cjs, web/validation/json-roundtrip/run.cjs, web/validation/reflection-field/run.cjs, web/validation/web-font/run-game.cjs (\u002B1 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): web/validation/json-roundtrip/run.cjs:2 \u00B7 web/validation/reflection-field/run.cjs:1 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/json-roundtrip/run.cjs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9243eb3c99a0d29b791d182ac279a8b920fb20924cfe68d57c57326c567625ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/validation/web-font/run-game.cjs:83 \u00B7 web/validation/web-font/run-game.cjs:145 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/web-font/run-game.cjs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"935d65c8e7c5eadd53df109ad3bc995e23c70772a8e45aea70b59b19eb36e3a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/validation/web-font/run-game.cjs:173 \u00B7 web/validation/web-font/run.cjs:137 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/web-font/run-game.cjs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a08d9232615b40483878665c02dc1bf0ef8c5a1aea2306b14cc0087ffe78780"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/validation/web-font/run-game.cjs:4 \u00B7 web/validation/web-font/run.cjs:4 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/web-font/run-game.cjs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a196416ac53048cf8ad7f0d73057076def489c0ad4bf1408abfb4324728c0c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/validation/http-fetch-engine/run.cjs:91 \u00B7 web/validation/http-fetch-engine/run.cjs:99 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/http-fetch-engine/run.cjs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7958e1a64e7205262b6212df04864c78bb5d596c529444ef5648ede7b472ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/validation/http-fetch-engine/run.cjs:57 \u00B7 web/validation/http-fetch-engine/run.cjs:68 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/http-fetch-engine/run.cjs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bfa6ac8b71c63efd168cb99defec2e47bd7ffdc3ebf2dc3ab3fc99f37199b1"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: web/validation/display-options/run.cjs:8 reaches into another package with a relative path (./../../build/validation/headless-browser/node_modules/playwright) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/display-options/run.cjs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08d1bba1771651b8d569401aa9565c73fc7d04f40651956028a07d9f9165096"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: web/validation/http-fetch-engine/browser-fetch-contract.cjs:5 reaches into another package with a relative path (../../build/validation/headless-browser/node_modules/playwright) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/http-fetch-engine/browser-fetch-contract.cjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7697139ccd166944ab3b662e9be89dbac19a975ff5e03d79d60c2dc74a5421d"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: web/validation/web-font/run-game.cjs:9 reaches into another package with a relative path (./../../build/validation/headless-browser/node_modules/playwright) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/web-font/run-game.cjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"395ec0cf7f99f987dfa435142f16594300eee23c11d33e2e997c2221aa2f744a"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: web/validation/web-font/run.cjs:9 reaches into another package with a relative path (./../../build/validation/headless-browser/node_modules/playwright) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/web-font/run.cjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdaa418b8af850a6a9b377ae36b4b857f789c9deeb62ba6324a46c3548d482b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 26, cognitive 18): main has cyclomatic complexity 26 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/http-fetch-engine/browser-fetch-contract.cjs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1a47a79e71c9bf6709fdb7b0f4aaac5ba34991608370bbf650066a2af4c7e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 14): (anonymous) has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/web-font/run.cjs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9ae19b4ae54d108f38af7a3fc53fa4a35117e07b959420dd9918ba82399f19"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetch (cyclomatic 11, cognitive 10): fetch has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/http-fetch-engine/run.cjs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b91dc2d9f2ca890a6d88cf7608e9ca47952a1ef62d40aacd50192966e34526"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~175 LoC): no import path from any entry point (4 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/http-fetch-engine/run.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cdaff5c5bcf332f48f393e7b6bba283eb735daaacbe4625556554570156992"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~25 LoC): no import path from any entry point (4 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/json-roundtrip/run.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9787bbe24aaf89d5581ba163f4590a17ebbe340cbb4437ad29dde2e93a60749c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~24 LoC): no import path from any entry point (4 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/reflection-field/run.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74aefd6944fd284e2134fe0b2c837379b17a6ba53fa7b08ebd734a5b2ae6621e"}},{"ruleId":"X1","level":"error","message":{"text":"\u0060runBlocking\u0060 inside a coroutine: \u0060runBlocking\u0060 parks the calling thread until its block finishes, and this is already running in a coroutine, on a dispatcher\u0027s thread. On a single-threaded dispatcher (\u0060Dispatchers.Main\u0060, a \u0060limitedParallelism(1)\u0060 view) the block can need that very thread to make progress \u2014 a deadlock \u2014 and on any dispatcher it takes a thread out of the pool for the wait; the library documents that \u0060runBlocking\u0060 \u0022should not be used from a coroutine\u0022. The suspending call can simply be made here: call it directly, or \u0060coroutineScope { \u2026 }\u0060 / \u0060withContext(\u2026) { \u2026 }\u0060 for a block. Where a non-suspending function in between forces the bridge, make that function \u0060suspend\u0060 too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/github/Github.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"135ab11ceddcd0032c31ebc7ffac759f60603a6e653e06efafb522e4d98ef968"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060context.pages()[0] || await context.newPage()\u0060 appears character-identically in 2 files \u2014 web/validation/display-options/run.cjs, web/validation/web-font/run-game.cjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/display-options/run.cjs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a866287b4248ae31d26aabdd7a6382ef343529f83e9cfa0775918465498700"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.UNCIV_PREVIEW_URL || \u0027http://127.0.0.1:18081/\u0027\u0060 appears character-identically in 2 files \u2014 web/validation/display-options/run.cjs, web/validation/web-font/run-game.cjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/display-options/run.cjs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6123d858c23893644d25f8984c799593eb5872ea07668fb9e3cd5db20efe02a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.platform === \u0027win32\u0027 \u0026\u0026 fs.existsSync(\u0027C:/Program Files/Google/Chrome/Application/chrome.exe\u0027)\u0060 appears character-identically in 3 files \u2014 web/validation/display-options/run.cjs, web/validation/web-font/run-game.cjs, web/validation/web-font/run.cjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/validation/display-options/run.cjs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a464d522b17f2da82e144f5bfdacc9b35c3abfb7fb2a25544b7be401eae4edf9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!teavmSource.isAbsolute || !teavmSource.isDirectory\u0060 appears character-identically in 2 files \u2014 settings.gradle.kts, web/validation/http-fetch-engine/settings.gradle.kts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"settings.gradle.kts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"99bc5ef5b4b55f8c7f9a44ae9c3db829fe0d6c40b13ec45d5b4209bd873d4d57"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!tilesReached.containsKey(destination) \u0026\u0026 !hasEnded()\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/map/AStar.kt, core/src/com/unciv/logic/map/BFS.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/AStar.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1479be874c1d659d256027c5203183b2365ee999f87737a0ce96fce8233d5f4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!unique.isTriggerable || unique.hasTriggerConditional() || !unique.conditionalsApply(civInfo.state)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/civilization/managers/PolicyManager.kt, core/src/com/unciv/logic/civilization/managers/TechManager.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/managers/PolicyManager.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"50137014fd86754ed83952f45654eb4d39817ce82416027f1806208f84360662"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attacker.isRanged() \u0026\u0026 !attacker.isAirUnit()\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/battle/Battle.kt, core/src/com/unciv/logic/battle/BattleDamage.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/battle/Battle.kt"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b994c30a65fe2abf7bd1c59e8110aa6cf84e02d4505425dbf35b5cae5ee76fe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060city.isWeLoveTheKingDayActive() \u0026\u0026 city.civ.getHappiness() \u003E= 0\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/automation/Automation.kt, core/src/com/unciv/logic/city/CityStats.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/Automation.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d18cede60933c08c947139cfe3815c021eaff560c5cfa2c42dfb2562a45b3c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060civInfo.cities.isEmpty() || civInfo.getCapital() == null\u0060 appears character-identically in 4 files \u2014 core/src/com/unciv/logic/battle/BattleDamage.kt, core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt, core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt, core/src/com/unciv/logic/civilization/diplomacy/DiplomacyTurnManager.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/battle/BattleDamage.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a12ed851620fc03537212dd8d3c06ea7564211b700a3b6da6870f279bd9639"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060civInfo.cities.isEmpty() || otherCiv.cities.isEmpty()\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/civilization/diplomacy/DiplomacyTurnManager.kt, core/src/com/unciv/logic/civilization/transients/CivInfoTransientCache.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyTurnManager.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"771ea7994fc6945d1057a3550784fc8d781fd11d54071a4eee7c90aeba4f238c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060civInfo.isAI() || UncivGame.Current.worldScreen?.autoPlay?.isAutoPlayingAndFullAutoPlayAI() == true\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt, core/src/com/unciv/ui/components/MayaCalendar.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"31df0afaa0e3cb3d80d7db747e039fcda6488f1cec2485ab7c3160ba4ab7164f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060civInfo.isCityState \u0026\u0026 otherCiv.isMajorCiv\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/civilization/diplomacy/DiplomacyFunctions.kt, core/src/com/unciv/logic/civilization/diplomacy/DiplomacyTurnManager.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyFunctions.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a2b778ce2ba20ab4706e4982df34d8e023c2e53acaf95ad4aafffcd596dda3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060colorConsumesResources \u0026\u0026 unique.type == UniqueType.ConsumesResources\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/ui/objectdescriptions/DescriptionHelpers.kt, core/src/com/unciv/ui/objectdescriptions/FormattedLineListBuilder.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/objectdescriptions/DescriptionHelpers.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9f7f4a0c1acfefb7d32a6c6648118841155226bab9827219afc532bc1b38ef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060construction is Building \u0026\u0026 construction.hasCreateOneImprovementUnique()\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/ui/popups/CityScreenConstructionMenu.kt, core/src/com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/popups/CityScreenConstructionMenu.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"23163c7fa7384d8812f283d08f4c96b7e1f625f5d5ba186f680a10d697147403"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060construction is Building \u0026\u0026 construction.isWonder\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/city/CityConstructions.kt, core/src/com/unciv/logic/city/managers/CityTurnManager.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/CityConstructions.kt"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c93c6cd1f0b8b3718a325d84c0e26b8518ca6a8742b177f1ead7931c8ddb5a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060diploManager.hasFlag(DiplomacyFlags.WaryOf) \u0026\u0026 diploManager.getFlag(DiplomacyFlags.WaryOf) \u003C 0\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/automation/civilization/DeclareWarPlanEvaluator.kt, core/src/com/unciv/logic/automation/unit/UnitAutomation.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/DeclareWarPlanEvaluator.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd5a5a805fae3044f279c06c8f08a763b3bcc6f72d381fbdb01ea6ce8fbd3a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060friendNameTextField.text.isEmpty() \u0026\u0026 friend.name.isNotEmpty()\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/ui/screens/multiplayerscreens/AddFriendScreen.kt, core/src/com/unciv/ui/screens/multiplayerscreens/EditFriendScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/multiplayerscreens/AddFriendScreen.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba82e225564dbaed5a9f9b75250a4515086c25b8ac5d85f8ea65cce68e829bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060innerException.cause != null \u0026\u0026 innerException.cause !== innerException\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/ui/images/AtlasPreview.kt, desktop/src/com/unciv/app/desktop/ImagePacker.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/images/AtlasPreview.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d0d7858c92dcd205965e4256d30fec7faf12b374f2d2143cab6e3f7ab30d5b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it == tile.baseTerrain || tile.terrainFeatures.contains(it)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/map/tile/TileNormalizer.kt, core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/tile/TileNormalizer.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a04bef38ee6eee11a6db59ff3d6c67dee8b937bcc21762242c57cf2a254cdc0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.cityConstructions.containsBuildingOrEquivalent(building) \u0026\u0026 it.matchesFilter(cityFilter)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/models/ruleset/Building.kt, core/src/com/unciv/models/ruleset/unit/BaseUnit.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bfe6c83a45f4dedd5aa6044c5f9eaa659e6fd7da8bb5a8a65dea25b1d47724"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.getModifiers(trigger).any(triggerFilter) \u0026\u0026 it.conditionalsApply(gameContext)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/city/City.kt, core/src/com/unciv/logic/civilization/Civilization.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/City.kt"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"a444fd3a2cf2f43a23a73da374c19b3d23fb89bd98483d0fff77b074fb6d846e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.isCityCenter() \u0026\u0026 it.getCity()!!.owningCiv().isAtWarWith(civ)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/automation/civilization/ThreatManager.kt, core/src/com/unciv/logic/automation/unit/UnitAutomation.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/ThreatManager.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"70eedaee4cdb93beade25a237730ca1f2fc09f2787ebd15941dddd8033e8d8a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.isMajorCiv \u0026\u0026 !it.hasUnique(UniqueType.WillNotBeChosenForNewGames)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/GameStarter.kt, core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/GameStarter.kt"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"7738f80cd4bc05a3b2f68a42d999f10ea0a4af385d1f9bfb088f21e5cd121746"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.matchesFilter(cityFilter) \u0026\u0026 !it.isPuppet \u0026\u0026 !it.cityConstructions.containsBuildingOrEquivalent(building)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/models/ruleset/Building.kt, core/src/com/unciv/models/ruleset/unit/BaseUnit.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"29db4f8148d31eb3e41441b81b806ec2c84589b0a3936bf975f0fa47940168da"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.religionManager.religion != null \u0026\u0026 it.religionManager.religionState \u003E= ReligionState.Religion\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt, core/src/com/unciv/logic/civilization/managers/ReligionManager.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"76582fecce403096ee875e29594422a47f4793f55b9413c67e19924d98d17a9c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.type == TradeOfferType.Luxury_Resource || it.type == TradeOfferType.Strategic_Resource\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/automation/civilization/TradeAutomation.kt, core/src/com/unciv/logic/civilization/diplomacy/DiplomacyTurnManager.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/TradeAutomation.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a789da255bdbf2c0c42d0699477b914187ef74e6718cc445e6640157870b5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.type == beliefType || beliefType == BeliefType.Any\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt, core/src/com/unciv/ui/screens/pickerscreens/ReligiousBeliefsPickerScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7eab4ffb444eeb0a3aaa098f1d7450c4b6ce146b4d652d0a269302fe730202a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060jsonData.isObject \u0026\u0026 jsonData.notEmpty()\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/models/metadata/OverviewPersistableData.kt, core/src/com/unciv/ui/components/input/KeyboardBindings.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/metadata/OverviewPersistableData.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb6d419b0c4f8c11882b83f41cd0d046d4abcd1d401a6ec508d37977e116dd1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060matchesSingleFilter(filter, state) || state != null \u0026\u0026 hasTagUnique(filter, state) || state == null \u0026\u0026 hasTagUnique(filter)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/models/ruleset/Belief.kt, core/src/com/unciv/models/ruleset/tech/Technology.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Belief.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"95860daa6c978d9b4c0a3a9d7b52e539d41622c76377eb04874b1879ee4fc49b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060matchesSingleFilter(it) || state != null \u0026\u0026 hasTagUnique(it, state) || state == null \u0026\u0026 hasTagUnique(it)\u0060 appears character-identically in 3 files \u2014 core/src/com/unciv/models/ruleset/Policy.kt, core/src/com/unciv/models/ruleset/nation/Nation.kt, core/src/com/unciv/models/ruleset/tile/TileResource.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Policy.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c9d055c7e46a637319d25f9c3fb51e1d06016b681098409294a99f1b4f0b6c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060matchesSingleFilter(it, state) || state != null \u0026\u0026 hasTagUnique(it, state) || state == null \u0026\u0026 hasTagUnique(it)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/models/ruleset/Belief.kt, core/src/com/unciv/models/ruleset/tech/Technology.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Belief.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4dc1a722a4648722016f9ec5ebf068c2f3341e867ec4049dd85839666fdc5d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060otherCiv.getCapital() != null \u0026\u0026 viewingCiv.hasExplored(otherCiv.getCapital()!!.getCenterTile())\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/ui/screens/diplomacyscreen/CityStateDiplomacyTable.kt, core/src/com/unciv/ui/screens/diplomacyscreen/MajorCivDiplomacyTable.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/diplomacyscreen/CityStateDiplomacyTable.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc309cd5641cd0c66d5eb41d85aadbd81c2145b491530c0e8e5df73c64af67a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060otherCiv.isBarbarian || civInfo.isBarbarian\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/civilization/diplomacy/DiplomacyFunctions.kt, core/src/com/unciv/logic/civilization/transients/CapitalConnectionsFinder.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyFunctions.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc80fded105e539d148fc7864dcf89a45375b6b68a71e22d814b57b32337bcb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060religion != null \u0026\u0026 religion == otherCiv.religionManager.religion?.name\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt, core/src/com/unciv/logic/civilization/diplomacy/DiplomacyTurnManager.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"97645d6a443b14be159181a7e0443c208f83a57c8c4853416ca8b16128cc89db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile.latitude == 0 \u0026\u0026 tile.longitude == 0\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt, core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"090d073733638b60438f1ba0908d32d924b7e0788993c7645a3ab21ca2499f76"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tileMap.mapParameters.shape == MapShape.hexagonal || tileMap.mapParameters.shape == MapShape.flatEarth\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt, core/src/com/unciv/logic/map/mapgenerator/mapregions/MapRegions.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb62cfbbda225f5a406f7c3fa3601f047015569dfd9ade6b0306fe8e8cfc392f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060to.hasRoadConnection(civ, false) || to.hasRailroadConnection(false)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/map/MapPathing.kt, core/src/com/unciv/logic/map/pathingmap/PathingMap.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/MapPathing.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"43aa15a22685af2b7858935cce615e07cf0f6c062190a1b59f12da280c5515d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060unique.getModifiers(trigger).any(triggerFilter) \u0026\u0026 unique.conditionalsApply(gameContext)\u0060 appears character-identically in 3 files \u2014 core/src/com/unciv/logic/city/City.kt, core/src/com/unciv/logic/civilization/Civilization.kt, core/src/com/unciv/models/ruleset/unique/UniqueMap.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/city/City.kt"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44ded9b2f440c8428a10c29620fe5960b28708c65e1aca6c0d9f23b45fffd2c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060unique.hasTriggerConditional() || !unique.conditionalsApply(civInfo.state)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/civilization/managers/ReligionManager.kt, core/src/com/unciv/logic/civilization/managers/TechManager.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/managers/ReligionManager.kt"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"802dd584ea32653075e5893efe9bf35993aba6b38ae75cee4de968b4279eb357"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060unique.sourceObjectType != UniqueTarget.Building \u0026\u0026 unique.sourceObjectType != UniqueTarget.Wonder\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/logic/civilization/transients/CivInfoStatsForNextTurn.kt, core/src/com/unciv/logic/civilization/transients/CivInfoTransientCache.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/civilization/transients/CivInfoStatsForNextTurn.kt"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"d821700c0ae052c6e31317ada6ee53c384489548ebbc133f621a8c52de27147d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060uniqueTo != null \u0026\u0026 !civ.matchesFilter(uniqueTo!!, stateForConditionals)\u0060 appears character-identically in 2 files \u2014 core/src/com/unciv/models/ruleset/Building.kt, core/src/com/unciv/models/ruleset/unit/BaseUnit.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/models/ruleset/Building.kt"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f30115c6481ae805065f50f98ca0f1c288d0e12d0f1fd6dd9bce1a55e32565"}},{"ruleId":"X13","level":"warning","message":{"text":"Redirected process stream is never drained (deadlock): The JDK pipes both \u0060stdout\u0060 and \u0060stderr\u0060 of a child started this way \u2014 no \u0060redirectErrorStream\u0060, \u0060redirectError\u0060, \u0060redirectOutput\u0060 or \u0060inheritIO\u0060 is set \u2014 and here \u0060process.inputStream\u0060 (stdout) is read while the child\u0027s end is awaited, but nothing in this scope ever reads \u0060process.errorStream\u0060 (stderr). The JDK\u0027s own \u0060Process\u0060 documentation warns that failing to read a child\u0027s output promptly \u0022may cause the process to block, or even deadlock\u0022: once the child writes more than the pipe holds to stderr (measured on OpenJDK 25 / Linux: 60,000 bytes finishes, 70,000 hangs forever), it blocks on the write, never exits, and the \u0060waitFor\u0060 or end of stream this code waits on never comes. Nothing fails loudly: the thread hangs and the stuck child holds its resources until something kills it. Read both streams (a coroutine or thread per stream), merge them with \u0060redirectErrorStream(true)\u0060 before \u0060start()\u0060, or discard the unwanted one with \u0060redirectError(ProcessBuilder.Redirect.DISCARD)\u0060 (or \u0060redirectOutput\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/SystemUtils.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d89b3f28587c60d1e9c028be341c0e5b3634832dda7c9c6a54a91127d8b01cd"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: \u0060gameDetails.keys\u0060 is a live view over \u0060gameDetails\u0060 and shares its modification count; it is walked by the loop on line 238, and line 240 calls \u0060gameDetails.remove\u0060 on \u0060gameDetails\u0060 inside the loop body \u2014 a structural change to a \u0060LinkedHashMap\u0060. The loop\u0027s hidden iterator is fail-fast, so its next \u0060next()\u0060 throws \u0060ConcurrentModificationException\u0060: every pass that reaches this call ends the loop by exception instead of by running out of elements, and the remaining elements are never seen."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/apiv2/ApiV2.kt"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b23b8976ba21554f94046b9d98dc15520599edac25ec5b5eb96c65f8de677d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/com/unciv/app/server/UncivServer.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e71d52c0a1b3247828a6628433c8df13349a2064ae516a592b852581cf1b1e7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/com/unciv/app/server/UncivServer.kt"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7cbd2a623dc5c7e1a93214b16f1ea8896a8aaa0bd62c4de917412ac563fd7c7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/DesktopGame.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e94bfdc8c2c53a68846771e306711fc37f5928f61834537a56c91faa75aea3f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/DesktopLauncher.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00f4c3c0bf9685a293da80f760f77193e70296ad473e776440da02822e6efcc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/SystemUtils.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74e8bd2dc9cced85c520208a285676a5a663f2d5d9fcd970eec16bc678b27ec"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/SystemUtils.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c6d1314896050e820ff72e6a9be5e86d805f201b3c84df3846a7b925556ffb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/SystemUtils.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc378704c236bc8e9c68105bb10870410d68f1e24bbe748129eb8af4d7feef9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/SystemUtils.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e17a6398726152fd0db26e9a404cf60de732c54235ce3d2d865546e0aa5506"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/utils/StringExtensions.kt"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"555015e4e2b2e875f785823590b9109ae577f7d1c3a5a8bbd0e2aaddcaff70d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/savescreens/LoadOrSaveScreen.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e880bc1a37b2d6516bfc5c7eb639d70fe87fcf7c78498db21aae6137316eaa32"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/savescreens/LoadOrSaveScreen.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ba31c13af32b0ada641392da26ab80526148fb9411cb52b73287fa6788bebb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/savescreens/LoadOrSaveScreen.kt"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7516de22f70dac0ab1aad4964cf6021d0d9b42da99087f93c4f2957f4b1ffef7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/newgamescreen/MapFileSelectTable.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a23f69a886a08ea3a51660ad2479f39a3db332ae25d226e3b66776a44f89eed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (ex: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/newgamescreen/NewGameScreen.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6879ad154fe019d1494e1c57e5aa690b29587b8afe0b7c01e059100e04e99b4d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/screens/newgamescreen/NewGameScreen.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a674ca05a95b64703b8d11937fcfe89521ae70263a7ded29d29cc0ca36ab01"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/fonts/FontRulesetIcons.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5d35b6fe330b56229c331b02ede5d6538cd12738417f92e018649d4269d724"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/components/fonts/FontRulesetIcons.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bffa2c3cecf852fe356183f6772c556213ec3cfe0fa162d113e47fc2a51b61"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/ui/audio/MusicTrackController.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a4fee0f596ef6644c63f85776ad3fc3c0e98f3a3b044716265d9f1beac325f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/UncivKtor.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"763fac6a71d9ee0e7164e9ba1f6eadf78ec39139d62555c15bb2a00609231e30"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (ex: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/multiplayer/Multiplayer.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fff7647daedb76d9f170e17aa8597b413f3bfc731877db47256a70011a39d8d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/TileMap.kt"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"548ec7323405af55daf93bf6b8707a2846d7408d1fa88e5d45e7c0641f30a5ce"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/map/mapgenerator/MapLandmassGenerator.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67b63a06d69701ff354a43789b4f4ae22a4058428062631884dc40dcbbcdf61"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/github/Github.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"315ff968c96a84f711b4957fef7153df0ba838f8e5524f7b411fc30735ab7154"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/files/MapSaver.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb3e8a9b8e0e0ead41188b58a1faf934abd36062f1982724c2465ddb7419e22"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/com/unciv/logic/files/UncivFiles.kt"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf9df51f3d8aca7090418efbf88b955ef884bbc371568659d79fb682b56522e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/com/unciv/app/AndroidLauncher.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"22463f08358ecbad88eed601d3dfdf0ce0facbf3448856325bb2dfc06f070906"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/com/unciv/app/AndroidLogBackend.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9056b16d1db586982f30d62653fca40a4725ac7955b8cffaf08c4d9d9f318071"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/com/unciv/app/AndroidLogBackend.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1450082ccf387980287a9be8c9a660cdfb321a33ca749a3b0d2a1f704a8896aa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/com/unciv/app/AndroidLogBackend.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9e1b2bd2b76bec3c4d82750927273c64995d3fe34868714238bd9bdbd2079f"}},{"ruleId":"X5","level":"note","message":{"text":"Not-null assertions (\u0060!!\u0060) override null safety: ~10.3 \u0060!!\u0060 not-null assertions per 1k Kotlin product lines \u2014 1490 across the 144024 line(s) of the 718 Kotlin file(s) read (generated, test and sample code not counted). Densest: core/src/com/unciv/logic/simulation/Simulation.kt (82), core/src/com/unciv/logic/civilization/diplomacy/CityStateFunctions.kt (43), core/src/com/unciv/logic/automation/civilization/DiplomacyAutomation.kt (37). Each one tells the compiler to trust the author about null and becomes a \u0060NullPointerException\u0060 the first time the author is wrong. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3ce0e76a36774b1cbb2ede64da71daf948ff69b7883191b635533af629445543"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getWinVer\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/SystemUtils.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9a565fe2b3117280d9b6683c58e8e3c9aaccb7b02d7560bbe239a71c4cbe81"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getLinuxDistro\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"desktop/src/com/unciv/app/desktop/SystemUtils.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2705cc77ddd2448586e8d5b95bf67252bbb66dbb29342046c76974574f79bc39"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.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-269","guid":"70e1f5f6-81e5-4e5a-ba40-b541c3a346e2","name":"Improper Privilege Management","shortDescription":{"text":"Improper Privilege Management"},"helpUri":"https://cwe.mitre.org/data/definitions/269.html"},{"id":"CWE-321","guid":"0ce564a5-a44c-3358-b3db-317712e6e019","name":"Use of Hard-coded Cryptographic Key","shortDescription":{"text":"Use of Hard-coded Cryptographic Key"},"helpUri":"https://cwe.mitre.org/data/definitions/321.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"Improper Export of Android Application Components","shortDescription":{"text":"Improper Export of Android Application Components"},"helpUri":"https://cwe.mitre.org/data/definitions/926.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"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/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":129,"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."]}]}