{"$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":"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":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","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-1059"],"owasp":"A02: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":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"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":"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":"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":"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":"ImageLoader.queryAndSetView (cyclomatic 31): ImageLoader.queryAndSetView 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":"app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea109574c917e41276163c30c66158a66502e92f59bb8666d9c228359600a366"}},{"ruleId":"D1","level":"warning","message":{"text":"BlurOverlayView.onTouchEvent (cyclomatic 26): BlurOverlayView.onTouchEvent 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":"app/src/main/java/fr/free/nrw/commons/edit/BlurOverlayView.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0224ed8c9d8fbb4a6c9876dd87530c070be06551f26df564df80c55063d87d0"}},{"ruleId":"D1","level":"warning","message":{"text":"NearbyParentFragment.filterMarkersByLabels (cyclomatic 21): NearbyParentFragment.filterMarkersByLabels 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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":2353}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc73befe6a9e22fb0ae1d2fbe282a932b4fdd25a9785e5fc0bf5a79329afee2"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaDetailPagerFragment.onOptionsItemSelected (cyclomatic 17): MediaDetailPagerFragment.onOptionsItemSelected 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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e89cb31b62fff8421e932d57e387482b970ba838573de09e4eda474a350837"}},{"ruleId":"D1","level":"warning","message":{"text":"NearbyParentFragment.onViewCreated (cyclomatic 17): NearbyParentFragment.onViewCreated 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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"627e89afe355da541bfe8ea30a4de17e141605a06db4bbcb9d30d9fb0f0c2b5e"}},{"ruleId":"D1","level":"warning","message":{"text":"BlurOverlayView.onDraw (cyclomatic 16): BlurOverlayView.onDraw 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":"app/src/main/java/fr/free/nrw/commons/edit/BlurOverlayView.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"172a24e0b6018aa5b126f14abe523d3daf2a0691b22faef4fe2fce0d06724209"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageLoader.queryAndSetView (cognitive 46): ImageLoader.queryAndSetView has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (27 pts), match/switch 5 (13 pts), boolean chains 4, loops 1 (2 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":"app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e974aa270a8e4fa8cb31f2dd78902ee20d0947b7410c64ac166e0b9cc951b1"}},{"ruleId":"D2","level":"warning","message":{"text":"BlurOverlayView.onTouchEvent (cognitive 44): BlurOverlayView.onTouchEvent has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (39 pts), boolean chains 2, loops 1 (2 pts), match/switch 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":"app/src/main/java/fr/free/nrw/commons/edit/BlurOverlayView.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd3fbaa762a6ec3bf7451007d26144ba463b5f3b1039447f5cf090547ae9ce6"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadProgressActivity.updateMenuItems (cognitive 38): UploadProgressActivity.updateMenuItems has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (38 pts) (nesting depth added 26). 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":"app/src/main/java/fr/free/nrw/commons/upload/UploadProgressActivity.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74698bdcf7d80663a12026dcb5edd1adf61f9d9a102d7ef559a980d33d46d9f"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaDetailPagerFragment.onCreateOptionsMenu (cognitive 37): MediaDetailPagerFragment.onCreateOptionsMenu has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (26 pts), error handling 1 (5 pts), match/switch 1 (5 pts), boolean chains 1 (nesting depth added 24). 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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82266fe2413be04a8329050c601d0bf5ad802c3693324137a6a6f8a9f8d1149"}},{"ruleId":"D2","level":"warning","message":{"text":"NearbyParentFragment.filterMarkersByLabels (cognitive 31): NearbyParentFragment.filterMarkersByLabels has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 8, loops 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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":2353}}}],"partialFingerprints":{"codehealthFindingId/v1":"011a5cb4ee3d862545f74fde627afaa6c5268d8c0a2423f8a9378e44575f231a"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadMediaDetailAdapter.updateAddButtonVisibility (cognitive 30): UploadMediaDetailAdapter.updateAddButtonVisibility has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (29 pts), 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":"app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"33967b2462964dec70530c84039a73535b64ef7215c67ca9e7522499cbb2c458"}},{"ruleId":"D2","level":"warning","message":{"text":"NearbyController.loadAttractionsFromLocation (cognitive 29): NearbyController.loadAttractionsFromLocation has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 1 (3 pts), boolean chains 1 (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. This shape REPEATS in the file: one other method here (NearbyController.loadAttractionsFromLocation) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"052227ef85897c0cf90a20b256b14449463b58a283509e0ff8fd3845a56a6286"}},{"ruleId":"D2","level":"warning","message":{"text":"NearbyController.loadAttractionsFromLocation (cognitive 29): NearbyController.loadAttractionsFromLocation has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 1 (3 pts), boolean chains 1 (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. This shape REPEATS in the file: one other method here (NearbyController.loadAttractionsFromLocation) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4970f41a45b4627d07ba3fa48a603709c0e6f47110108e6d4952f9f1f593b5"}},{"ruleId":"D2","level":"warning","message":{"text":"NearbyParentFragment.onViewCreated (cognitive 24): NearbyParentFragment.onViewCreated has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19 (21 pts), error handling 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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"48efb22bde6f588c798ae7d69c76e1c72e18c3aa923e5c08017f742d12bc9429"}},{"ruleId":"D2","level":"warning","message":{"text":"NearbyPlaces.getFromWikidataQuery (cognitive 24): NearbyPlaces.getFromWikidataQuery has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 3 (6 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":"app/src/main/java/fr/free/nrw/commons/nearby/NearbyPlaces.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f74425ff2534c073cf2d9474ad1decd7f8bcf2e55728f3bdf72b06a35dac423"}},{"ruleId":"D2","level":"warning","message":{"text":"OkHttpJsonApiClient.getNearbyPlaces (cognitive 23): OkHttpJsonApiClient.getNearbyPlaces has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2 (4 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":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e96677064badc1f96665059b126c65bb149497dfa9327b02cf008a96f4d6168"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadWorker.uploadContribution (cognitive 23): UploadWorker.uploadContribution has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 3 (5 pts), boolean chains 2, 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":"app/src/main/java/fr/free/nrw/commons/upload/worker/UploadWorker.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df0c336a3d34e4ebc2a694e41e4d944a6131a52c4b40424991ffda99a27f1bf"}},{"ruleId":"D2","level":"warning","message":{"text":"RandomAccessFileExifWriter.scanAndUpdateIfd (cognitive 21): RandomAccessFileExifWriter.scanAndUpdateIfd has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 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":"app/src/main/java/fr/free/nrw/commons/utils/RandomAccessFileExifWriter.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0b56ab36a8c0bd0e94200c37d182a7c3438f38f321e118ad3c938bfb6de399"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewHolder.initLanguage (cognitive 20): ViewHolder.initLanguage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (20 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":"app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6dbeecf283a4d6bc3ab64831070a3888673ac451955ac934718e4fa3f19744"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadModel.onDepictItemClicked (cognitive 20): UploadModel.onDepictItemClicked has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (20 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":"app/src/main/java/fr/free/nrw/commons/upload/UploadModel.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"920e396728ccdd0e88a6e891b56824259cea1c1ac011727973146f6e97326b8f"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadActivity.onRequestPermissionsResult (cognitive 19): UploadActivity.onRequestPermissionsResult has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (3 pts) (nesting depth added 12). 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":"app/src/main/java/fr/free/nrw/commons/upload/UploadActivity.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd4e9a756742e65cbc4f7204fcff8604bab79e6cfdf45993d4e1279fb48e52e"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageLoader.nextActionableImage (cognitive 18): ImageLoader.nextActionableImage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), 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":"app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"6833b6cc282eea19c3ba9f862b62b0b6c2583c8fb1e938740034a21ac63a9770"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaDetailFragmentKt.FileUsagesContainer (cognitive 18): MediaDetailFragmentKt.FileUsagesContainer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2 (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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"db46dad916e65bd1dbd80f97ff314990046fd672ff75f315e05244f9b3620bde"}},{"ruleId":"D2","level":"warning","message":{"text":"LoginClient.login (cognitive 17): LoginClient.login has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 1 (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":"app/src/main/java/fr/free/nrw/commons/auth/login/LoginClient.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d233e5a61837778975fbec403894c96d1ffc7808ffa0d8c1e668631a5d9d346e"}},{"ruleId":"D2","level":"warning","message":{"text":"GestureListener.onFling (cognitive 17): GestureListener.onFling has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, error handling 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":"app/src/main/java/fr/free/nrw/commons/customselector/helper/OnSwipeTouchListener.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e431a657400a8590b3e5b5a8657351259708ecf66356d802d41c317819f77d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageAdapter.onBindViewHolder (cognitive 17): ImageAdapter.onBindViewHolder 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":"app/src/main/java/fr/free/nrw/commons/customselector/ui/adapter/ImageAdapter.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b81fa21ff0311165890646cfe5008c308109536bb9e31c117e61507ccfad01d"}},{"ruleId":"D2","level":"warning","message":{"text":"BlurOverlayView.onDraw (cognitive 17): BlurOverlayView.onDraw has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 2 (4 pts), loops 3 (nesting depth added 2). 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":"app/src/main/java/fr/free/nrw/commons/edit/BlurOverlayView.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dfb23f30bc8b6bf1f3749e33f0bb80fe9421cbd8fe9aaff43234ca69398e4f6"}},{"ruleId":"D2","level":"warning","message":{"text":"NearbyParentFragment.getIconFor (cognitive 17): NearbyParentFragment.getIconFor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":2442}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfd95b26853ff13c32d7b6f65a816b5e402ce0201d07a0404724054cad8b487"}},{"ruleId":"D2","level":"warning","message":{"text":"RandomAccessFileExifWriter.writeTagsInternal (cognitive 17): RandomAccessFileExifWriter.writeTagsInternal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, error handling 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":"app/src/main/java/fr/free/nrw/commons/utils/RandomAccessFileExifWriter.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9fb1f19c7a73b14a8c59b8e92e666fae36d06329ed6e25f91d2811559f7684"}},{"ruleId":"D2","level":"warning","message":{"text":"ExploreMapViewportHelper.recenterMap (cognitive 16): ExploreMapViewportHelper.recenterMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 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":"app/src/main/java/fr/free/nrw/commons/explore/map/ExploreMapViewportHelper.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"386636a05cce1ece88b41808873a7008a0bba3b6f9c24b2d8857626d65393b76"}},{"ruleId":"D2","level":"warning","message":{"text":"NearbyPlaceDetailsLoader.fetchPlacesThreadMethod (cognitive 16): NearbyPlaceDetailsLoader.fetchPlacesThreadMethod has cognitive complexity 16 (threshold 15). Drivers by points: error handling 4 (12 pts), loops 2 (4 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":"app/src/main/java/fr/free/nrw/commons/nearby/presenter/NearbyPlaceDetailsLoader.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40e7143a2ca091e7f90ed346774a8bcadfabd618e815f749433d79e34f6e0c5"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadReceiver.getFailedDownload (cognitive 16): DownloadReceiver.getFailedDownload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 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":"app/src/main/java/fr/free/nrw/commons/utils/DownloadReceiver.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"39826b613f39e7915d67aca683dfbc354e64d3824192947b07b2e92b51ab4b8a"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageUtils.checkIfImageIsDark (cognitive 16): ImageUtils.checkIfImageIsDark has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 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":"app/src/main/java/fr/free/nrw/commons/utils/ImageUtils.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd0d18088713c29d3d22c773e1057793a9677e683a62a2a61efae28b5bd65aa"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageUtils.getErrorMessageForResult (cognitive 16): ImageUtils.getErrorMessageForResult has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (16 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":"app/src/main/java/fr/free/nrw/commons/utils/ImageUtils.kt"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfb3d2766665c5dae216f9c2afa1c5fc4228c583b35e4012400713f5653da14"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NearbyParentFragment: ClassTooLong \u2014 2179 significant lines (blank, comment-only and punctuation-only lines excluded), 133 methods. The bar is 400 significant lines; this is 1779 over it, 5.45\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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"baeaf8a1aab1978ef992c6c69cbe813a33e37c6938d639997346a398981ee5b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fragments/NearbyParentFragment.kt: FileTooLong \u2014 2331 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: NearbyParentFragment (155-3553). The bar is 500 significant lines; this is 1831 over it, 4.66\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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"360e9270a69a12fea593308fd7eef7fb0f78a5718ce1962ae718629e4d52e38b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NearbyParentFragment: TooManyMethods \u2014 133 methods. The bar is 30 methods; this is 103 over it, 4.43\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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"25183cfcd0c25a599b9797149aafaa19772e33767addbb2a957d0a3b0a5a1503"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultZoomableController: 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":"app/src/main/java/fr/free/nrw/commons/media/zoomControllers/zoomable/DefaultZoomableController.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc2aeb716ad79428632f3f6945e451472a28800ccf1404a6691832261ac3cab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NearbyParentFragment.onViewCreated: MethodTooLong \u2014 onViewCreated runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6158abc84efef65b6e7cd56a8f8b6b986ef1966681eb7713bb43f57f005903"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NearbyParentFragment.passInfoToSheet: MethodTooLong \u2014 passInfoToSheet runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":2716}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6141e3202eb1cb3daad527dab021092fd45103db1fddee3f7f60003aa013de6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BlurOverlayView.onTouchEvent: MethodTooLong \u2014 onTouchEvent runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"app/src/main/java/fr/free/nrw/commons/edit/BlurOverlayView.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"be172c935aeecc5f80a7d863b3bcc6687ffd4bab88a5978c9500492354b4e048"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FragmentBuilderModule: 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":"app/src/main/java/fr/free/nrw/commons/di/FragmentBuilderModule.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2dec52b21cc6edbe053bfd5a87dede4cae60561a74d67712c2e24270e6629a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ZoomableDraweeView: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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":"app/src/main/java/fr/free/nrw/commons/media/zoomControllers/zoomable/ZoomableDraweeView.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c2895c21177746e65febf2e11bc193d38155edafe171491f375a3979fc0920"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MediaDetailFragment.onCreateView: MethodTooLong \u2014 onCreateView runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30146d14d312dab2f718f2f9a47d3b8c6c6f43024430f5c57341702503658aa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NetworkingModule: 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":"app/src/main/java/fr/free/nrw/commons/di/NetworkingModule.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ef5c1663f4d8f69c20346a4511e5ede8828b52d9aa569dff960edf3993709e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LoginActivity: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dff70f12b5a8418705075f8e8aca6fab2f1d855f722672000e5e3d28af751c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ViewHolder.initLanguage: MethodTooLong \u2014 initLanguage 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":"app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fac60285c7857ead7c62ce9f9a78408e5c1d58f4777f16d56194a8734e2430"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CommonsApplicationModule: 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":"app/src/main/java/fr/free/nrw/commons/di/CommonsApplicationModule.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd42d5bacc369ecb4cbcc36dbac9bf334785abaf4d2df04e5087bfe52c939723"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UploadWorker.uploadContribution: MethodTooLong \u2014 uploadContribution runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"app/src/main/java/fr/free/nrw/commons/upload/worker/UploadWorker.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e08c848874f41e4510899f75dd6eb549d02624db2b49ed5ed6ceaf9afe2ee9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ZoomableActivity: ClassTooLong \u2014 441 significant lines (blank, comment-only and punctuation-only lines excluded), 17 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":"app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef960cc1a7974caa0db91f605f79a73a977f64d9f05e089cfb75f713195e73e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MediaDetailFragmentKt.FileUsagesContainer: MethodTooLong \u2014 FileUsagesContainer runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcec5e9fa79c0a53999212ec2d2d42fbb93faa9b157a536932e0c63be764bba2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MediaDetailPagerFragment.onCreateOptionsMenu: MethodTooLong \u2014 onCreateOptionsMenu runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0b1a931dd90e97d6249165268b10c25b872d7382d37bf607d607538138b588"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsFragment.onCreatePreferences: MethodTooLong \u2014 onCreatePreferences runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\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":"app/src/main/java/fr/free/nrw/commons/settings/SettingsFragment.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b3f832687082164a9a2cbc243ea08964d764aaa3da47e2ebe8777814255f61"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageLoader.queryAndSetView: MethodTooLong \u2014 queryAndSetView 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":"app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e576be775107d0ee64cee2e50304c94d36bb79f534dfe519f62f0c4fbe8b143"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: media/MediaDetailFragment.kt: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: MediaDetailFragment (84-592). The bar is 500 significant lines; this is 30 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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d271e398cffabf58a5b2a829f4690d24745904ef2dc5755e90053f7824a112"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DepictsFragment: 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":"app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsFragment.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6cbe04951cb87c69068429509b5b3ad0e4910e8de718795dce5296a92c4631"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UploadMediaDetailAdapter: ClassTooLong \u2014 404 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 4 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":"app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d14d3e014d5408dbf1aa2a7f71a5f5a659b30be3b9a57f04c0fafbb36d1e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:192-230 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:236-324 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:447-470 | app/src/main/java/fr/free/nrw/commons/mwapi/WikidataQueryClient.kt:72-108 | app/src/main/java/fr/free/nrw/commons/mwapi/WikidataQueryClient.kt:117-174 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"263e792c6d9e380e368027bbda3ac3d77205cc4b7ebaca183052ec2214cb3d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java:53-120 | app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java:191-258 \u2014 These two members are one piece of code written twice and then edited apart: 68 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":"app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"77de41eaf093a69c54be58390e26ae86f8676005a367736e09cde4adfa2cba7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): app/src/main/java/fr/free/nrw/commons/utils/EdgeToEdgeUtils.kt:29-83 | app/src/main/java/fr/free/nrw/commons/utils/EdgeToEdgeUtils.kt:99-151 \u2014 These two members are one piece of code written twice and then edited apart: 53 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":"app/src/main/java/fr/free/nrw/commons/utils/EdgeToEdgeUtils.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"da598759969bfedd9fb0e38ed89378e5a5ab467481630aebb8ac5411f84f635b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt:312-377 | app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt:382-450 \u2014 These two members are one piece of code written twice and then edited apart: 66 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":"app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b2be92edf7c5dce63677cd367fba0bcf252ad0bfc416322c36f17579c3762d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1680-1726 | app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1728-1774 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51d15f2ce0103b41868278abb25161287fc3d5cdbb1b5544955532edb30fcc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1925-1973 | app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1981-2037 \u2014 These two members are one piece of code written twice and then edited apart: 49 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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"0199929745146f69ecde45ab3d01604ab6c33769908bbd0d83dcfb638f3ad0f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): app/src/main/java/fr/free/nrw/commons/bookmarks/BookmarkListNavigator.kt:29-62 | app/src/main/java/fr/free/nrw/commons/explore/ExploreMediaRootFragment.kt:48-80 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"app/src/main/java/fr/free/nrw/commons/bookmarks/BookmarkListNavigator.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3450b506f8d99be90a5557c950599d719e30309e62cb9659b6e963af6ecd104e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:327-378 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:381-429 \u2014 These two members are one piece of code written twice and then edited apart: 49 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":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ccde691af7bb7822d29488e3b0da7692f247444170b9fb8546a9883b27e5cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): app/src/main/java/fr/free/nrw/commons/category/CategoryEditHelper.kt:100-139 | app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictEditHelper.kt:93-127 \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":"app/src/main/java/fr/free/nrw/commons/category/CategoryEditHelper.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"be309b377c1d6404ffbf954f150abf5b414c91eecf688ecff2e23a8b244af929"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/MediaDetailCaptionEditor.kt:93-126 | app/src/main/java/fr/free/nrw/commons/media/MediaDetailCaptionEditor.kt:133-166 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailCaptionEditor.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebda9a74d7c4b26405cdb0a8185df69f272916e26fff5e0e5a1360c7037177a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:90-118 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:126-156 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:158-185 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"757894fb50d6049c8091820fe3bcc049792156132a3c15dcdb491aaf313016f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt:455-487 | app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt:492-524 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa25fb448b1efe580dfddfc69c17565be98df8b65dbeebc3ca9f4dbb2de15bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): app/src/main/java/fr/free/nrw/commons/profile/leaderboard/DataSourceClass.kt:31-53 | app/src/main/java/fr/free/nrw/commons/profile/leaderboard/DataSourceClass.kt:63-85 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"app/src/main/java/fr/free/nrw/commons/profile/leaderboard/DataSourceClass.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"10bc07a4d719aa5ff926edebd7c76667736d222e62480ad618058f128e9a2d66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/MediaDetailActions.kt:102-145 | app/src/main/java/fr/free/nrw/commons/review/ReviewController.kt:173-208 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailActions.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fe232278fa25942c9ba56b236634ad66e7e55836a05d632e9d53316699572f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): app/src/main/java/fr/free/nrw/commons/upload/FailedUploadsFragment.kt:142-164 | app/src/main/java/fr/free/nrw/commons/upload/FailedUploadsFragment.kt:169-189 \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":"app/src/main/java/fr/free/nrw/commons/upload/FailedUploadsFragment.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"2599e9c1803b696ff4db6f07f568b019d99bc44ab010d2b9000f6c1131166dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesAdapter.kt:38-65 | app/src/main/java/fr/free/nrw/commons/upload/LanguagesAdapter.kt:63-90 \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":"app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesAdapter.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd1e20a3b3e1a32db3c5594f1cc89c8f9eaa62b60e0efdf2404f81c9fe55827"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsFragment.kt:119-137 | app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsFragment.kt:157-180 \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":"app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsFragment.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2cf2ba5f76963f089130016afc86636b96bb3f287d3419ad07730e72a1d008"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/zoomControllers/gestures/GestureTransform.kt:32-42 | app/src/main/java/fr/free/nrw/commons/media/zoomControllers/gestures/GestureTransform.kt:46-56 \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":"app/src/main/java/fr/free/nrw/commons/media/zoomControllers/gestures/GestureTransform.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a52cb0c32823d9ef2a3254d2eed0735670b6ea63b4fa06ffe163aa63fd435b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/fr/free/nrw/commons/utils/RandomAccessFileExifWriter.kt:122-137 | app/src/main/java/fr/free/nrw/commons/utils/RandomAccessFileExifWriter.kt:158-171 \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":"app/src/main/java/fr/free/nrw/commons/utils/RandomAccessFileExifWriter.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e845a7827c571d9d0d81c1c23e10b4f4c8169245bb7aa7ec9e4e153c45bbd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/fr/free/nrw/commons/settings/SettingsFragment.kt:438-459 | app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt:522-548 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/settings/SettingsFragment.kt"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"d271a2ccddbb2b684f3cd382b5459fe275092e28d16c15de724812cbfccfd56b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.kt:62-83 | app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.kt:291-314 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c5e7b71b1d930ec1a8a58e2d7949c936f882481e8c234c9f6fd0e9fd4c831f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/MediaDetailViewModel.kt:33-63 | app/src/main/java/fr/free/nrw/commons/media/MediaDetailViewModel.kt:65-94 \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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailViewModel.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2cf607b13e86c1c5bbc2196018765c26a035d89d66f5965aa9d2dcdfc5fa2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt:33-67 | app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt:90-117 \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":"app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faf2a8b7e904b4e3200545d18b72e4fc385ea8200083a9249cd12aafa6b83e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:930-953 | app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1340-1372 \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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe70cfdcb96740fe432c96b805bc563a8a91044352dc5c735ce6f9cc64c5c8c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): app/src/main/java/fr/free/nrw/commons/category/CategoryContentProvider.kt:122-148 | app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesContentProvider.kt:145-179 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"app/src/main/java/fr/free/nrw/commons/category/CategoryContentProvider.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde06d1e25a9cff086f42c2ea7a4934f6455c18adb22a88b4e58a31d15d563a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/fr/free/nrw/commons/upload/categories/UploadCategoriesFragment.kt:157-178 | app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsFragment.kt:277-299 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/upload/categories/UploadCategoriesFragment.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f184a576538b63a48c269b88fe34b84d8dd27b3b692e867e1344928427746b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): app/src/main/java/fr/free/nrw/commons/filepicker/FilePicker.kt:73-86 | app/src/main/java/fr/free/nrw/commons/filepicker/FilePicker.kt:97-109 | app/src/main/java/fr/free/nrw/commons/filepicker/FilePicker.kt:116-129 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 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":"app/src/main/java/fr/free/nrw/commons/filepicker/FilePicker.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91561d83bd2926b430bc7f9ef1810f7c972f085f3c94201ed85595e84efca9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/MediaReportHelper.kt:70-91 | app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetLoggedOutFragment.kt:106-127 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/media/MediaReportHelper.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92a5395edd81697068158fb4b605e5266a309d4b0f28c28dcb31fc6cda3d994"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/fr/free/nrw/commons/upload/categories/CategorySearchView.kt:28-45 | app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsFragment.kt:443-457 \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":"app/src/main/java/fr/free/nrw/commons/upload/categories/CategorySearchView.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b9fff30a711372aa23c975534a5cc500ce79ae58f80c2758c056cb6a4014ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): app/src/main/java/fr/free/nrw/commons/contributions/ContributionViewHolder.kt:113-133 | app/src/main/java/fr/free/nrw/commons/explore/media/PagedMediaAdapter.kt:47-68 \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":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionViewHolder.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"af98c38c885579a710ad01e03d367360d5a72c0c7963c05bc39750169d5069d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): app/src/main/java/fr/free/nrw/commons/delete/DeleteHelper.kt:177-203 | app/src/main/java/fr/free/nrw/commons/description/DescriptionEditHelper.kt:93-117 | app/src/main/java/fr/free/nrw/commons/description/DescriptionEditHelper.kt:130-156 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 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":"app/src/main/java/fr/free/nrw/commons/delete/DeleteHelper.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b6cddb793fb57cd0b1ebaa94647b2ca7409b2798a9388b2acf39c7f5503188"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/MediaDetailDeletion.kt:162-187 | app/src/main/java/fr/free/nrw/commons/media/MediaDetailDeletion.kt:233-256 \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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailDeletion.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"999cae8300ff31f2f5074be8911a60df28f0736a1af12d579b1be2a9eebece87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/fr/free/nrw/commons/upload/mediaDetails/UploadMediaMetadataController.kt:53-75 | app/src/main/java/fr/free/nrw/commons/upload/mediaDetails/UploadMediaMetadataController.kt:80-96 \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":"app/src/main/java/fr/free/nrw/commons/upload/mediaDetails/UploadMediaMetadataController.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"585a7dfb28e0b286ecfed30323a7c02a9379d271498ce64b32dc80fb8d8f8458"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/fr/free/nrw/commons/nearby/presenter/NearbyPlaceDetailsLoader.kt:316-335 | app/src/main/java/fr/free/nrw/commons/nearby/presenter/NearbyPlaceDetailsLoader.kt:351-369 \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":"app/src/main/java/fr/free/nrw/commons/nearby/presenter/NearbyPlaceDetailsLoader.kt"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1634f4b659b984e62cadd70d360cd189d02366e10850eb75e07a1b52c72b52f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 22\u002B corresponding lines): app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesDao.kt:31-54 | app/src/main/java/fr/free/nrw/commons/category/CategoryDao.kt:56-78 | app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesDao.kt:56-77 | app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesDao.kt:117-140 | app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesDao.kt:146-170 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 22 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesDao.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6285894465276df3b12d36fa79cb188a07f7f9f2ad9cd86681f437e86639920"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/MediaDetailCategories.kt:133-150 | app/src/main/java/fr/free/nrw/commons/media/MediaDetailDepictions.kt:86-105 \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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailCategories.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eaf18563d1742ecf606867aeea6b0290e4e3be36e0c0f487f3aa72e0a8d77f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/fr/free/nrw/commons/location/LocationPermissionsHelper.kt:106-124 | app/src/main/java/fr/free/nrw/commons/location/LocationPermissionsHelper.kt:153-170 \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":"app/src/main/java/fr/free/nrw/commons/location/LocationPermissionsHelper.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecc154ed25dd2904c39194078dba414b0f966e901c2170314ca54f01169e9b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt:59-76 | app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesContentProvider.kt:59-76 \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":"app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28e8efed6117159112c56ddffdd6412cb7e908069f6fdb277e98591029a2880"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/fr/free/nrw/commons/category/CategoryContentProvider.kt:98-114 | app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesContentProvider.kt:120-135 \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":"app/src/main/java/fr/free/nrw/commons/category/CategoryContentProvider.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a396db18a801edce216d3c3f5120bf4acb043ab73eebe4736bf40677c88077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/fr/free/nrw/commons/category/CategoryDao.kt:26-48 | app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesDao.kt:36-50 \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":"app/src/main/java/fr/free/nrw/commons/category/CategoryDao.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34c32b8455af0469b2eb597316a96d583e863f4b70d70782623d7896edd9ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/fr/free/nrw/commons/language/AppLanguageLookUpTable.kt:59-70 | app/src/main/java/fr/free/nrw/commons/language/AppLanguageLookUpTable.kt:72-83 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/language/AppLanguageLookUpTable.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"05021b7e837abb38335c6350c0fe38ccb3601812a1428a6eb0f98e3be1eee3cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/MediaDetailImage.kt:149-159 | app/src/main/java/fr/free/nrw/commons/media/MediaDetailImage.kt:171-181 \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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailImage.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b717e1ca45b5c95cf4e1e29b79fec2a99d3ee2f490f6fe8513760e97523e1ebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/MediaDetailCategories.kt:88-100 | app/src/main/java/fr/free/nrw/commons/media/MediaDetailDepictions.kt:19-30 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailCategories.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b380d9121d05a88205cbc0d5f992ae8710fc81fdff293ae8db987cc2169c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/MediaResponseMapper.kt:30-44 | app/src/main/java/fr/free/nrw/commons/media/WikidataMediaClient.kt:67-80 \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":"app/src/main/java/fr/free/nrw/commons/media/MediaResponseMapper.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3377367f1d5a7e750fb8e8304b15bf0aaf6defdb599723f3493627a88f81f253"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/fr/free/nrw/commons/MediaDataExtractor.kt:27-34 | app/src/main/java/fr/free/nrw/commons/MediaDataExtractor.kt:37-44 \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":"app/src/main/java/fr/free/nrw/commons/MediaDataExtractor.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ed0dc8948273dff82244152cf6e7cc3fe60461ce2f7e7b73fda2cf17619f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): app/src/main/java/fr/free/nrw/commons/upload/worker/UploadNotificationHelper.kt:138-157 | app/src/main/java/fr/free/nrw/commons/upload/worker/UploadNotificationHelper.kt:199-222 | app/src/main/java/fr/free/nrw/commons/upload/worker/UploadNotificationHelper.kt:229-246 \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":"app/src/main/java/fr/free/nrw/commons/upload/worker/UploadNotificationHelper.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b752405e1cd6267bfc7a7379103439f4ef558421b439acf460b3ce13c6ec8b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/fr/free/nrw/commons/AboutLinkHandler.kt:20-32 | app/src/main/java/fr/free/nrw/commons/AboutLinkHandler.kt:38-50 \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":"app/src/main/java/fr/free/nrw/commons/AboutLinkHandler.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8eccfbdbd06af55b6bb7659ec410e60ee21c29fc66d404958f9216d89ef8e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 21\u002B corresponding lines): app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsDao.kt:117-140 | app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesDao.kt:114-138 | app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesDao.kt:31-51 | app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesDao.kt:105-129 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 21 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsDao.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"256df97ecf888e81e00dadcd68341735c57a7c9dbd49e62106a6f3f9e20c01de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/fr/free/nrw/commons/contributions/SetWallpaperWorker.kt:86-99 | app/src/main/java/fr/free/nrw/commons/contributions/SetWallpaperWorker.kt:105-117 \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":"app/src/main/java/fr/free/nrw/commons/contributions/SetWallpaperWorker.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6557233020c95fab7aacaf655ae6af8a76e1c00803b0968d7f8530918c672504"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt:32-43 | app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt:59-78 | app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt:92-101 | app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt:115-124 | app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt:140-149 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cce1b65fd3ed0320ae573b79e4d82c8ae68318831af3f80bc419775c71c57b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/fr/free/nrw/commons/nearby/Place.java:62-73 | app/src/main/java/fr/free/nrw/commons/nearby/Place.java:76-86 \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":"app/src/main/java/fr/free/nrw/commons/nearby/Place.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2feadcecc4cf00829c231fce5fd186c8faf371f802b0a329b6751c1602a4ef7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/fr/free/nrw/commons/wikidata/mwapi/MwQueryResult.kt:59-76 | app/src/main/java/fr/free/nrw/commons/wikidata/mwapi/MwQueryResult.kt:78-91 \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":"app/src/main/java/fr/free/nrw/commons/wikidata/mwapi/MwQueryResult.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9df2b9443847f00bae1897fbbde0701a9f6c81382f4cb87ca72e0e617e767ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/fr/free/nrw/commons/upload/license/LicenseAdapter.kt:84-93 | app/src/main/java/fr/free/nrw/commons/upload/license/LicenseAdapter.kt:98-109 \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":"app/src/main/java/fr/free/nrw/commons/upload/license/LicenseAdapter.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"383089731d93ad50c10768cbbc1af034a76e26c65734ba8b95309faed083545b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/fr/free/nrw/commons/profile/achievements/AchievementsFragment.kt:255-270 | app/src/main/java/fr/free/nrw/commons/profile/leaderboard/LeaderboardFragment.kt:262-277 \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":"app/src/main/java/fr/free/nrw/commons/profile/achievements/AchievementsFragment.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1fe32ab46e3a0f4ad2c3b9eb0cc21abaf396de268eec972a16056a53495390"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/fr/free/nrw/commons/upload/worker/UploadNotificationHelper.kt:253-270 | app/src/main/java/fr/free/nrw/commons/upload/worker/UploadNotificationHelper.kt:277-290 \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":"app/src/main/java/fr/free/nrw/commons/upload/worker/UploadNotificationHelper.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"04915687db625856fd4cba8cafaba0716b39e0e38d58ffab96975de80e940cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): app/src/main/java/fr/free/nrw/commons/description/DescriptionEditActivity.kt:143-150 | app/src/main/java/fr/free/nrw/commons/upload/mediaDetails/UploadMediaDetailView.kt:120-130 \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":"app/src/main/java/fr/free/nrw/commons/description/DescriptionEditActivity.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"7171e3269562aaac4d418fa527a4015e2f26cd1ca30d0630a3cfdc3d5359ecad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1480-1490 | app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1497-1507 \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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4f1d37b0bda6065f21003370e95ebad559e01a60cd7eec29075566e0c005c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/fr/free/nrw/commons/quiz/QuizChecker.kt:63-74 | app/src/main/java/fr/free/nrw/commons/quiz/QuizChecker.kt:96-109 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/quiz/QuizChecker.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"24cc8c7ab382873d254098e1865c125f7cc7f4e8400836dae04e30254ab6a502"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsDao.kt:101-110 | app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesDao.kt:85-98 \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":"app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsDao.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc88e9c3be2649edef03e69d75b4002bf86ce74bc23e4a4d621673927d36883d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/fr/free/nrw/commons/upload/categories/CategoryEditView.kt:72-85 | app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsFragment.kt:401-414 \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":"app/src/main/java/fr/free/nrw/commons/upload/categories/CategoryEditView.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"006f5ffa1037c10e84e1f24b89c77c182cba397a9831f5dde4dfcd419b95aa36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt:199-207 | app/src/main/java/fr/free/nrw/commons/media/MediaClient.kt:113-122 \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":"app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a03662f64792de6ff3d66bc4d321ffe012a483436861f9ed1149cd115b3f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetLoggedOutFragment.kt:129-135 | app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetNavigation.kt:30-36 \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":"app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetLoggedOutFragment.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b6db3dff4536475bc031aeaf8758d4498ee3391a18f6a9325a9c6f1023b8ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetLoggedOutFragment.kt:137-143 | app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetNavigation.kt:44-50 \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":"app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetLoggedOutFragment.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5862a0b3eefb72b427d03980e8e00b6b8b610dc3efb9db5409f4eabfa685f22c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt:98-107 | app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesContentProvider.kt:95-104 | app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesContentProvider.kt:125-134 \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":"app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56fe671b2ef6c00b8087f529b2543b2bdead40846f54c4ed8e8a68ac5f8244e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): app/src/main/java/fr/free/nrw/commons/explore/depictions/DepictsClient.kt:107-109 | app/src/main/java/fr/free/nrw/commons/upload/structure/depictions/DepictedItem.kt:117-117 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"app/src/main/java/fr/free/nrw/commons/explore/depictions/DepictsClient.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3ab2505b3aa8496b14b0da138f04ac20234c2a117aea489c51aa74ed19c32c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/src/main/java/fr/free/nrw/commons/media/MediaCollectionClient.kt:84-90 | app/src/main/java/fr/free/nrw/commons/media/WikidataMediaClient.kt:39-45 \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":"app/src/main/java/fr/free/nrw/commons/media/MediaCollectionClient.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed18bc7e11a0cbef2e13a6c6e376626d287ff9cc760d78fad76a2e56bddee62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt:613-681 | app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt:690-758 \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 \u0060app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt:613\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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"13765cb90f6d58a0ed1d7ee36b79e06a55d8d53e5ed55d8a3658411f6d67034b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt:535-573 | app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt:584-622 \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 \u0060app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt:535\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":"app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf9bc4eb6f0ec1e590a04fce42a9f3da4cd81320574bc2a17c5a2b348782cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt:132-162 | app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt:167-197 \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 \u0060app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt:132\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":"app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd4018f3628839864af20072f2ea9fdb8565a9d29a93f215676f09468668c44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt:326-354 | app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt:404-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 \u0060app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt:326\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":"app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5a1cee196514c04099c8d4163a89d82be66621238ec9c1224e68f6ba1857d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:332-357 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:392-415 \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 \u0060app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:332\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":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd25a7750414c78e8e8c7ff7de07b1bbb6ba624aa02b7b06644ae71e8b951fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1926-1951 | app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1982-2007 \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 \u0060app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1926\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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"44657b9c346b8a50971b8d783258a21d5dcb0f5fd9ec9539496df08094955459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt:398-422 | app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt:428-452 \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 \u0060app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt:428\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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f599f949e555a076723f18766cb7b4ab0770e2b4c6d45424bb4b11285719a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarksTable.kt:38-59 | app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesTable.kt:58-76 \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":"app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarksTable.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"66809b1c7bef794c9e03531c571c367eca25c9c7f9fb8e95ff0d8181ea0ddb5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.kt:64-83 | app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.kt:295-314 \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 \u0060app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.kt:64\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":"app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"558147788c979f2d41b759cb899a6e12320a70925842c7cf6f4e906c7ef92f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/bookmarks/category/BookmarkCategoriesFragment.kt:55-71 | app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt:333-349 \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 \u0060app/src/main/java/fr/free/nrw/commons/bookmarks/category/BookmarkCategoriesFragment.kt:55\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":"app/src/main/java/fr/free/nrw/commons/bookmarks/category/BookmarkCategoriesFragment.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a90eb68d9aea3f8e86945ec3c788b711d8412c3c580bed9dd6717a05b80ff99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201315 lines \u00D7 4): app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:207-217 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:297-307 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:455-463 | app/src/main/java/fr/free/nrw/commons/mwapi/WikidataQueryClient.kt:146-160 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:207\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:204\u0060 calls \u0060replace\u0060 and \u0060app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:453\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":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"344e9891be1ca58b31e7a1daf728a51674008669d44a5c49dffbd5ba3b2e608f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:931-944 | app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1341-1355 \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 \u0060app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:931\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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24d792c366f0b2929bbc26cc91248a551035093770e4833f2fb4effe2616a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/upload/SimilarImageDialogFragment.kt:43-57 | app/src/main/java/fr/free/nrw/commons/upload/SimilarImageDialogFragment.kt:60-74 \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":"app/src/main/java/fr/free/nrw/commons/upload/SimilarImageDialogFragment.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3a56eb67e95d26da90d069d523b299e3b874f6cfcf3c0ebdbf33dcc8faecc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/category/CategoryDao.kt:65-78 | app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesDao.kt:126-140 \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 \u0060app/src/main/java/fr/free/nrw/commons/category/CategoryDao.kt:65\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":"app/src/main/java/fr/free/nrw/commons/category/CategoryDao.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2baf4b036e72a9014df8b27b7da47e7dc2282b3c8a1582824bfd1fc856ba2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1713-1726 | app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1761-1774 \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 \u0060app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1713\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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa99eb8835629fd27d2385d22051bf991c462c6327251e3e25919f37ce88d2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesDao.kt:94-106 | app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesDao.kt:98-110 \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":"app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesDao.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"807953035b1ebef7d11560fed45544fde8d2c7e25c425dc40aadfac8c422ed29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1686-1698 | app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1734-1746 \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 \u0060app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt:1686\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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a1ecf890102c7b24162d7b10fab45ccd2d3ad56245161661def99ea69c74c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/contributions/ContributionViewHolder.kt:116-126 | app/src/main/java/fr/free/nrw/commons/explore/media/PagedMediaAdapter.kt:51-62 \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 \u0060app/src/main/java/fr/free/nrw/commons/contributions/ContributionViewHolder.kt:116\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":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionViewHolder.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"90772271c90bf23ad87dd9c21a24932c7391db960d966bfffd11b394bf579662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsPresenter.kt:184-195 | app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsPresenter.kt:254-265 \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 \u0060app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsPresenter.kt:184\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":"app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsPresenter.kt"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d8a90da8bf2e52a0dbf7a5dc48168cbe5c9768b452a3c3a890de8104226d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/upload/UploadProgressActivity.kt:126-137 | app/src/main/java/fr/free/nrw/commons/upload/UploadProgressActivity.kt:167-178 \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 \u0060app/src/main/java/fr/free/nrw/commons/upload/UploadProgressActivity.kt:126\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":"app/src/main/java/fr/free/nrw/commons/upload/UploadProgressActivity.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"840cb9f7a3cb6650902be2ca0b921564c6bc3591554b50a147f7bb5f51760155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/edit/CropOverlayView.kt:314-324 | app/src/main/java/fr/free/nrw/commons/edit/CropOverlayView.kt:330-340 \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 \u0060app/src/main/java/fr/free/nrw/commons/edit/CropOverlayView.kt:314\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":"app/src/main/java/fr/free/nrw/commons/edit/CropOverlayView.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"249654b4753edbc8291774fd7b14106e7c03000b24560f2a470686b9444c5e07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:204-214 | app/src/main/java/fr/free/nrw/commons/mwapi/WikidataQueryClient.kt:82-91 \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 \u0060app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:204\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":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae57d1ba6aca9173e988b2a2a504fdacd13267118dc0517191afb3be83af60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:243-253 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:284-294 \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 \u0060app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:284\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":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"55227012c213aff144f98ee31996447da3ad48ae21b6085a604a9027c366d8ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesAdapter.kt:39-49 | app/src/main/java/fr/free/nrw/commons/upload/LanguagesAdapter.kt:64-74 \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":"app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesAdapter.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"177b5fee90b71f8a0c747c007e179e46a585ea05532a54f876153fa29f42a07d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/settings/SettingsFragment.kt:405-414 | app/src/main/java/fr/free/nrw/commons/settings/SettingsFragment.kt:472-481 \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 \u0060app/src/main/java/fr/free/nrw/commons/settings/SettingsFragment.kt:405\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":"app/src/main/java/fr/free/nrw/commons/settings/SettingsFragment.kt"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b191aa9823d8a1b510a6d73d42d622b502670090a19a7486f3be36733175639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt:570-578 | app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt:598-606 \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 \u0060app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt:570\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt:566\u0060 calls \u0060updateAddButtonVisibility\u0060 and \u0060app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt:595\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":"app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"c777bd43dde32556f3532497157353c9480b0ca201818f8552cb8bf5168ef4d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt:582-590 | app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt:610-618 \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 \u0060app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt:582\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":"app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"f576bc02f2dd1df0ae68dd90beb63f4c07d83cfb4123077687b6bcc1ef91afa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:100-107 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:137-144 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:166-172 \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 \u0060app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:100\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":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c7db9ac40b1176b02182b604d46eefb77c5e8fd3b1faed272a13d510d952f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:218-223 | app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:308-313 | app/src/main/java/fr/free/nrw/commons/mwapi/WikidataQueryClient.kt:95-100 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt:218\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":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e1db4abb6a3f9c16d65580df1e03e5ad4b7ecd5d6f99dd93742351158b171d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/MediaDataExtractor.kt:29-34 | app/src/main/java/fr/free/nrw/commons/MediaDataExtractor.kt:39-44 \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 \u0060app/src/main/java/fr/free/nrw/commons/MediaDataExtractor.kt:29\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":"app/src/main/java/fr/free/nrw/commons/MediaDataExtractor.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7427fcb51723bc5e7e0452f377bccb25d6db021f072aa839a8f0c868855b3f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/profile/leaderboard/DataSourceClass.kt:40-45 | app/src/main/java/fr/free/nrw/commons/profile/leaderboard/DataSourceClass.kt:72-77 \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 \u0060app/src/main/java/fr/free/nrw/commons/profile/leaderboard/DataSourceClass.kt:40\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":"app/src/main/java/fr/free/nrw/commons/profile/leaderboard/DataSourceClass.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3806ff48034d103ee2c1a15634675146fcbed509f496b11854f39f301bcca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/media/zoomControllers/gestures/GestureTransform.kt:32-38 | app/src/main/java/fr/free/nrw/commons/media/zoomControllers/gestures/GestureTransform.kt:46-52 \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 \u0060app/src/main/java/fr/free/nrw/commons/media/zoomControllers/gestures/GestureTransform.kt:32\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":"app/src/main/java/fr/free/nrw/commons/media/zoomControllers/gestures/GestureTransform.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"df46b9bba607260342391932a47bbbd318b1055749e08cae2796e0a397c8813d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsTable.kt:55-96 | app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesTable.kt:33-72 \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":"app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsTable.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6511189cbd04e2e4eb92f9c400ceb3dacbfa133958b7321ccab8017fba4143ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/di/CommonsDaggerIntentService.kt:9-22 | app/src/main/java/fr/free/nrw/commons/di/CommonsDaggerService.kt:7-20 \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":"app/src/main/java/fr/free/nrw/commons/di/CommonsDaggerIntentService.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"896747cb2e0f13ed071c1b9ab47f7947a5eb62a042ccd7319626fe154bcda8d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt:34-45 | app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesContentProvider.kt:34-45 \u2014 before extracting anything, compare \u0060app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt\u0060 and \u0060app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesContentProvider.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt:34\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. Note first that the copies are not typed on the same thing: \u0060TABLE_NAME\u0060 names \u0060fr.free.nrw.commons.bookmarks.items.BookmarkItemsTable.TABLE_NAME\u0060 in one and \u0060fr.free.nrw.commons.bookmarks.pictures.BookmarksTable.TABLE_NAME\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2637a5b4274c2437beaae878a691a717bb697bac4801af9849019c59228343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt:84-89 | app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesContentProvider.kt:84-89 \u2014 before extracting anything, compare \u0060app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt\u0060 and \u0060app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesContentProvider.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: \u0060TABLE_NAME\u0060 names \u0060fr.free.nrw.commons.bookmarks.items.BookmarkItemsTable.TABLE_NAME\u0060 in one and \u0060fr.free.nrw.commons.bookmarks.pictures.BookmarksTable.TABLE_NAME\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6885354b2753dede69f7599509442c0154300db33dc87f7a21b81323d541b675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsDao.kt:86-95 | app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesDao.kt:77-86 \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: \u0060BASE_URI\u0060 names \u0060fr.free.nrw.commons.bookmarks.items.BookmarkItemsContentProvider.Companion.BASE_URI\u0060 in one and \u0060fr.free.nrw.commons.bookmarks.pictures.BookmarkPicturesContentProvider.Companion.BASE_URI\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsDao.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b9d80392a07aad591099f623dcee4f336d1e1331ab07b6bf94498c7412d0ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/explore/depictions/DepictsClient.kt:115-119 | app/src/main/java/fr/free/nrw/commons/upload/structure/depictions/DepictedItem.kt:105-109 \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":"app/src/main/java/fr/free/nrw/commons/explore/depictions/DepictsClient.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a624025547a55c4c43b5261ea364e86f6fa3d6a7c712ebd54429f9c671d51cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/media/MediaResponseMapper.kt:23-27 | app/src/main/java/fr/free/nrw/commons/media/WikidataMediaClient.kt:88-92 \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":"app/src/main/java/fr/free/nrw/commons/media/MediaResponseMapper.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"af51e74adc87ff713b441a17fc005df35b186c5da4be01e37c5d2383eedb8d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/upload/FailedUploadsAdapter.kt:44-48 | app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsAdapter.kt:40-46 \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 \u0060app/src/main/java/fr/free/nrw/commons/upload/FailedUploadsAdapter.kt:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/upload/FailedUploadsAdapter.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d666d47d56552a8fb9b0cba425bbdeacf6ee565683ebdbe7dd67682509f6ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt:37-52 | app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt:94-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt:37\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":"app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f72a516f3c6c1a02f003233f5dd49cd0bbefa74081ffb6e2bd38e7aad2cefa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt:64-76 | app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesContentProvider.kt:64-76 \u2014 before extracting anything, compare \u0060app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt\u0060 and \u0060app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesContentProvider.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt:64\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: \u0060TABLE_NAME\u0060 names \u0060fr.free.nrw.commons.bookmarks.items.BookmarkItemsTable.TABLE_NAME\u0060 in one and \u0060fr.free.nrw.commons.bookmarks.pictures.BookmarksTable.TABLE_NAME\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/bookmarks/items/BookmarkItemsContentProvider.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce583edd29cd5e71d75ea260124f4d799098cf6ebea9daaab8bb25ad30a6de38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt:35-43 | app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt:95-101 | app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt:143-149 \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 \u0060app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt:35\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":"app/src/main/java/fr/free/nrw/commons/actions/PageEditClient.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe492089722b8977fbb5630317790483f59c94152638956db2120061a9f8028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/upload/UploadClient.kt:250-257 | app/src/main/java/fr/free/nrw/commons/upload/UploadClient.kt:283-290 \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 \u0060app/src/main/java/fr/free/nrw/commons/upload/UploadClient.kt:250\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":"app/src/main/java/fr/free/nrw/commons/upload/UploadClient.kt"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8594c180a42ac63c255829858e7b28672069e7aa11f864cff1e35bdfc7d395f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt:123-127 | app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt:214-218 \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 \u0060app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt:123\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt:220\u0060 calls \u0060w\u0060 and \u0060app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt:128\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":"app/src/main/java/fr/free/nrw/commons/mwapi/UserStatsClient.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ae20b1df1fdc1ca43f3ca152b34f6a52679434030ee914c419eaec4f3e1783"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/upload/FailedUploadsFragment.kt:152-156 | app/src/main/java/fr/free/nrw/commons/upload/FailedUploadsFragment.kt:179-183 \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 \u0060app/src/main/java/fr/free/nrw/commons/upload/FailedUploadsFragment.kt:152\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":"app/src/main/java/fr/free/nrw/commons/upload/FailedUploadsFragment.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f8d4d5d68e73b9900c7847f970aa2546106aa81d7f6f04d6e824042f472c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57\u201358 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java:63-120 | app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java:202-258 \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 \u0060app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java:63\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":"app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"32eb6144fd955653382c1ee4cea040e37522bc8d10769c2a3ae42e48f59f4116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/fr/free/nrw/commons/nearby/Place.java:63-71 | app/src/main/java/fr/free/nrw/commons/nearby/Place.java:77-85 \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":"app/src/main/java/fr/free/nrw/commons/nearby/Place.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4b74cb6f64246c40f1e90e08c788fa542319eac8da1dabd29a5d206ed82a9e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MediaDetailMenuHandler (LCOM4 4): MediaDetailMenuHandler\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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailMenuHandler.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5f48635068d7d9b107dede91dc2a6d3367d41221a0968bbad050a16b1012e3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UploadMediaDetailAdapter (LCOM4 4): UploadMediaDetailAdapter\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":"app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailAdapter.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"766b6e56692cb4c0d01ca17a40da27c386007e79360c25c16cb4f349841e16bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt: app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in NearbyParentFragment.onViewCreated at line 462. 13 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fffcc2cd07d26c9e5ce98482c9038393199865159ca10fc549679e27ab482dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt: app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MediaDetailPagerFragment.onOptionsItemSelected at line 180. 3 of those changes were fix/bug commits, and the other 4 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33ec89d4b327a7174382c7ebaf60a48f8f8228958a6dacdeb268771b12653bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/fr/free/nrw/commons/edit/BlurOverlayView.kt: app/src/main/java/fr/free/nrw/commons/edit/BlurOverlayView.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in BlurOverlayView.onTouchEvent at line 311. 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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/edit/BlurOverlayView.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":"app/src/main/java/fr/free/nrw/commons/edit/BlurOverlayView.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4d35e9fe8a5eea7e82e99a462c34c56d4e8466bd95c9355864d459c2e2f1f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt: app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt changed 17 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is MediaDetailFragmentKt.FileUsagesContainer at line 595), 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: \u201Cfix: hide loading spinner on intermediate image set (#7250) (#7330)\u201D; \u201CFix self upload media by using uploader instead of author (#6870)\u201D; \u201Cfix : leaks at Media Detail Fragment  (#6705)\u201D; \u201Cfix: Show media details and a loading spinner while the image loads (#7011)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.kt"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"add97bfaceb991156b28f595a20be53afa1f7a629280e9424a2ab3a910365c06"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.kt: app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.kt changed 9 times in last 90 days and 7 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 LoginActivity.renderLoginState at line 119), 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: \u201Cfix: narrow TooGenericExceptionCaught for multiple components (#7307)\u201D; \u201Cfix: prevent login crash after rotation during failed login (#7233)\u201D; \u201Cfix: preserve login focus on locale change (#6974)\u201D; \u201CFix/7167 login unknown error (#7190)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.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":"app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0eb6dbc7ac6b4d2e3af105ac58bce62110d72b03f527741a0f72a71d1cf04ff"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/filepicker/FilePicker.kt: app/src/main/java/fr/free/nrw/commons/filepicker/FilePicker.kt changed 8 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is FilePicker.onPictureReturnedFromDocuments at line 69), 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: \u201CSplit FilePicker and PickedFiles to fix Detekt TooManyFunctions (#7262)\u201D; \u201CFix Detekt miscellaneous code smells (#7210)\u201D; \u201CFix Detekt UnusedPrivateProperty findings and remove from baseline (#7200)\u201D; \u201CFixes Nested Depth block static analysis errors from ImageFileLoader, ImageFragment, FilePicker (#7206)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/filepicker/FilePicker.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":"app/src/main/java/fr/free/nrw/commons/filepicker/FilePicker.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8945c3aa2319e35db5f66ee68404c2d722bd1afa67b619108ed272771c2b5948"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/description/DescriptionEditActivity.kt: app/src/main/java/fr/free/nrw/commons/description/DescriptionEditActivity.kt changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is DescriptionEditActivity.editDescription at line 188), 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: \u201CFix: multi-language captions not saved on upload (#6938) (#6946)\u201D; \u201CFix Detekt Empty findings (#7178)\u201D; \u201Cfix: open the description editor for Nearby uploads (#7025)\u201D; \u201CFix Detekt exception-handling smells and remove 38 baseline entries (#7216)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/description/DescriptionEditActivity.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":"app/src/main/java/fr/free/nrw/commons/description/DescriptionEditActivity.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"adfe9f0b1157fdeed1a321c0ff1275f367c540c12c31ccfa555f0569201c68e2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageFragment.kt: app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageFragment.kt changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is ImageFragment.onViewCreated at line 259), 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: \u201Cfix: narrow TooGenericExceptionCaught catches  (#7321)\u201D; \u201CFix Detekt miscellaneous code smells (#7210)\u201D; \u201CFixes Nested Depth block static analysis errors from ImageFileLoader, ImageFragment, FilePicker (#7206)\u201D; \u201CFix Detekt NewLineAtEndOfFile findings (#7067)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageFragment.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":"app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageFragment.kt"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"96eaac7f95ed177f1b893c66de2c437921b125946178f461b971d1977fd583c2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsPresenter.kt: app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsPresenter.kt changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is PendingUploadsPresenter.restartUploads at line 174), 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: \u201CFix #7126: Remove unused functions from ContributionsRepository and ContributionsLocalDataSource (#7236)\u201D; \u201CFix Detekt Empty findings (#7178)\u201D; \u201Cfix: retry every failed upload, not only the ones loaded in the list (#7196)\u201D; \u201CFix Detekt miscellaneous code smells (#7210)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsPresenter.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":"app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsPresenter.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f1e85afa1b2b67db7f68931698158df776da3b44e645e4f57a2284a1b2ed00"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/delete/DeleteHelper.kt: app/src/main/java/fr/free/nrw/commons/delete/DeleteHelper.kt changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is DeleteHelper.askReasonAndExecute at line 213), 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: \u201CFix Detekt Empty findings (#7178)\u201D; \u201CFix Detekt exception-handling smells and remove 38 baseline entries (#7216)\u201D; \u201CFix Detekt UnusedPrivateProperty findings and remove from baseline (#7200)\u201D; \u201CFix Detekt NewLineAtEndOfFile findings (#7067)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/delete/DeleteHelper.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":"app/src/main/java/fr/free/nrw/commons/delete/DeleteHelper.kt"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fc47b2eb32eac457b2fe2b1d03f60b6e6f9571f238e7747c3ba9de8a1ea1ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/utils/CustomSelectorUtils.kt: app/src/main/java/fr/free/nrw/commons/utils/CustomSelectorUtils.kt changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is CustomSelectorUtils.checkWhetherFileExistsOnCommonsUsingSHA1 at line 81), 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: \u201Cfix: narrow TooGenericExceptionCaught for multiple components (#7307)\u201D; \u201CFix Detekt exception-handling smells and remove 38 baseline entries (#7216)\u201D; \u201CFix Detekt miscellaneous code smells (#7210)\u201D; \u201Cdetekt: fix function parameter naming violations (#7174)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/utils/CustomSelectorUtils.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":"app/src/main/java/fr/free/nrw/commons/utils/CustomSelectorUtils.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"23eb430ca36f9ed35ac4a2d70f2109f2d646f08f255520fabdc4262d44e7ef8b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/media/zoomControllers/zoomable/ZoomableDraweeView.kt: app/src/main/java/fr/free/nrw/commons/media/zoomControllers/zoomable/ZoomableDraweeView.kt changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is ZoomableDraweeView.onTouchEvent at line 231), 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: \u201Cfix: narrow TooGenericExceptionCaught catches  (#7321)\u201D; \u201CFix Detekt Empty findings (#7178)\u201D; \u201CFix Detekt exception-handling smells and remove 38 baseline entries (#7216)\u201D; \u201CFix Detekt NewLineAtEndOfFile findings (#7067)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/media/zoomControllers/zoomable/ZoomableDraweeView.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":"app/src/main/java/fr/free/nrw/commons/media/zoomControllers/zoomable/ZoomableDraweeView.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1c4757846100ae024fbb69f8b7aa2d7b4ec0d3444384cb165f414d71de6bbb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetFragment.kt: app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetFragment.kt changed 5 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 2 (its worst body is MoreBottomSheetFragment.onCreateView at line 50), 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: \u201Cfix: narrow TooGenericExceptionCaught for multiple components (#7307)\u201D; \u201CFix Detekt UnusedPrivateMember, UnusedParameter and UnusedPrivateClass findings (#7049) (#7103)\u201D; \u201CFix Detekt NewLineAtEndOfFile findings (#7067)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetFragment.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":"app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetFragment.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"573c4d1ef17cbdbbf6b520e4afea299180056fb7f32e993f571858cd950a83fe"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/contributions/ContributionsLocalDataSource.kt: app/src/main/java/fr/free/nrw/commons/contributions/ContributionsLocalDataSource.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 3 (its worst body is ContributionsLocalDataSource.saveContributions at line 92), 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: \u201CFix #7126: Remove unused functions from ContributionsRepository and ContributionsLocalDataSource (#7236)\u201D; \u201Cfix: retry every failed upload, not only the ones loaded in the list (#7196)\u201D; \u201Cfix: explain a deleted contribution instead of opening a blank page (#7097)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/contributions/ContributionsLocalDataSource.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":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionsLocalDataSource.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"31691f7f7d1fc2d5a654b79b6d892e2af3f89a825a37675658d61233650b3081"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/contributions/ContributionsRepository.kt: app/src/main/java/fr/free/nrw/commons/contributions/ContributionsRepository.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 1 (its worst body is ContributionsRepository.deleteContributionFromDB at line 22), 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: \u201CFix #7126: Remove unused functions from ContributionsRepository and ContributionsLocalDataSource (#7236)\u201D; \u201Cfix: retry every failed upload, not only the ones loaded in the list (#7196)\u201D; \u201Cfix: explain a deleted contribution instead of opening a blank page (#7097)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/contributions/ContributionsRepository.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":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionsRepository.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"782e787a9eb37ba1a89793611cda9da14484d58c4ffb13eb5a9c694d38ae5619"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/contributions/ContributionsListPresenter.kt: app/src/main/java/fr/free/nrw/commons/contributions/ContributionsListPresenter.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 3 (its worst body is ContributionsListPresenter.setup at line 37), 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: \u201CFix Detekt Empty findings (#7178)\u201D; \u201CFix Detekt UnusedPrivateProperty findings and remove from baseline (#7200)\u201D; \u201Cfix: explain a deleted contribution instead of opening a blank page (#7097)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/contributions/ContributionsListPresenter.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":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionsListPresenter.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e32770e7075a0947fa3c7d200d82a53a58242a8b7366bfdac56dcf18ba4a2a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/utils/DownloadReceiver.kt: app/src/main/java/fr/free/nrw/commons/utils/DownloadReceiver.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 8 (its worst body is DownloadReceiver.getFailedDownload at line 31), 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: \u201CFix Detekt Empty findings (#7178)\u201D; \u201CFixes Nested Depth block static analysis errors from ImageFileLoader, ImageFragment, FilePicker (#7206)\u201D; \u201CFix Detekt NewLineAtEndOfFile findings (#7067)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/utils/DownloadReceiver.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":"app/src/main/java/fr/free/nrw/commons/utils/DownloadReceiver.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46c792fdfed01e521d1ec890c609b206a835ad20321cf7dc590221c113817c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/notification/NotificationClient.kt: app/src/main/java/fr/free/nrw/commons/notification/NotificationClient.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 3 (its worst body is NotificationClient.markNotificationAsRead at line 52), 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: \u201Cfix: use Echo\u0027s unread count for the notification badge (#7187)\u201D; \u201Cfix: pass source wiki to echomarkread so cross-wiki notifications clear (#6896)\u201D; \u201CFix Detekt exception-handling smells and remove 38 baseline entries (#7216)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/notification/NotificationClient.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":"app/src/main/java/fr/free/nrw/commons/notification/NotificationClient.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e19d33baf253e84523055eead14f46359046359a545acb55e664382e66474be"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/utils/RandomAccessFileExifWriter.kt: app/src/main/java/fr/free/nrw/commons/utils/RandomAccessFileExifWriter.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 13 (its worst body is RandomAccessFileExifWriter.scanAndUpdateIfd at line 241), 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: \u201C fix: compile error from reserved _ loop variables (since #7200) (#7212)\u201D; \u201CFix Detekt UnusedPrivateProperty findings and remove from baseline (#7200)\u201D; \u201CFix Detekt NewLineAtEndOfFile findings (#7067)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/utils/RandomAccessFileExifWriter.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":"app/src/main/java/fr/free/nrw/commons/utils/RandomAccessFileExifWriter.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42eb95aa129c5d816c918f29eee84319a0bbdb3a6be252f2a1e32639f258315"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetLoggedOutFragment.kt: app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetLoggedOutFragment.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 2 (its worst body is MoreBottomSheetLoggedOutFragment.sendFeedback at line 106), 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: \u201CFix Detekt exception-handling smells and remove 38 baseline entries (#7216)\u201D; \u201CFix Detekt UnusedPrivateMember, UnusedParameter and UnusedPrivateClass findings (#7049) (#7103)\u201D; \u201CFix Detekt NewLineAtEndOfFile findings (#7067)\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-19..2026-11-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-19 11:35:08 \u002B09:00\u0027 --until=\u00272026-11-17 11:35:08 \u002B09:00\u0027 --full-history --no-merges -- app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetLoggedOutFragment.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":"app/src/main/java/fr/free/nrw/commons/navtab/MoreBottomSheetLoggedOutFragment.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2739b0c0b9964874f28f6075eedbed575f4121a26c972c4ae92b6143c46fb2"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 2 significant file(s) lose their only recent owner: app/src/main/java/fr/free/nrw/commons/upload/FailedUploadsFragment.kt, app/src/main/java/fr/free/nrw/commons/upload/ThumbnailsAdapter.kt. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a47f6b85378a90214886c90022cfe8bd9b10645b39782cc51a3553990229c231"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 7 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 (10 single-owned of 339 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; 339 of the 691 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)) (\u002B1 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: app/src/main/java/fr/free/nrw/commons/auth/WikiAccountAuthenticator.kt, app/src/main/java/fr/free/nrw/commons/auth/SessionManager.kt, app/src/main/java/fr/free/nrw/commons/review/ReviewController.kt, app/src/main/java/fr/free/nrw/commons/language/AppLanguageLookUpTable.kt, app/src/main/java/fr/free/nrw/commons/wikidata/cookies/CommonsCookieJar.kt, app/src/main/java/fr/free/nrw/commons/WelcomePagerAdapter.kt, app/src/main/java/fr/free/nrw/commons/fileusages/FileUsagesUiModel.kt, app/src/main/java/fr/free/nrw/commons/repository/UploadRepository.kt."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove when we\u0027re able to initialize Fresco in test builds. \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":"app/src/main/java/fr/free/nrw/commons/CommonsApplication.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc192422c306fd8cfb783effe10f941bb3e7ed9b59d0d1bef217a432f757c63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fix preference manager \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":"app/src/main/java/fr/free/nrw/commons/CommonsApplication.kt"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be45e8bfa8ee88f8363b7109cfaae126a8e86e55f11dd984b50c32bdb117e21"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO added categories should be removed. It is added for a short fix. On category update, \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":"app/src/main/java/fr/free/nrw/commons/Media.kt"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a388db842dff5c89bf09ecec1b6176a5e3c7a5a59635b7df9a0564f1e91e27c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle null values in lists during deserialization, perhaps with a new \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":"app/src/main/java/fr/free/nrw/commons/wikidata/mwapi/MwQueryPage.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"710f892f09319265a266b620314025c2b40627e81dfd625f81e477aac3e5a6d5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Looks like result pages and redirects can also be matched on the \u0022index\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":"app/src/main/java/fr/free/nrw/commons/wikidata/mwapi/MwQueryResult.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bda5314d4b5a2c65955fec7be0461889f8eb3195a02bfd6a43b431208878bc7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove @SerializedName. this is now in the TypeAdapter and a \u0022uri\u0022 case may be added \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":"app/src/main/java/fr/free/nrw/commons/wikidata/model/WikiSite.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4aef90e28dae4aaaecc5b57662f572cf1034294555c803577ac7a4bdebced2a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove after the restbase endpoint supports ZH variants. \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":"app/src/main/java/fr/free/nrw/commons/wikidata/model/page/PageTitle.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"06102391ce3af8fb85e1d679d236f771267562afa3de2887cd87e3eda5c92921"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: find a better way to check if the namespace is a ISO Alpha2 Code (two digits country 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":"app/src/main/java/fr/free/nrw/commons/wikidata/model/page/PageTitle.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd85b5fb294151ca906145df59d7bdf83eb7c7bf8b1f232445b64e2f41547bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this class needs some refactoring to allow passing in a fragment \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":"app/src/main/java/fr/free/nrw/commons/wikidata/model/page/PageTitle.kt"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b2c88365fac04bc5bfa4517c6e301c7d59001ed6803785dba95208e68c0bb3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - this can be constructed in a Dagger provider method, in a module and injected.  No need \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":"app/src/main/java/fr/free/nrw/commons/utils/ConfigUtils.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20eeedbf19c8f3faaacad48fc02a5034e5cbb84bbebab9c16ed624d87710443"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO for Android 12\u002B request permission from user is mandatory \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":"app/src/main/java/fr/free/nrw/commons/utils/NetworkUtils.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"235e046347b2a02a4652dedd01e18368dd467ad01f7369784ad35c498cbde0ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: maybe we can expand this class to include fileName \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":"app/src/main/java/fr/free/nrw/commons/review/ReviewController.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fd18c4db2ee9a65d608f552a93db88836e3a9229a4cdf30479e9c58af748c1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Create a Method to Hide all the Statistics \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":"app/src/main/java/fr/free/nrw/commons/profile/achievements/AchievementsFragment.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbe6f6fa0e322894d08176f5a7ba9740c826c92161c7af0547871856fa79dd2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // binding.achievementBadgeImage.visibility = View.INVISIBLE // 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":"app/src/main/java/fr/free/nrw/commons/profile/achievements/AchievementsStatsBinder.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f83563fe2b3cc56811e530d5e8d99c177b6675932f0c013439c185a5b7dec5d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(\u0022DEPRECATION\u0022) Issue : #6002"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/feedback/FeedbackDialog.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"170709aa96cbd24cce7ee5e840db07a00ca23de9130ca775a6434726b6ef858f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Temporary fix for screen rotation inside media details. If we don\u0027t call onBackPressed then \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":"app/src/main/java/fr/free/nrw/commons/explore/SearchActivity.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"696d3d2860abcd6c5533007bbbe4a0c22f15e3a02ecaf33a4ffec14bc2adcc5d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Similar issue like this https://github.com/commons-app/apps-android-commons/issues/894"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/explore/SearchActivity.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80d1458f9539c750cbcdb7df22a6c357f9a43327881ae025c436e7be8d849f9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // fixme add a limit on the original query instead of falling out of the loop? \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":"app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesDao.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"563e91c8e75d8938ddd4726fecc993fcc027ec31baa7b74130d7dac49d444570"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo change column count depending on the orientation of the device. \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":"app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/FolderFragment.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9d73c67d25e8cb53eadbc76ab5d7c1545ddb1731fe0432c1557319e9916137"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo change span count depending on the device orientation and other factos. \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":"app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageFragment.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"212313aaac6ab8ea6bcbaa7e112ed5a1444119789e67b50ecff1690f543e49a3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Improve UX. Additional details: https://github.com/commons-app/apps-android-commons/pull/5257#discussion_r1304662562"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragment.kt"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"9582eb16cca41a077d3a2ddb4de1eca92cd043a56bc534c27f282fc9fd98e732"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Show the exact reason for failure \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":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragment.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"6208ee07e4d7033e044985566f14827be2ca697278c176e8315f5cdd3ebf55ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Find a better way to boil up the warning about 2FA \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":"app/src/main/java/fr/free/nrw/commons/auth/login/LoginClient.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8ffad1b6c96992ded460d8dc5a31cb61aba0cb6dfcd7d4eea2c3ce8e2c66a5"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060app/build.gradle.kts\u0060 makes this repository a deployable product (line 5)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/build.gradle.kts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0b7e6affaa93ee6bb19a08419940b0b329e278f472a33ac0b60c64caa16c5f"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060defaultKVStore\u0060 spells \u0060KV\u0060 where 48 names in the project spell it \u0060Kv\u0060: 48 of 50 names in project app spell the token \u0060Kv\u0060 (48 of 50; unit: names in project app containing \u0060Kv\u0060). Peers: LoginActivity.applicationKvStore (app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.kt:63); LoginViewModel.applicationKvStore (app/src/main/java/fr/free/nrw/commons/auth/LoginViewModel.kt:58); LoginViewModelFactory.applicationKvStore (app/src/main/java/fr/free/nrw/commons/auth/LoginViewModel.kt:190); SessionManager.defaultKvStore (app/src/main/java/fr/free/nrw/commons/auth/SessionManager.kt:25); BookmarkFragment.applicationKvStore (app/src/main/java/fr/free/nrw/commons/bookmarks/BookmarkFragment.kt:32). Rename to \u0060defaultKvStore\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionsLocalDataSource.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a96eb2dbc99209222fb673cb11943c1ea3fc8f5de9e4cd5136ec3aee9b12383"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060getMediaFromImageURL\u0060 spells \u0060URL\u0060 where 54 names in the project spell it \u0060Url\u0060: 54 of 56 names in project app spell the token \u0060Url\u0060 (54 of 56; unit: names in project app containing \u0060Url\u0060). Peers: Media.thumbUrl (app/src/main/java/fr/free/nrw/commons/Media.kt:31); Media.imageUrl (app/src/main/java/fr/free/nrw/commons/Media.kt:36); Media.licenseUrl (app/src/main/java/fr/free/nrw/commons/Media.kt:59); UnsuccessfulResponseInterceptor.isExcludedUrl (app/src/main/java/fr/free/nrw/commons/OkHttpConnectionFactory.kt:138); SingleWebViewActivity.WebViewComponent(successUrl) (app/src/main/java/fr/free/nrw/commons/activity/SingleWebViewActivity.kt:116). Rename to \u0060getMediaFromImageUrl\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/explore/map/ExploreMapMarkerOverlayHelper.kt"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"1065690adbbbe7ec9653a407c78d9025fac04591104386861249f1c81ed325ac"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060defaultKVStore\u0060 spells \u0060KV\u0060 where 48 names in the project spell it \u0060Kv\u0060: 48 of 50 names in project app spell the token \u0060Kv\u0060 (48 of 50; unit: names in project app containing \u0060Kv\u0060). Peers: LoginActivity.applicationKvStore (app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.kt:63); LoginViewModel.applicationKvStore (app/src/main/java/fr/free/nrw/commons/auth/LoginViewModel.kt:58); LoginViewModelFactory.applicationKvStore (app/src/main/java/fr/free/nrw/commons/auth/LoginViewModel.kt:190); SessionManager.defaultKvStore (app/src/main/java/fr/free/nrw/commons/auth/SessionManager.kt:25); BookmarkFragment.applicationKvStore (app/src/main/java/fr/free/nrw/commons/bookmarks/BookmarkFragment.kt:32). Rename to \u0060defaultKvStore\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/upload/license/MediaLicensePresenter.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45a93fe0277141c8842bddfa4d380f14d1ba419f6912f63d82a63bb76dfc20a"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060getAPILevel\u0060 spells \u0060API\u0060 where 19 names in the project spell it \u0060Api\u0060: 19 of 20 names in project app spell the token \u0060Api\u0060 (19 of 20; unit: names in project app containing \u0060Api\u0060). Peers: CampaignsPresenter.okHttpJsonApiClient (app/src/main/java/fr/free/nrw/commons/campaigns/CampaignsPresenter.kt:28); ReasonBuilder.okHttpJsonApiClient (app/src/main/java/fr/free/nrw/commons/delete/ReasonBuilder.kt:28); NetworkingModule.provideOkHttpJsonApiClient (app/src/main/java/fr/free/nrw/commons/di/NetworkingModule.kt:106); MediaDetailMenuHandler.okHttpJsonApiClient (app/src/main/java/fr/free/nrw/commons/media/MediaDetailMenuHandler.kt:34); MediaDetailPagerFragment.okHttpJsonApiClient (app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt:51). Rename to \u0060getApiLevel\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/utils/DeviceInfoUtil.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffb7f8523f10f3d9ed33d7747f4596526d1f12bb97193d5dca197956b4a1a2e"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060decodeURL\u0060 spells \u0060URL\u0060 where 54 names in the project spell it \u0060Url\u0060: 54 of 56 names in project app spell the token \u0060Url\u0060 (54 of 56; unit: names in project app containing \u0060Url\u0060). Peers: Media.thumbUrl (app/src/main/java/fr/free/nrw/commons/Media.kt:31); Media.imageUrl (app/src/main/java/fr/free/nrw/commons/Media.kt:36); Media.licenseUrl (app/src/main/java/fr/free/nrw/commons/Media.kt:59); UnsuccessfulResponseInterceptor.isExcludedUrl (app/src/main/java/fr/free/nrw/commons/OkHttpConnectionFactory.kt:138); SingleWebViewActivity.WebViewComponent(successUrl) (app/src/main/java/fr/free/nrw/commons/activity/SingleWebViewActivity.kt:116). Rename to \u0060decodeUrl\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/wikidata/model/page/PageTitle.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a98e22303728270d345ba804b53c317490d013999c79154d7bf7d8b8a4308e2"}},{"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":"e25bd8a7566b7bbce7d4e3e0446f7ecc25e4b5ee555a7871be8cdd28a2ea5954"},"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":"bb63397f18fb872024430f816b3d12265b1167a6a6365ded578a1c45c99c22c1"},"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":"517cbdbbae29ecfa3fc5dc6aedb5418d8d20910eeb71f62dd895583fb61ccc4a"},"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":"e451f373f4ac3bf2e4243fbb615529c6084ea5128948e157738d7c74944a7c66"},"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":"7ba3b2a2eb26dafaa046d7bf6e1152ac7edca63ef61864f4e12c2f3a645ddc15"},"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":"77e453cb0ed9de49996ab2c42cad20e3a843af1ff07395edbde1a3aac2d17f26"},"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":"64d9bcfbd48cda5098917f7ccc300eef86eb2237a8aaafc3f5f2cd72db283567"},"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":"13da86ef7b4d57c9462166002b9845750423ca7c8dbb2e6cb76e043603244e09"},"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":"cc3d68961fd2ac56b60954994ddec299d3a5c0d89232c2d3cdc6cda066b1f915"},"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":"82d1af2d85922f5bdd64d7f43b90a1cb41aef55b01fed70b2a73a23f01201135"},"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":"4635095d820ec4a3fa526d9f6b07ff7c6cc15fe414c6a90909ab601cbcd2d265"},"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":"7508c774a13cba8ba6e2c90601d20acf7d0e603b78a28cdd0722784d7dea290a"},"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":"600e2e8e935b6c031aeadf5422740d8cf50455ae20af9a126971f4c6b3ea7ba5"},"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":"3c3557e9525635834b1eea4db7a6e9fd3f4c440d21ba90beb4d034a07a43afc4"},"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":"eb7cd09af30b90592aa9cc607d94490ac190747d40db95e83976f4db4004bf32"},"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":"263451780c1b9a849252e575ef403b855f3b6784740954a68e8fd49a778eb78a"},"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":"636d31bacac81540d4701d7c1721c625885eecfbf2ee596958c85d260b635352"},"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":"7bb2fe26166105bc6672fb0783dee9560841fc4218a0877c2dbf672405b31e8b"},"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":"630e6a12a36eb61c238554e54b92273b253fe578cee53e8ad5b85882797ac583"},"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":"ff15bdbc26fd6f91965817e517f8aff5c455565ee931bc8fee1733a5289e8cc3"},"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":"8bbc7161f1f5b8fecf9e73ff6e161de0f3c4105ff26e74ed44e6bcaff4bcf568"},"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":"fb37f549e0dce9e675874bcc1adb008e774a4a8c745a68fdfed528c8c0a96a59"},"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":"3b0367e7ea9bdd389991714fe83002077989c3eac9db9d8bdc3becd4dd073aee"},"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":"3f645662d5eb8036866f03a7d27aa9cf8b2908e91327484c471b3425bbe995af"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"app/src/main/java/fr/free/nrw/commons/settings/SettingsFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1698779ade62c32dd9aabf55fbdb4ec2d5511de6fd28070bcf8f092962d3606"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 55 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: app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt, app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java, app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.kt, app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsAdapter.kt, app/src/main/java/fr/free/nrw/commons/utils/PermissionUtils.kt, app/src/main/java/fr/free/nrw/commons/nearby/NearbyPlaces.java, app/src/main/java/fr/free/nrw/commons/activity/SingleWebViewActivity.kt, app/src/main/java/fr/free/nrw/commons/nearby/NearbyNotificationCardView.java (and 47 more) (56 orphaned of 339 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; 339 of the 691 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":"app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageLoader.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8903f02f055278dea7342ddf1ae3eaa655281234bd1ebfb6909d7729da5d3496"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e05e54c92d9a436e2e955c4ec0cb24ebbeb80eef5cef552280faa8c54f55abc"}},{"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":"app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76b835d1000e72c33d2c9ca7788397bf102288e9f31400b9676516957a7afa6"}},{"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":"app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsAdapter.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21075533aa98c2a6f6228c6d48fc6e28dc771e9e0d79028382bc80965cfbe578"}},{"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":"app/src/main/java/fr/free/nrw/commons/utils/PermissionUtils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec88bab095896fc25647b0ba1b97c1a201781375ddbae946859d0848a306e0c"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/NearbyPlaces.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b5cfc03b1b806feb22b039ec6374e6d4701c4cb6cfd9dded56f0af47cff2e4"}},{"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":"app/src/main/java/fr/free/nrw/commons/activity/SingleWebViewActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e9de628c6277cbc05a6678675915cd65aa9f35ba31f442b39dd18aaf826856"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/NearbyNotificationCardView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f645bc722d574054641f2850344fbeda7a11baaa0a05ee111d0d8839d2cb37ba"}},{"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":"app/src/main/java/fr/free/nrw/commons/di/FragmentBuilderModule.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33505f1e1c5041730c20d97c9d2712b6c8f370e98ac563f54ffc24806c121a80"}},{"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":"app/src/main/java/fr/free/nrw/commons/auth/csrf/CsrfTokenClient.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54c92882c77dd1dc8f3d5582a78cb48e6ec0650794cd605f2f4eac113c1389b"}},{"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":"app/src/main/java/fr/free/nrw/commons/upload/LanguagesAdapter.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4caa574e8b14499814013a6cf5d9a3b52d3e439795f2271c825e28e353b514"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/PageEditHelper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19aa74a2b6b1a909a4686df4ea8fcadde2c8b78ddd4389c49fbe0d0747157c4"}},{"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":"app/src/main/java/fr/free/nrw/commons/widget/PicOfDayAppWidget.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"682670fbb32ff18033433594b66dcc2206415698ace05e74236ec98040f0c9ee"}},{"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":"app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c955c65dc0eeeb8af3fb899afedd47a140e396fe74cd14f64e6d5efe0eda2b62"}},{"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":"jacoco.gradle"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"861a411f65ecb03ef38bebc49845190f994ca8a2d67d838f902d4ed1a6826456"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/PlaceAdapterDelegate.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ac726acc79bab98a4fc8fb5fdc26092a81650692403bcc1baa73f0de7b970c"}},{"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":"app/src/main/java/fr/free/nrw/commons/category/CategoryClient.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d311df63a2ce92da7cd163f47f6e18d11fe962bca07f18cdb3ce54da430442"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/fragments/CommonPlaceClickActions.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d849cd36995558f8d8546e0e9c926cf5906a409d24fed5f52b8a76b5176fdd"}},{"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":"app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cd7f9f1adabfcb68684ed4cfe024ab00fa1421823f2b29b6abe6289c4fd0d8"}},{"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":"app/src/main/java/fr/free/nrw/commons/wikidata/model/page/PageProperties.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a28d85f727400e7fc08ff7b0e834567fd1d30f962fd2cb67ec751f053610001"}},{"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":"app/src/main/java/fr/free/nrw/commons/bookmarks/locations/BookmarkLocationsFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02ec1e09fff8b401996dacfe0e1e97142b36a95c9dbe6760b25e00c5ee68ffb"}},{"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":"app/src/main/java/fr/free/nrw/commons/review/ReviewHelper.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77887f7c13122cebff92856487461200a1796f650281cd4c283b9ff233ff4cf"}},{"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":"app/src/main/java/fr/free/nrw/commons/description/DescriptionEditHelper.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59802cc82a5307e8921668887c106e3c720065e1531bb47d5ea18012f26fb056"}},{"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":"app/src/main/java/fr/free/nrw/commons/explore/media/MediaConverter.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"180670e2230651b1acb99122c4172421e13a0a4d8d55f2e5f2aef350e8b3839f"}},{"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":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionBoundaryCallback.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7deea0987e32fd73e75b4fa85372266495b5d9389e06253034d3472a90be765c"}},{"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":"app/src/main/java/fr/free/nrw/commons/explore/depictions/DepictsClient.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73d54f9078c55cee919325bc41d75637098772cfe17c2c869750baef5176cb4"}},{"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":"app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictEditHelper.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d51ede83511ca77c9d39a61bb18a292e26056c05d8234f22469e8fc8d93912"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/BottomSheetAdapter.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a4ad426963765d320642cde26b74435e4e4068decf7c59acfd0dcd8803dea2"}},{"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":"app/src/main/java/fr/free/nrw/commons/wikidata/model/page/Namespace.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"277068d39e18027aadc2d1f08c994db19643815b62f0e55a9c8659db81df3199"}},{"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":"app/src/main/java/fr/free/nrw/commons/upload/structure/depictions/DepictModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5faca76d3e8525673618856d2458dfc7552fda26cd80752e8a16b6c27fa5b8be"}},{"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":"app/src/main/java/fr/free/nrw/commons/mwapi/CategoryApi.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79acd3d1a4e791f573c48f4d289d9d5c598ba1b9d8205f3530a5acbdd2dd3134"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/CheckBoxTriStates.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8233a9be57c7f4af5a8976dfcc19bbf0d0d06f4e658c0e137de278fe77a461"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/contract/NearbyParentFragmentContract.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2bafd41289b0e9e4a44dd3093f1cd48eb60d2362baee11299358ab9ac93e1f"}},{"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":"app/src/main/java/fr/free/nrw/commons/media/WikidataMediaClient.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1942775592b1080e9a0900feba9aa885f6f981dd5967d0edebf5583e6e15263"}},{"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":"app/src/main/java/fr/free/nrw/commons/explore/paging/PagingDataSourceFactory.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bce08c22fa52767a75da87a1e8e8dae923f4c019d74b8b8eee68f5257d72e4c"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/Sitelinks.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1305f2d0e509d02df1b84c5269534c74716b1e70c3a800fd8db5db47dc4dcb67"}},{"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":"app/src/main/java/fr/free/nrw/commons/wikidata/model/notifications/Notification.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1435f268d412db09e2d84e0b3e4bdd6c0570dcbde62d1e62b46c980a8b4c0afd"}},{"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":"app/src/main/java/fr/free/nrw/commons/media/zoomControllers/zoomable/DoubleTapGestureListener.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9e2da81bdf82e4c8d604df2789e46005c5f4024aeed37e6b66c18aaa66a466"}},{"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":"app/src/main/java/fr/free/nrw/commons/media/zoomControllers/zoomable/ZoomableController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"636964b2f0b62d000b706e85e0f0831cdc4ad0e8ac6a3a606850695116a303ca"}},{"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":"app/src/main/java/fr/free/nrw/commons/utils/NetworkUtils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"221d7fd3a9be7cbd1a6637e4e6c0a6ae6d63175f7ba34c3d0e8e4f998fbd169c"}},{"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":"app/src/main/java/fr/free/nrw/commons/explore/media/PagedMediaAdapter.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1abeddad4b74c73c29eef38d8307bd1fec6560dc4350e71e4c1c14b1485480"}},{"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":"app/src/main/java/fr/free/nrw/commons/utils/StringSortingUtils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5b69041eb75b090d76a4af783cc9f33620ef62aab11c40ece4933fa53d7b50"}},{"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":"app/src/main/java/fr/free/nrw/commons/wikidata/model/gallery/ExtMetadata.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afa48a3629b3dd27a0954e8b0c2e1766c4a0435f1e76d11a5a207590c9673c2"}},{"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":"app/src/main/java/fr/free/nrw/commons/wikidata/model/DataValue.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98838cc092e9780062b84b35e3abbd2e67112711a4ffaea75e73bc2e769b5b4a"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/PlaceDao.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5620c75a81b9eb5882619efc67cf7043bfb383221fc1f62601df91999e67fc"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/model/NearbyResultItem.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c927f5a1440173b17a071a28893fc95591d317b499d70e8949259a20732f2d9"}},{"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":"app/src/main/java/fr/free/nrw/commons/upload/WikiBaseInterface.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c131ec67ce8b417fcbb47089f1cf59677f33624e959b181c07f2aff987695de"}},{"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":"app/src/main/java/fr/free/nrw/commons/wikidata/json/RequiredFieldsCheckOnReadTypeAdapterFactory.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d64a3a445dc821e64c4d82c07a9b8e14b14803b47544d37b1c1fe41f500554"}},{"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":"app/src/main/java/fr/free/nrw/commons/bookmarks/locations/BookmarksLocations.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2834de0c6e342b4924314acc85052938a2ac789abe3310c4beb044eac2d23b0c"}},{"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":"app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesAdapter.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a7480aecda3743a55145c7cf0597c8b83b98ac925ac51ab0091951e6e103af"}},{"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":"app/src/main/java/fr/free/nrw/commons/profile/achievements/LevelController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"324313e42c4ec2b7817b0edffa91808dd420f9e65320e6c21151a9095f9d51d7"}},{"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":"app/src/main/java/fr/free/nrw/commons/explore/media/PageableMediaFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94134c2bc25b073fddef8a2a2301325dfb59f62e351dc636f5c8bc358d5ac399"}},{"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":"app/src/main/java/fr/free/nrw/commons/nearby/PlacesRepository.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1fba7e1829bfe65f823418bc3d1e662f2446cfcbcdea7299e328e109e60472"}},{"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":"app/src/main/java/fr/free/nrw/commons/explore/paging/PagingDataSource.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"691e11d09156815d9ad5443ffdbd7f9bef5a8d589cd0b5057abab2d8a85f1c7f"}},{"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":"app/src/main/java/fr/free/nrw/commons/utils/DownloadUtils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"809e6bee01d8e2ca4a238de20b90ad5c6313cac9f3c1b599d9f40b49349e8878"}},{"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":"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":"4f2f377de54c0560e8c32936a9177a612c8f04b740f7c317af0e899210d16af5"},"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":"88e625980cfcf8394e93f24c59b454738dfd986f14826f292b97386b546b1354"},"taxa":[{"id":"CICD-SEC-5","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":"AX2","level":"warning","message":{"text":"Stateful singleton: SessionManager: \u0060SessionManager\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (password, _currentAccount; e.g. \u0060password\u0060 in \u0060updateAccount\u0060 at line 52)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/auth/SessionManager.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ac3e7fa313b81fd45c3d1b08202a2a7cc896d47416d51bdc0d04293c3c8448"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: BookmarkPicturesController: \u0060BookmarkPicturesController\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (currentBookmarks; e.g. \u0060currentBookmarks\u0060 in \u0060loadBookmarkedPictures\u0060 at line 24)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesController.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c69ec4cd7be989bc1f6f808d9fb1588af2f7fd415b3039a7dbc6f2dec76db4"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: CampaignsPresenter: \u0060CampaignsPresenter\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (view, disposable, campaign; e.g. \u0060view\u0060 in \u0060onAttachView\u0060 at line 36)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/campaigns/CampaignsPresenter.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc5feabfc99d37ea1080d3556d39e2b6e7bda462a103f93f266fd8a92c9dc81"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: ContributionController: \u0060ContributionController\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (locationPermissionCallback, locationPermissionsHelper, locationBeforeImageCapture, isInAppCameraUpload, isInternalUploadInProgress; e.g. \u0060locationPermissionCallback\u0060 in \u0060createDialogsAndHandleLocationPermissions\u0060 at line 120)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionController.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2dec95e49eedf6b8cde9aa8a2aea6289c3878ffc06a4007a15bfe40937b2df"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: DeleteHelper: \u0060DeleteHelper\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (d; e.g. \u0060d\u0060 in \u0060askReasonAndExecute\u0060 at line 213)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/delete/DeleteHelper.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f3963cb935507f0c763d414cb46885106ddbffe81740cb563b734bfccf0d2a"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: QuizChecker: \u0060QuizChecker\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (totalUploadCount, isUploadCountFetched, revertCount, isRevertCountFetched; e.g. \u0060totalUploadCount\u0060 in \u0060setTotalUploadCount\u0060 at line 80)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/quiz/QuizChecker.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1e71a42d2eeda9d9a748af17a4311170bcf2b22be37dcad4400665beb8dd9a"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: ReviewController: \u0060ReviewController\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (media; e.g. \u0060media\u0060 in \u0060onImageRefreshed\u0060 at line 64)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/review/ReviewController.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7ca31a9fd922bf51ad0c75504bb6da104db39cd60cd2aa340225986d224910"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: UploadModel: \u0060UploadModel\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (items, selectedCategories, selectedDepictions, selectedExistingDepictions; e.g. \u0060items\u0060 in \u0060cleanUp\u0060 at line 65)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/upload/UploadModel.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f47c7430146efa74569742ca848a82c9eb752bd903236db5415c007d37fff8"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: UploadPresenter: \u0060UploadPresenter\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (basicKvStoreFactory, view; e.g. \u0060basicKvStoreFactory\u0060 in \u0060setupBasicKvStoreFactory\u0060 at line 149)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/upload/UploadPresenter.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"811f49420f8a659f308871946db9b110b2e05a6d5614de17ee4641fc75cd237f"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: CategoriesPresenter: \u0060CategoriesPresenter\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (view, media; e.g. \u0060view\u0060 in \u0060onAttachView\u0060 at line 58)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/upload/categories/CategoriesPresenter.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a94067a5146ab60f779ea1d7573079219573f8b83695074f03892b990d82369"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: DepictsPresenter: \u0060DepictsPresenter\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (view, media; e.g. \u0060view\u0060 in \u0060onAttachView\u0060 at line 62)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98667199b3d01860d6b048336300149a7cf8ed011b90b2af62ae08dc32ab4be"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: NearbyPlaces: \u0060NearbyPlaces\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (radius; e.g. \u0060radius\u0060 in \u0060radiusExpander\u0060 at line 59)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/nearby/NearbyPlaces.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f02b42325f79fe3cbca6b7d821467f52c99eabfdba4714558aba524da232b8c"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: View (45 abstract methods): \u0060View\u0060 declares 45 abstract methods: \u0060addCurrentLocationMarker\u0060, \u0060animateFABs\u0060, \u0060askForLocationPermission\u0060, \u0060centerMapToPlace\u0060, \u0060clearAllMarkers\u0060, \u0060disableFABRecenter\u0060, \u0060displayLoginSkippedWarning\u0060, \u0060enableFABRecenter\u0060, \u0060filterMarkersByLabels\u0060, \u0060filterOutAllMarkers\u0060, \u0060getCameraTarget\u0060, \u0060getContext\u0060, \u0060getLastLocation\u0060, \u0060getLastMapFocus\u0060, \u0060getMapCenter\u0060, \u0060getMapFocus\u0060, \u0060getScreenBottomLeft\u0060, \u0060getScreenTopRight\u0060, \u0060hideBottomDetailsSheet\u0060, \u0060hideBottomSheet\u0060, \u0060hideNearbyFilterList\u0060, \u0060isAdvancedQueryFragmentVisible\u0060, \u0060isDetailsBottomSheetVisible\u0060, \u0060isListBottomSheetExpanded\u0060, \u0060isNearbyFilterListVisible\u0060, \u0060isNetworkConnectionEstablished\u0060, \u0060listOptionMenuItemClicked\u0060, \u0060openLocationSettings\u0060, \u0060populatePlaces\u0060, \u0060populatePlaces\u0060, \u0060recenterMap\u0060, \u0060replaceMarkerOverlays\u0060, \u0060setBottomSheetDetailsSmaller\u0060, \u0060setCheckBoxAction\u0060, \u0060setCheckBoxState\u0060, \u0060setFABPlusAction\u0060, \u0060setFABRecenterAction\u0060, \u0060setFilterState\u0060, \u0060setProgressBarVisibility\u0060, \u0060setRecyclerViewAdapterAllSelected\u0060, and 5 more. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. Those 45 declarations carry 44 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 44 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/nearby/contract/NearbyParentFragmentContract.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e028166c65a2ce2355ad8155d6af0fc507d80853a5177724db005ad9bb77fe0"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ActivityBuilderModule (22 abstract methods): \u0060ActivityBuilderModule\u0060 declares 22 abstract methods: \u0060bindLoginActivity\u0060, \u0060bindWelcomeActivity\u0060, \u0060bindContributionsActivity\u0060, \u0060bindCustomSelectorActivity\u0060, \u0060bindSettingsActivity\u0060, \u0060bindAboutActivity\u0060, \u0060bindLocationPickerActivity\u0060, \u0060bindSignupActivity\u0060, \u0060bindNotificationActivity\u0060, \u0060bindUploadActivity\u0060, \u0060bindDepictsPickerActivity\u0060, \u0060bindSearchActivity\u0060, \u0060bindCategoryDetailsActivity\u0060, \u0060bindDepictionDetailsActivity\u0060, \u0060bindAchievementsActivity\u0060, \u0060bindReviewActivity\u0060, \u0060bindDescriptionEditActivity\u0060, \u0060bindZoomableActivity\u0060, \u0060bindUploadProgressActivity\u0060, \u0060bindWikiFeedback\u0060, \u0060bindEditActivity\u0060, \u0060bindDeletedFileActivity\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/di/ActivityBuilderModule.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"722a8d4b8bc2290bdef6efb873e2a1c29526fe4ab7032be713f9728b0a8ac2b9"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: FragmentBuilderModule (39 abstract methods): \u0060FragmentBuilderModule\u0060 declares 39 abstract methods: \u0060bindContributionsListFragment\u0060, \u0060bindMediaDetailFragment\u0060, \u0060bindFolderFragment\u0060, \u0060bindImageFragment\u0060, \u0060bindMediaDetailPagerFragment\u0060, \u0060bindSettingsFragment\u0060, \u0060bindDepictedImagesFragment\u0060, \u0060bindBrowseImagesListFragment\u0060, \u0060bindSearchCategoryListFragment\u0060, \u0060bindSearchDepictionListFragment\u0060, \u0060bindRecentSearchesFragment\u0060, \u0060bindContributionsFragment\u0060, \u0060bindNearbyParentFragment\u0060, \u0060bindBookmarkPictureListFragment\u0060, \u0060bindBookmarkLocationListFragment\u0060, \u0060bindBookmarkItemListFragment\u0060, \u0060bindBookmarkCategoriesListFragment\u0060, \u0060bindReviewOutOfContextFragment\u0060, \u0060bindUploadMediaDetailFragment\u0060, \u0060bindUploadCategoriesFragment\u0060, \u0060bindDepictsFragment\u0060, \u0060bindMediaLicenseFragment\u0060, \u0060bindParentDepictionsFragment\u0060, \u0060bindChildDepictionsFragment\u0060, \u0060bindCategoriesMediaFragment\u0060, \u0060bindSubCategoriesFragment\u0060, \u0060bindParentCategoriesFragment\u0060, \u0060bindExploreFragmentFragment\u0060, \u0060bindExploreFeaturedRootFragment\u0060, \u0060bindExploreNearbyUploadsFragment\u0060, \u0060bindExploreNearbyUploadsRootFragment\u0060, \u0060bindBookmarkListRootFragment\u0060, \u0060bindBookmarkFragmentFragment\u0060, \u0060bindMoreBottomSheetFragment\u0060, \u0060bindMoreBottomSheetLoggedOutFragment\u0060, \u0060bindAchievementsFragment\u0060, \u0060bindLeaderboardFragment\u0060, \u0060bindPendingUploadsFragment\u0060, \u0060bindFailedUploadsFragment\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/di/FragmentBuilderModule.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d41ee1c53d06abd4fcca1cec71367746905a2b6c4ea56b3e31a07754962e29"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ZoomableController (16 abstract methods): \u0060ZoomableController\u0060 declares 16 abstract methods: \u0060setEnabled\u0060, \u0060isEnabled\u0060, \u0060setListener\u0060, \u0060getScaleFactor\u0060, \u0060isIdentity\u0060, \u0060wasTransformCorrected\u0060, \u0060computeHorizontalScrollRange\u0060, \u0060computeHorizontalScrollOffset\u0060, \u0060computeHorizontalScrollExtent\u0060, \u0060computeVerticalScrollRange\u0060, \u0060computeVerticalScrollOffset\u0060, \u0060computeVerticalScrollExtent\u0060, \u0060getTransform\u0060, \u0060setImageBounds\u0060, \u0060setViewBounds\u0060, \u0060onTouchEvent\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/media/zoomControllers/zoomable/ZoomableController.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"967d44bd4d28b279073b8fd8139b2232dfe84ed2ad6270a6a374d58103881981"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"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 9 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/android.yml"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060app/build.gradle.kts\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/build.gradle.kts"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"8170fb04fe78176a33c2b44461eeb0bf2839b74c80362ebf7185e17a3b446ff7"}},{"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":"app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.kt"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ebc6cf2a674e9ff47e396b7f2e1bff9f2d104e410996b9f42282d09711f965"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!fragment.isAdded \u0026\u0026 otherFragment != null\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragmentRenderer.kt, app/src/main/java/fr/free/nrw/commons/explore/ExploreMediaRootFragment.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":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragmentRenderer.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e82e5e9c5f72148b03ce439a92a4a17640be38642e5626e95fa02587f90204"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!userName.isNullOrBlank() \u0026\u0026 userName != sessionManager.userName\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/profile/achievements/AchievementsFragment.kt, app/src/main/java/fr/free/nrw/commons/profile/leaderboard/LeaderboardFragment.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":"app/src/main/java/fr/free/nrw/commons/profile/achievements/AchievementsFragment.kt"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff256ffa474c32612d61bbb0036eb657bca10a5bfada901e8e61f7519a524b93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060caught is LoginFailedException \u0026\u0026 !message.isNullOrBlank()\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.kt, app/src/main/java/fr/free/nrw/commons/auth/LoginViewModel.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":"app/src/main/java/fr/free/nrw/commons/auth/LoginActivity.kt"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c88810b4ba4a5b514bd7eda5279b049a7fa030dfef8de92493a0dd40d85d894"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cursor != null \u0026\u0026 cursor.moveToNext() \u0026\u0026 cursor.position \u003C limit\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/category/CategoryDao.kt, app/src/main/java/fr/free/nrw/commons/explore/recentsearches/RecentSearchesDao.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":"app/src/main/java/fr/free/nrw/commons/category/CategoryDao.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5919930cd2709e334a10a70f9db8d3c8696ca11875bfcfd67c7873d0f07a19a5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fragment.isAdded \u0026\u0026 otherFragment != null\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragmentRenderer.kt, app/src/main/java/fr/free/nrw/commons/explore/ExploreMediaRootFragment.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":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragmentRenderer.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb0e2b9106a19b05bbf64c24742501a8e9bc7dfb863fa98b951dd874a27c477"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fragment.isAdded \u0026\u0026 otherFragment == null\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragmentRenderer.kt, app/src/main/java/fr/free/nrw/commons/explore/ExploreMediaRootFragment.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":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragmentRenderer.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec68bd25d5e13ce69181aebc32add10310b85e306d8363ccea4576463d711d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fragment.mediaDetailPagerFragment != null \u0026\u0026 !fragment.contributionsListFragment!!.isVisible\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/contributions/ContributionsNavigator.kt, app/src/main/java/fr/free/nrw/commons/contributions/ContributionsNearbyController.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":"app/src/main/java/fr/free/nrw/commons/contributions/ContributionsNavigator.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"22745bac4e33d9eb4f222b036a76345b0c75146e97a60f7ea8fef8a7a3f0a9f1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.isNotEmpty() \u0026\u0026 !selectedLanguages.containsValue(it) \u0026\u0026 it != selectedLangCode\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesAdapter.kt, app/src/main/java/fr/free/nrw/commons/upload/LanguagesAdapter.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":"app/src/main/java/fr/free/nrw/commons/recentlanguages/RecentLanguagesAdapter.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94ac18be9063498a88b3554958311aa92787a53a16455959adbf654b8caaf13"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060locationManager.isGPSProviderEnabled() || locationManager.isNetworkProviderEnabled()\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/explore/map/ExploreMapFragment.kt, app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.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":"app/src/main/java/fr/free/nrw/commons/explore/map/ExploreMapFragment.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df94c29ee6a592974bc431505eb2426b366e5ea2a6dc197731bc37a35298c5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060null != mediaDetails \u0026\u0026 mediaDetails!!.isVisible\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/explore/ExploreListRootFragment.kt, app/src/main/java/fr/free/nrw/commons/explore/ExploreMapRootFragment.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":"app/src/main/java/fr/free/nrw/commons/explore/ExploreListRootFragment.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"86608deba3520521fe1927d97b3f897b597a250cc2eeeadf169e4356c17629d3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prevZoom != 0.0 || prevLatitude != 0.0 || prevLongitude != 0.0\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/explore/map/ExploreMapViewportHelper.kt, app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.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":"app/src/main/java/fr/free/nrw/commons/explore/map/ExploreMapViewportHelper.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf1b25aa2dd3eb07efa74ddbe21cb0a1d991732866b9a45b3232cec54e8eb78"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response != null \u0026\u0026 response.status == 200\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/profile/leaderboard/DataSourceClass.kt, app/src/main/java/fr/free/nrw/commons/profile/leaderboard/LeaderboardFragment.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":"app/src/main/java/fr/free/nrw/commons/profile/leaderboard/DataSourceClass.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c8d26a78a419670f973f886ff1c9c4ba53f2203672a6e6fe304282f93f7371"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.body != null \u0026\u0026 response.isSuccessful\u0060 appears character-identically in 2 files \u2014 app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt, app/src/main/java/fr/free/nrw/commons/mwapi/WikidataQueryClient.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":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"2179ead18a0530a84eb0952074b0985f5ca3c225ee613727441159e4c940bbfc"}},{"ruleId":"X2","level":"note","message":{"text":"Not all suspend functions that make a request accept the coroutine\u0027s cancellation: Only 0/2 suspend functions that make a cancellable request (Ktor, OkHttp newCall, URL streams) accept the coroutine\u0027s cancellation or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a screen navigated away from, a disposed widget, a superseded search. In a suspend function, make the request with a call that suspends \u2014 Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 that cancels the \u0060Call\u0060 \u2014 not a blocking \u0060execute()\u0060: \u0060withContext(Dispatchers.IO)\u0060 moves the call off the caller\u0027s thread but does not make it cancellable; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"97a0137a13dc63b0e07ec4e232770b687c26a8a2030f49787e45a4506416c527"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: getFileUsagesOnCommons: \u0060getFileUsagesOnCommons\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5ee4c6bac28e4b031166bd59bdcdb68dbd52135cfa11d471b97422de32ef6e"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: getGlobalFileUsages: \u0060getGlobalFileUsages\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/fr/free/nrw/commons/mwapi/OkHttpJsonApiClient.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1453284dce3df7d2ced7f83b744fcae4aa2170a006e69a74ceb70af87aea129b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (ignored: 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":"app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageFileLoader.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"287860c2e305d49d3eb987f504c6e3c6a46cb944311b2b5e267799d670fc5461"}},{"ruleId":"X5","level":"note","message":{"text":"Not-null assertions (\u0060!!\u0060) override null safety: ~18.5 \u0060!!\u0060 not-null assertions per 1k Kotlin product lines \u2014 1435 across the 77547 line(s) of the 672 Kotlin file(s) read (generated, test and sample code not counted). Densest: app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt (298), app/src/main/java/fr/free/nrw/commons/contributions/ContributionsListFragment.kt (45), app/src/main/java/fr/free/nrw/commons/explore/SearchActivity.kt (43). 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"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.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-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-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.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-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":"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":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_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":30,"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."]}]}