{"$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":"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ImageUtil.chooseBackground (cyclomatic 71): ImageUtil.chooseBackground has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/common/src/main/kotlin/tachiyomi/core/common/util/system/ImageUtil.kt"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c139da0fb06fbdf90e2bafaedd1502376de0f71e5bf6a7ecb98efc70fcf6f33"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncChaptersWithSource.await (cyclomatic 27): SyncChaptersWithSource.await has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/domain/chapter/interactor/SyncChaptersWithSource.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1045f8ce1bd06a119a20f00382b807d39536e89c36e3514dce10ad7afa4bf0"}},{"ruleId":"D1","level":"warning","message":{"text":"PagerViewer.handleKeyEvent (cyclomatic 27): PagerViewer.handleKeyEvent has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6682eced3159707186ea1f84d847858704a5d6027ca2b505167649eae80598"}},{"ruleId":"D1","level":"warning","message":{"text":"Detector.onTouchEvent (cyclomatic 21): Detector.onTouchEvent 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/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonRecyclerView.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddf020a7e541662d09c28a35c090dbc7d8781c7af87a0f89cd8feee1ea89831"}},{"ruleId":"D1","level":"warning","message":{"text":"WebtoonViewer.handleKeyEvent (cyclomatic 21): WebtoonViewer.handleKeyEvent 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/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"214e80315aeca69ea4affdf1abce4c65f51399788acca748d2589e872c711921"}},{"ruleId":"D1","level":"warning","message":{"text":"VerticalFastScrollerKt.VerticalFastScroller (cyclomatic 21): VerticalFastScrollerKt.VerticalFastScroller has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48c8dba1c6355d3f2f312f18ad6d09f64c6f9e7228ab3a20c9696222376dad3"}},{"ruleId":"D1","level":"warning","message":{"text":"MangaInfoHeaderKt.MangaContentInfo (cyclomatic 20): MangaInfoHeaderKt.MangaContentInfo has cyclomatic complexity 20 (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/eu/kanade/presentation/manga/components/MangaInfoHeader.kt"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c388f4fdeefb974d812b2805ea995fd25cdc08ebc739d3f7358819eefe0a70f"}},{"ruleId":"D1","level":"warning","message":{"text":"WebViewScreenContentKt.WebViewScreenContent (cyclomatic 20): WebViewScreenContentKt.WebViewScreenContent has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/webview/WebViewScreenContent.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fe74fe9f6a15299b5cb7f9c361ddbe6922b754f7b4698fde51247d7f78a5f5"}},{"ruleId":"D1","level":"warning","message":{"text":"MainActivity.handleIntentAction (cyclomatic 20): MainActivity.handleIntentAction has cyclomatic complexity 20 (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/eu/kanade/tachiyomi/ui/main/MainActivity.kt"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"deaad9b45936d151e079d376097b6e138d82c91177b78114e106605bfd442a43"}},{"ruleId":"D1","level":"warning","message":{"text":"MangaScreen.Content (cyclomatic 20): MangaScreen.Content has cyclomatic complexity 20 (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/eu/kanade/tachiyomi/ui/manga/MangaScreen.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4102a72095bbfc264d45f06d20dde78bc8d31ae556fd4e3812e85cafc8baf9d5"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionsScreenKt.ExtensionContent (cyclomatic 19): ExtensionsScreenKt.ExtensionContent has cyclomatic complexity 19 (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/eu/kanade/presentation/browse/ExtensionsScreen.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b44540a30f9dccfac2e05172b65cbcda5f27be0d0254c59ec1db49deadb46f"}},{"ruleId":"D1","level":"warning","message":{"text":"LibraryScreenModel.applySort (cyclomatic 19): LibraryScreenModel.applySort has cyclomatic complexity 19 (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/eu/kanade/tachiyomi/ui/library/LibraryScreenModel.kt"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfddca629c2e8c30e0ba1bee088c58a6525189cbe3ba019feb38de5ba6b6cb0"}},{"ruleId":"D1","level":"warning","message":{"text":"MigrationListScreenModel.runMigrations (cyclomatic 19): MigrationListScreenModel.runMigrations has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/mihon/feature/migration/list/MigrationListScreenModel.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cc78c3d017d0f1f3535cb3285a4ec025a1058a9f3300eee974ed9399079d3f"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionsScreenKt.ExtensionItemContent (cyclomatic 18): ExtensionsScreenKt.ExtensionItemContent has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/browse/ExtensionsScreen.kt"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bfa64ce81fe6e747117299538b2114a7742033fb3e2c7a509852f6ea1d2e9a"}},{"ruleId":"D1","level":"warning","message":{"text":"TriStateListDialogKt.TriStateListDialog (cyclomatic 18): TriStateListDialogKt.TriStateListDialog has cyclomatic complexity 18 (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/eu/kanade/presentation/more/settings/widget/TriStateListDialog.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2331516f6e4e252b371225305cacdbf518f0e5e6766deaaaeb44f9219d9df736"}},{"ruleId":"D1","level":"warning","message":{"text":"NotificationReceiver.onReceive (cyclomatic 18): NotificationReceiver.onReceive has cyclomatic complexity 18 (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/eu/kanade/tachiyomi/data/notification/NotificationReceiver.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"57270703facfbce4fce37937151b57a2a8238d1231dce65edd9dd45afec5379a"}},{"ruleId":"D1","level":"warning","message":{"text":"MainActivity.onCreate (cyclomatic 18): MainActivity.onCreate has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abfb8cfe05ecf7ce73931469b1f46d0cfebc97660139b14d4f0d5cb5039638c"}},{"ruleId":"D1","level":"warning","message":{"text":"MangaScreenModel.toggleSelection (cyclomatic 18): MangaScreenModel.toggleSelection has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"462f672397085b921491677ce743fd7fdc10a581338e3d7c6231a98baadea92c"}},{"ruleId":"D1","level":"warning","message":{"text":"PreferenceRestorer.restorePreferences (cyclomatic 17): PreferenceRestorer.restorePreferences has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/restorers/PreferenceRestorer.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"582b508b0c17d0dd85bfecc44c5515095658728bdc05e3cf563bba439ac2f856"}},{"ruleId":"D1","level":"warning","message":{"text":"LibraryTab.Content (cyclomatic 17): LibraryTab.Content 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/eu/kanade/tachiyomi/ui/library/LibraryTab.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c126fd2884d3b73dbe3470603659c64be34621a13c949dd66923b6e426fb9e03"}},{"ruleId":"D1","level":"warning","message":{"text":"MigrateMangaUseCase.invoke (cyclomatic 17): MigrateMangaUseCase.invoke has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/mihon/domain/migration/usecases/MigrateMangaUseCase.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5693de48e55c47f307626ad0fb8fd1ed5c6fca1f8f397fca41a89213921bc0a4"}},{"ruleId":"D1","level":"warning","message":{"text":"PreferenceItemKt.PreferenceItem (cyclomatic 16): PreferenceItemKt.PreferenceItem has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/more/settings/PreferenceItem.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8318e5b9332919e0270af3fc6e2aa97528069fd7dc9c17f60956405ae66c02c3"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionLoader.loadExtension (cyclomatic 16): ExtensionLoader.loadExtension has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19cc6824f403754d6ea7e66414b67bb090d4ffd2675070373b0428a14b14e42"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowseSourceScreen.Content (cyclomatic 16): BrowseSourceScreen.Content has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceScreen.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fcaa95a02a7f2ac2979d6fecd02d3757b7eb6cd996fcf16b104524c459b650"}},{"ruleId":"D1","level":"warning","message":{"text":"ButtonElevation.animateElevation (cyclomatic 16): ButtonElevation.animateElevation has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presentation-core/src/main/java/tachiyomi/presentation/core/components/material/Button.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28bebd02d72a9cbcdea4161f09be7f962f000aee0af6b888c57cc27160f04e2"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageUtil.chooseBackground (cognitive 106): ImageUtil.chooseBackground has cognitive complexity 106 (threshold 15). Drivers by points: if/else 59, boolean chains 30, match/switch 14, loops 3 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/common/src/main/kotlin/tachiyomi/core/common/util/system/ImageUtil.kt"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21cc8738622d8ed0cbd1d60fec59ab1156d5c6c6d916f18f4255b36ccb58302"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncChaptersWithSource.await (cognitive 42): SyncChaptersWithSource.await has cognitive complexity 42 (threshold 15). Drivers by points: if/else 33, boolean chains 8, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/domain/chapter/interactor/SyncChaptersWithSource.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"32043ef1d49e3ac0ad2df93ab2023aad85ff83d40536e3578d5208352ba7d9d0"}},{"ruleId":"D2","level":"warning","message":{"text":"PagerViewer.handleKeyEvent (cognitive 38): PagerViewer.handleKeyEvent has cognitive complexity 38 (threshold 15). Drivers by points: if/else 35, boolean chains 2, match/switch 1 (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3070d55feee001a89243ce25c7509fe9b50709eef0d023cd25dce4f616da559e"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrationListScreenModel.runMigrations (cognitive 35): MigrationListScreenModel.runMigrations has cognitive complexity 35 (threshold 15). Drivers by points: if/else 22, error handling 8, boolean chains 4, 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/mihon/feature/migration/list/MigrationListScreenModel.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b4bfffe8774a954863029498979d75b659ce8f591012d262ab5744d76ea0e5"}},{"ruleId":"D2","level":"warning","message":{"text":"Detector.onTouchEvent (cognitive 34): Detector.onTouchEvent has cognitive complexity 34 (threshold 15). Drivers by points: if/else 29, boolean chains 4, match/switch 1 (nesting depth added 18). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonRecyclerView.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"615a5e909358494ad5400ad88a3bf7ac5ed534f8f5db55c7e006ecff368711d9"}},{"ruleId":"D2","level":"warning","message":{"text":"MangaScreenModel.toggleSelection (cognitive 30): MangaScreenModel.toggleSelection has cognitive complexity 30 (threshold 15). Drivers by points: if/else 26, boolean chains 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fe78089382b55e843bb1451ea086fa962d64bdb61e7faddc34210b60dd2e3f"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdatesScreenModel.toggleSelection (cognitive 27): UpdatesScreenModel.toggleSelection has cognitive complexity 27 (threshold 15). Drivers by points: if/else 26, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/updates/UpdatesScreenModel.kt"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed89b319be1d2767bb52e58f81a6c442b725a761162f45c349d8e6e505bca49"}},{"ruleId":"D2","level":"warning","message":{"text":"WebtoonViewer.handleKeyEvent (cognitive 24): WebtoonViewer.handleKeyEvent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21, boolean chains 2, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonViewer.kt"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a577884b5ce63b3334c9c9feb8c0bbff09d6ad0e6cb562bb6d4538a89679f36"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowseSourceScreenModel.searchGenre (cognitive 23): BrowseSourceScreenModel.searchGenre has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, match/switch 5, loops 4, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceScreenModel.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"170de65f17c633e87e1865fdb96ebf78f2374e47c9b6ddd96ec44a23402c72fd"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrateMangaUseCase.invoke (cognitive 22): MigrateMangaUseCase.invoke has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 4, 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/mihon/domain/migration/usecases/MigrateMangaUseCase.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0439495fa8c56ae4cf02d6a3ca94cd178110747a9e40c1ad63985c8f5fb5eb21"}},{"ruleId":"D2","level":"warning","message":{"text":"PreferenceRestorer.restorePreferences (cognitive 21): PreferenceRestorer.restorePreferences has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, error handling 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/restorers/PreferenceRestorer.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc793bf5ce6c1f88c0cd1b4a9701543e43a053bb4fa61424dae116cd0d0ce92"}},{"ruleId":"D2","level":"warning","message":{"text":"MangaScreenModel.toggleFavorite (cognitive 21): MangaScreenModel.toggleFavorite has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, match/switch 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1bf99382fc15fb12f6da5e22357cbf848d8dfc4a7ee39a936f4495cf85ac29"}},{"ruleId":"D2","level":"warning","message":{"text":"VerticalFastScrollerKt.VerticalFastScroller (cognitive 21): VerticalFastScrollerKt.VerticalFastScroller has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, boolean chains 10 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f85c10f7d8fb843e7dec05881cbe750f8177e8c96775eb609a0849e1abed91"}},{"ruleId":"D2","level":"warning","message":{"text":"WebViewScreenContentKt.WebViewScreenContent (cognitive 20): WebViewScreenContentKt.WebViewScreenContent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 3, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/webview/WebViewScreenContent.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f881ca63cc2a24b175669513584325069343e73602c842eb53ecb7bca9abb8cf"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionsScreenKt.ExtensionItemContent (cognitive 19): ExtensionsScreenKt.ExtensionItemContent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 3, match/switch 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/eu/kanade/presentation/browse/ExtensionsScreen.kt"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2ebeb3386f2d59b12e516c42119f6beb45c1d664a2927124e2ef9ea9056e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"RateLimitInterceptor.intercept (cognitive 19): RateLimitInterceptor.intercept has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, error handling 5, loops 3, boolean chains 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/common/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/RateLimitInterceptor.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2097bf19ba22564c8b79a27ed67de3eac54e6958263b5a0c7312a37d371c5267"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseSmartSearchEngine.removeTextInBrackets (cognitive 18): BaseSmartSearchEngine.removeTextInBrackets has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, match/switch 2, 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/mihon/feature/migration/list/search/BaseSmartSearchEngine.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab324f23c45b0b5e07fe8fbb6ef5389bdca3e9eaf564459a21a83e67b0c28a42"}},{"ruleId":"D2","level":"warning","message":{"text":"AppLanguageScreen.getLangs (cognitive 16): AppLanguageScreen.getLangs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/more/settings/screen/appearance/AppLanguageScreen.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1d2c17ddf33ab809aa3293d1ca9d227544b4d85928f7843e87ade437913c20"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivity.onCreate (cognitive 16): MainActivity.onCreate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 5, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1280d5e2d41118888cba052600dfbb9284f102b51e0174f354de2483c90174e4"}},{"ruleId":"D2","level":"warning","message":{"text":"MangaScreen.Content (cognitive 16): MangaScreen.Content has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, match/switch 4, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreen.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"904859a282c9da784ea063f5270aaed87756f256f438bd71ff57988d45bc01f0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MangaScreenModel: TooManyMethods \u2014 55 methods. 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/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a552c3335b410bbd1865188f0ec39b1b65e1d29ff135e63abed33908964c1913"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: manga/MangaScreenModel.kt: FileTooLong \u2014 751 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: snackbarHostState (117-1181). 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/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b80b1d3585aea3af2173ec59c2b4c50e822b4d9f914ccc37eaea973ce2e0213"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReaderViewModel: TooManyMethods \u2014 44 methods. 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/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec36118a0945497aa54da150f2cb9a6d9e558655dd50aa8db5b3b932f3eb71e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReaderActivity: TooManyMethods \u2014 39 methods. 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/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c63278f3a087c692685a61a08a430dee6fd294e9bc65ba8d861eabf8d90aa80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: manga/MangaScreen.kt: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c8d38a13123682aa138d73ea415b01ebf6bdf222c6b90ca5b2a42e5f8c1b20"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reader/ReaderActivity.kt: FileTooLong \u2014 604 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: ReaderActivity (110-993). 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/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3d8dca955811504185384f4798d7609c90307c62096942fb13ad997904e81f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reader/ReaderViewModel.kt: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: libraryPreferences (103-988). 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/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"207f612cf40a28668e53e852704ff9aed49af9be49dacde750cd707c5436cba4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/MangaInfoHeader.kt: FileTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/manga/components/MangaInfoHeader.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86844be87730f14dfbb7869ba0f682fa7aeed9c89e5ac8db6a5c9e06ac835eb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: track/TrackInfoDialog.kt: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackInfoDialog.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14a7534fc0f6c7e86f63d157cb7c828dc1ac8875402cdb4f844b90bfcadeb23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: library/LibraryScreenModel.kt: FileTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: trackerManager (85-825). 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/eu/kanade/tachiyomi/ui/library/LibraryScreenModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b03753a52ea9334cda6b4b8700e04de0fcdaff3b54ec85d11a9ff91d98374c8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HttpSource: TooManyMethods \u2014 33 methods. 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":"source-api/src/commonMain/kotlin/eu/kanade/tachiyomi/source/online/HttpSource.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4b1a4c597315e5040de34c9956a35784c8f2a03928063222f5e08878a4835a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:196-213 | presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:386-403 \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 \u0060presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:196\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":"presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"306edc498834a41c4dc0ae125cd5d230b0a2cd8a5501ef12092737d0f7f4666f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/mihon/feature/upcoming/UpcomingScreenContent.kt:167-183 | app/src/main/java/mihon/feature/upcoming/UpcomingScreenContent.kt:218-234 \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/mihon/feature/upcoming/UpcomingScreenContent.kt:167\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/mihon/feature/upcoming/UpcomingScreenContent.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a57a3f329e48833f5461c86966774270da24b32d355a371065c58d52488470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt:157-172 | app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt:193-208 \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/eu/kanade/presentation/manga/MangaScreen.kt:157\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/eu/kanade/presentation/manga/MangaScreen.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cd7b42cef9c6ac2d2b60228b79f20afcea38b238dbc040d6ed141a7bdb3cdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/more/settings/screen/browse/components/ExtensionStoresDialogs.kt:78-93 | app/src/main/java/eu/kanade/presentation/more/settings/screen/browse/components/ExtensionStoresDialogs.kt:175-190 \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/eu/kanade/presentation/more/settings/screen/browse/components/ExtensionStoresDialogs.kt:78\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/eu/kanade/presentation/more/settings/screen/browse/components/ExtensionStoresDialogs.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6f1b1e6799c098a4bed3177c9c4a18b181bd0cc462d586f527e0668aba1363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:177-192 | presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:367-382 \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 \u0060presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:177\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":"presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"81866756f0ae005769f65b22f85eeb5fb7808ca6db5e9a35fa5fbcfe1627988d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceDialogs.kt:17-31 | app/src/main/java/eu/kanade/presentation/manga/components/MangaDialogs.kt:38-52 \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/eu/kanade/presentation/browse/components/BrowseSourceDialogs.kt:17\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/eu/kanade/presentation/browse/components/BrowseSourceDialogs.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"573df08a1d711746d9a7ef4bde3bf90ac67bcc300796a19d84f9e3071211b41e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt:768-782 | app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackInfoDialog.kt:234-248 \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/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt:768\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/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"13db28ff045f1921c7ba994c174a6854c2e46f25735a50241ffe2afa32dc7075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/history/components/HistoryDialogs.kt:75-88 | app/src/main/java/eu/kanade/presentation/more/settings/screen/browse/components/ExtensionStoresDialogs.kt:118-131 \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/eu/kanade/presentation/history/components/HistoryDialogs.kt:75\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/eu/kanade/presentation/history/components/HistoryDialogs.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa7d63f9e907c096404f982341c48ae38a2beba3cdfeeb5a9779221cd8ee453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/category/components/CategoryDialogs.kt:172-184 | app/src/main/java/eu/kanade/presentation/history/components/HistoryDialogs.kt:75-87 \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/eu/kanade/presentation/category/components/CategoryDialogs.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf24481ac49ff28b76f389b589fa094c59abf4edaf1da0261d95402f566728a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/library/components/LibraryComfortableGrid.kt:44-56 | app/src/main/java/eu/kanade/presentation/library/components/LibraryCompactGrid.kt:45-57 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/eu/kanade/presentation/library/components/LibraryComfortableGrid.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/library/components/LibraryComfortableGrid.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af20525d4ac92f6aa6636e02ecd3c53526c3fea5f839fa57fcb9f4f4e18866c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt:263-275 | app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt:353-365 \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/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt:263\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/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"adad4314249b18e9d46456130eeb140f24b1e67862fb9589ac67d0f893659d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/ui/home/HomeScreen.kt:187-199 | app/src/main/java/eu/kanade/tachiyomi/ui/home/HomeScreen.kt:215-227 \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/eu/kanade/tachiyomi/ui/home/HomeScreen.kt:187\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/eu/kanade/tachiyomi/ui/home/HomeScreen.kt"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a3550e84e3aaae3aacf378fd24c663134c9c899a6cbaf8b431b7eae37620a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt:684-696 | app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt:720-732 \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/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt:684\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/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6193d852529a59b1ad6281bcc8d766b67a3ca75155688fb21370ad7b5d7c100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt:185-196 | app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt:100-111 | app/src/main/java/eu/kanade/tachiyomi/data/track/shikimori/Shikimori.kt:70-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt:185\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/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"012cd2367760b4a156f746c7d9ba0943adb9cb739e18ba1ee93eb1da8a27cc28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt:69-80 | app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceCompactGrid.kt:69-80 \u2014 before extracting anything, compare \u0060app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt\u0060 and \u0060app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceCompactGrid.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 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/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt:69\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/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"683e7a7515b7ebb0657a7d5030c6a2419e4a1d0e101f5d7faca442dfe68ecdcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt:961-972 | app/src/main/java/eu/kanade/tachiyomi/ui/updates/UpdatesScreenModel.kt:346-357 \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/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt:961\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/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35f39a68a5ca7e988408fd7577da3ffc0d1cdc2a27bc178580a7f42abf54db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:88-100 | presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:308-319 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab1a4e714e3113cabc544b5615b286fe3bd05b4816787fd274195846292d76a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:227-238 | presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:416-427 \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 \u0060presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:227\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":"presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef0ee1c019d61c6015edacbe0c525be94fa5042d3b2d2d409bdb83cc948b02b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt:155-166 | app/src/main/java/eu/kanade/tachiyomi/data/track/hikka/Hikka.kt:82-92 | app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt:75-86 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt:155\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/eu/kanade/tachiyomi/data/track/anilist/Anilist.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4c8038b9c40cfd3102e8498cbc0c3c05e1db46094d48200b530710512c4bcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt:46-56 | app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceCompactGrid.kt:46-56 \u2014 before extracting anything, compare \u0060app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt\u0060 and \u0060app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceCompactGrid.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 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/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt:46\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/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"397abda7bcb018f38f1d12480e25f9c5d961d1c6676073ca0d156ad1ebf4ef48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt:327-337 | app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt:567-577 \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/eu/kanade/presentation/manga/MangaScreen.kt:327\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/eu/kanade/presentation/manga/MangaScreen.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c53c9ee782585a27712ab9f3590769381c774423cc9d6d8de6a3014341b59e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/data/notification/NotificationReceiver.kt:450-460 | app/src/main/java/eu/kanade/tachiyomi/data/notification/NotificationReceiver.kt:477-487 \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/eu/kanade/tachiyomi/data/notification/NotificationReceiver.kt:450\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/eu/kanade/tachiyomi/data/notification/NotificationReceiver.kt"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc76c326cff390ad9d8f0b0cc15fa4189e259c36226f30c2826389d2d7592807"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/data/track/mangabaka/MangaBaka.kt:97-107 | app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt:97-107 \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/eu/kanade/tachiyomi/data/track/mangabaka/MangaBaka.kt:97\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/eu/kanade/tachiyomi/data/track/mangabaka/MangaBaka.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0143792de5ea6066eb43fc0b37ffe30527609bbf0a4075862bdb5297b91d1b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/MigrateSourceSearchScreen.kt:123-133 | app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceScreen.kt:235-246 \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/eu/kanade/tachiyomi/ui/browse/migration/search/MigrateSourceSearchScreen.kt:123\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/eu/kanade/tachiyomi/ui/browse/migration/search/MigrateSourceSearchScreen.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d80d125076b24affe17d5eded4a5e1858683e9f0d1752af4662044214b5789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt:983-993 | app/src/main/java/eu/kanade/tachiyomi/ui/updates/UpdatesScreenModel.kt:368-378 \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/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt:983\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/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3699e43800239a9d23f520a5c2644e0aac55903a072acf106e03f3d338c6cc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt:389-399 | app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt:91-101 \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/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt:389\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/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af9795b03eb670f393cb5cb88dbcd5cb13b11f23f09d6e99907149936b7b8ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt:96-106 | app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonPageHolder.kt:136-146 \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/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt:96\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/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd783ea76348361cb2574767ec917d7b1d74ec6afa73edfdac8014c3d0a622b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewerAdapter.kt:48-58 | app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonAdapter.kt:39-49 \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/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewerAdapter.kt:48\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/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewerAdapter.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84ea8fa68c0817298182b036a67ea8f14b2886ab3fbfad75a1ec4b07511d1cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): core/common/src/main/kotlin/eu/kanade/tachiyomi/network/DohProviders.kt:42-51 | core/common/src/main/kotlin/eu/kanade/tachiyomi/network/DohProviders.kt:56-65 | core/common/src/main/kotlin/eu/kanade/tachiyomi/network/DohProviders.kt:68-77 | core/common/src/main/kotlin/eu/kanade/tachiyomi/network/DohProviders.kt:80-89 | core/common/src/main/kotlin/eu/kanade/tachiyomi/network/DohProviders.kt:148-157 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/common/src/main/kotlin/eu/kanade/tachiyomi/network/DohProviders.kt:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/common/src/main/kotlin/eu/kanade/tachiyomi/network/DohProviders.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"152319141e43ceefb80b63dfad551c9e2db2155d8809c32c77a90b7a48262ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/java/eu/kanade/tachiyomi/data/track/kavita/Kavita.kt:56-65 | app/src/main/java/eu/kanade/tachiyomi/data/track/komga/Komga.kt:53-63 | app/src/main/java/eu/kanade/tachiyomi/data/track/suwayomi/Suwayomi.kt:49-59 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/data/track/kavita/Kavita.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"398e566dbfec9b67755eb25fb2cdce7ed4d0db69969422d6eee7c6c3cb49e7d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt:32-41 | app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceCompactGrid.kt:32-41 \u2014 before extracting anything, compare \u0060app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt\u0060 and \u0060app/src/main/java/eu/kanade/presentation/browse/components/BrowseSourceCompactGrid.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 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/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt:32\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/eu/kanade/presentation/browse/components/BrowseSourceComfortableGrid.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e85f6cb3b9732077022e1cae3f5ddf5eb6da51790c63da877fd6cf73177183e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/components/TabbedDialog.kt:92-101 | app/src/main/java/eu/kanade/presentation/track/TrackInfoDialogHome.kt:330-339 \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/eu/kanade/presentation/components/TabbedDialog.kt:92\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/eu/kanade/presentation/components/TabbedDialog.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8c76243602f57f60f0df73a4aa3ab1b1aa69e0699f6f6d58ec2166c2a242f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt:204-213 | app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt:299-308 \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/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt:204\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/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14310789398d67c7ad47b9719577c400e1339a1238cf8de1ce531afc8574098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt:214-223 | app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt:309-318 \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/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt:214\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/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ddf956fab8870d395796b7e0cd59a0f9ab203db32715059cd46834663ad73b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt:288-297 | app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonPageHolder.kt:292-301 \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/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt:288\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/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b5746acfdaf542695423f917d93096cc728e10c9eaf2a38578b225121d90a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/manga/components/MangaBottomActionMenu.kt:85-93 | app/src/main/java/eu/kanade/presentation/manga/components/MangaBottomActionMenu.kt:246-254 \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/eu/kanade/presentation/manga/components/MangaBottomActionMenu.kt:85\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/eu/kanade/presentation/manga/components/MangaBottomActionMenu.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9825092ff8fc00fce90b42728d9d6b032ef8e0aa7fc7a5eb679f57f458f09c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsLibraryScreen.kt:220-228 | app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsLibraryScreen.kt:234-242 \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/eu/kanade/presentation/more/settings/screen/SettingsLibraryScreen.kt:220\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/eu/kanade/presentation/more/settings/screen/SettingsLibraryScreen.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b7b67595f46d5774db1b0d4301128f460ccac6f3c9fe31a245180178c32cfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/KitsuApi.kt:173-181 | app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/KitsuApi.kt:194-202 \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/eu/kanade/tachiyomi/data/track/kitsu/KitsuApi.kt:173\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/KitsuApi.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e210741d76553930f4cb2940638131c7858f8e349ee0bc48ce857c5ef7c43a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/common/src/main/kotlin/eu/kanade/tachiyomi/network/DohProviders.kt:25-33 | core/common/src/main/kotlin/eu/kanade/tachiyomi/network/DohProviders.kt:102-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/common/src/main/kotlin/eu/kanade/tachiyomi/network/DohProviders.kt:25\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/common/src/main/kotlin/eu/kanade/tachiyomi/network/DohProviders.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f07f04889c0aa5339de3ca57885a4538ab69e3ad5b51fd6d0061d0a6748ce4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/manga/components/MangaBottomActionMenu.kt:96-103 | app/src/main/java/eu/kanade/presentation/manga/components/MangaBottomActionMenu.kt:257-264 \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/eu/kanade/presentation/manga/components/MangaBottomActionMenu.kt:96\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/eu/kanade/presentation/manga/components/MangaBottomActionMenu.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"667ad3d97bf20bdd9dcdfa32864676ce1cc88867477a217d936bcd25474b512c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt:43-50 | app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt:61-68 \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/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf0f3a2dfdb98b89cebbb90245b7c9fe74f6efa32f59624e307fb82682f2bef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/ui/history/HistoryScreenModel.kt:189-197 | app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt:350-357 \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/eu/kanade/tachiyomi/ui/history/HistoryScreenModel.kt:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/history/HistoryScreenModel.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"606ce3cc3e1e15f05807e5de41202b86c3ec5ac7009d8a10cad8faa8f7755749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/eu/kanade/domain/chapter/model/ChapterFilter.kt:44-50 | app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt:1169-1175 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/domain/chapter/model/ChapterFilter.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c601ef3951b5874dfcb08e78a2e4a5d7f80a52ec487065f98255a2f77f07ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:335-340 | presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:435-440 | presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:448-453 \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. 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":"presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1fba8c5fcaf5990e373e1e729ea5a7996968aa1b11d62eacd2df8a86209e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/eu/kanade/tachiyomi/data/notification/NotificationReceiver.kt:89-94 | app/src/main/java/eu/kanade/tachiyomi/data/notification/NotificationReceiver.kt:101-106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/data/notification/NotificationReceiver.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e22bc0b7d8bf6636bcab4be636237da00a8299d592c01b823debd3cda4e666"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:79-84 | presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:297-302 \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 \u0060presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt:79\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":"presentation-core/src/main/java/tachiyomi/presentation/core/components/VerticalFastScroller.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"037a969feafa75ab7dc5ac80b9de115e44c0e26a7816609cebeb0a51efe8c240"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/eu/kanade/presentation/manga/DuplicateMangaDialog.kt:256-260 | app/src/main/java/eu/kanade/presentation/manga/components/MangaInfoHeader.kt:517-521 \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/eu/kanade/presentation/manga/DuplicateMangaDialog.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f45c082dc5c23b7312e5e96315f990c19957d68a07f69dafc5f4a00ed7f93f"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"03b9b8e779f30802087a84afc7be84225156cebced079b88202c7e8a8aaef01a"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5fde60334e2674b5cca0e3bc6f6e434e1e6383311c6ef59133f9178bf108211e"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt: app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt changed 5 times in last 90 days, max complexity 16. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3d760490c6df757c3837d82bdaf6693b2d1f639262b84e39b625dd024b94f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt: app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt changed 4 times in last 90 days, max complexity 20. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b845d1fad47e99d610fa29dd77ff4432a3593f59179c5dbac0b17551f11485"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt: app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt changed 4 times in last 90 days, max complexity 18. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c34687ef03eae7d0225ffc505d2648dfb1dbf824cb46c3ee7cc270c4961a74"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt: app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt changed 4 times in last 90 days, max complexity 15. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dd043101249e9cdef0388ae2f3d0f5a15055eccad58b0d933883b1cbd86ffd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryScreenModel.kt: app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryScreenModel.kt changed 3 times in last 90 days, max complexity 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryScreenModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f6f615b236d292fd1acf3863f17bf76e1e95f6b6e278ba7d32d5a0627cd4d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/eu/kanade/domain/chapter/interactor/SyncChaptersWithSource.kt: app/src/main/java/eu/kanade/domain/chapter/interactor/SyncChaptersWithSource.kt changed 2 times in last 90 days, max complexity 27. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/domain/chapter/interactor/SyncChaptersWithSource.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e9bcdc3ae60d7e3fbbb07c08136f8dd8d581ff30328b8f9d945fd754acfafd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/mihon/feature/migration/list/MigrationListScreenModel.kt: app/src/main/java/mihon/feature/migration/list/MigrationListScreenModel.kt changed 2 times in last 90 days, max complexity 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/mihon/feature/migration/list/MigrationListScreenModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e501ddf5f6ee0195ec19edfe16317c2337ddb4245185f692dc2aabe0ac8473"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/eu/kanade/presentation/browse/ExtensionsScreen.kt: app/src/main/java/eu/kanade/presentation/browse/ExtensionsScreen.kt changed 2 times in last 90 days, max complexity 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/browse/ExtensionsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46373eef0361d5464db80a6a6dbe0ef3704e8d2b1494359903929bd23ea039f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/eu/kanade/presentation/more/settings/PreferenceItem.kt: app/src/main/java/eu/kanade/presentation/more/settings/PreferenceItem.kt changed 2 times in last 90 days, max complexity 16. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/more/settings/PreferenceItem.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"088fe1986efb2fd60b7c7ad4b28e07812b759083d3207999a29d8d453eceb627"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 33 significant file(s) lose their only recent owner: app/src/main/java/mihon/feature/migration/config/MigrationConfigScreen.kt, app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt, app/src/main/java/eu/kanade/presentation/reader/components/ChapterNavigator.kt, app/src/main/java/mihon/feature/migration/config/MigrationConfigScreenSheet.kt, app/src/main/java/eu/kanade/presentation/manga/components/MangaNotesTextArea.kt, app/src/main/java/eu/kanade/presentation/reader/appbars/ReaderAppBars.kt, app/src/main/java/eu/kanade/presentation/more/settings/Preference.kt, app/src/main/java/mihon/feature/migration/dialog/MigrateMangaDialog.kt (\u002B25 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cb88477d21cdee9cddfadf710d6dcd1887482e7756eb4139f9b8077ce3efff75"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 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 (36 single-owned of 374 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a7eb23cae139056e887419de022bae8078c893566ffa716faff591faab3b3a4a"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d267b33d7fb0e5e08963e529602c064162bcd8bad5139843c68fd0618901067d"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9ac9cb1377aafef68132b04d5c852b5156b7ec0bb498a97898f9b24740be6f66"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b242e52b52998a1b3bdfd77c3bbcc8324f6da738694310f1b52072c391644353"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b7cc23e0a33fdb9dba833f841ef0374ce24030036b367675d585ae11d7c393e1"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"07876a9e78f20d9739758670759d2e41d1e54839aac0955e1c8c4205fad5a37c"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a602fab073b53ca2912ab9a626925d014712723148bc6c42255faa128eed2258"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"24b685462eb7b586dab8e8495c1494cd5820d0fc4c3faa3cfb7054bd3ceea42e"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90554a02cde58651caa6d54ef045ed80cb937dbdaa949144f60fcb0ab7da7933"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"27d4a7d00afe2d75df4effc27c30f847adb711a749aee52662b9168d7570f881"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"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"}}]},{"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":"8af5214562f352c8d59c20d27dc6ee793df3749dcb25e113c96656527e232dc5"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"2430fc8bbcdb58075a7f5ecd1e46889189459b6797792efebda8aa11e08d5cf8"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"5810ede3dcae75f4c046758f38591f0cad406e7abec71d4dc134c475949bdb40"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 139 of 374 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 largest first: app/src/main/java/eu/kanade/presentation/manga/DuplicateMangaDialog.kt, presentation-core/src/main/java/tachiyomi/presentation/core/components/material/Button.kt, app/src/main/java/eu/kanade/presentation/track/TrackInfoDialogHome.kt (and 136 more). 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":"D35","level":"warning","message":{"text":"Change coupling: ReaderAppBars.kt \u2194 ReaderActivity.kt: \u0060app/src/main/java/eu/kanade/presentation/reader/appbars/ReaderAppBars.kt\u0060 and \u0060app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt\u0060 change together 63% of the time (12 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/reader/appbars/ReaderAppBars.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5a05f55331bcb1ba6d954beb1c1c4a6b29494330d215dae81093c067e5699a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: UniFileExtensions.kt \u2194 LocalSource.kt: \u0060core/common/src/main/kotlin/tachiyomi/core/common/storage/UniFileExtensions.kt\u0060 and \u0060source-local/src/androidMain/kotlin/tachiyomi/source/local/LocalSource.kt\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/common/src/main/kotlin/tachiyomi/core/common/storage/UniFileExtensions.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"196a880a80d7bdec6dcc91161c5b6c4e663281db89ca8f4b5dd532e057b784d2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DownloadPageLoader.kt \u2194 UniFileExtensions.kt: \u0060app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/DownloadPageLoader.kt\u0060 and \u0060core/common/src/main/kotlin/tachiyomi/core/common/storage/UniFileExtensions.kt\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/DownloadPageLoader.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9c4793c8738b6cfbf3fb56777c553d39e2f5bea733553e3e350c2718aff6da"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: GlobalSearchScreen.kt \u2194 GlobalSearchScreenModel.kt: \u0060app/src/main/java/eu/kanade/presentation/browse/GlobalSearchScreen.kt\u0060 and \u0060app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchScreenModel.kt\u0060 change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/browse/GlobalSearchScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"730dc08ce12d75d64ace9bb1cbfafaa3e6f2b224155e8d6466470d103792a436"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: TabbedScreen.kt \u2194 LibraryTabs.kt: \u0060app/src/main/java/eu/kanade/presentation/components/TabbedScreen.kt\u0060 and \u0060app/src/main/java/eu/kanade/presentation/library/components/LibraryTabs.kt\u0060 change together 50% of the time (13 of the 26 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/components/TabbedScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4e4358a20da234eed6cdf4aa68758592d3dc55b6ae7c56276790f6244ceaa4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MigrateSearchScreen.kt \u2194 GlobalSearchScreen.kt: \u0060app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/MigrateSearchScreen.kt\u0060 and \u0060app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchScreen.kt\u0060 change together 50% of the time (9 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/MigrateSearchScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69daa22a48211e68ea71c0e2f884b687b91aca6ba63df20b157dc2b6ce0f1e95"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: UpdatesScreen.kt \u2194 UpdatesTab.kt: \u0060app/src/main/java/eu/kanade/presentation/updates/UpdatesScreen.kt\u0060 and \u0060app/src/main/java/eu/kanade/tachiyomi/ui/updates/UpdatesTab.kt\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/presentation/updates/UpdatesScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c8ff60a1812c04e4ab3f6b6173f146be20b4ca7b5afee405fc4910356a7dfb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: EpubReader.kt \u2194 UniFileExtensions.kt: \u0060core/archive/src/main/kotlin/mihon/core/archive/EpubReader.kt\u0060 and \u0060core/common/src/main/kotlin/tachiyomi/core/common/storage/UniFileExtensions.kt\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/archive/src/main/kotlin/mihon/core/archive/EpubReader.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3bf9e2d2313e88acb6b401cadd6e3473dec617b86cdcad4bbb565987cd469c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: EpubPageLoader.kt \u2194 UniFileExtensions.kt: \u0060app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/EpubPageLoader.kt\u0060 and \u0060core/common/src/main/kotlin/tachiyomi/core/common/storage/UniFileExtensions.kt\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/EpubPageLoader.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"210b5a964579b670c7a3e5b993b72f2f9349cc103a936e98580bb89151fe153d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ArchivePageLoader.kt \u2194 UniFileExtensions.kt: \u0060app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ArchivePageLoader.kt\u0060 and \u0060core/common/src/main/kotlin/tachiyomi/core/common/storage/UniFileExtensions.kt\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ArchivePageLoader.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"638b13665910eacdbd102ec4727eb4e94badb5d25cbf36b0e5630c81a779c106"}},{"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"}},{"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"}}],"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-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-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-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"CWE-328","shortDescription":{"text":"CWE-328"},"helpUri":"https://cwe.mitre.org/data/definitions/328.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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"CWE-926","shortDescription":{"text":"CWE-926"},"helpUri":"https://cwe.mitre.org/data/definitions/926.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":19,"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."]}]}