{"$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"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"DetailsFragment.collectData (cyclomatic 21): DetailsFragment.collectData has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/muratozturk/mova/ui/details/DetailsFragment.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42dd0582fbdd638faa76a2eb1f4a62c1d05162a0a6ddc0cc13895a5a5f208a2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MovaRepositoryImpl: TooManyMethods \u2014 39 methods. Most of these members implement repository.MovaRepository (38 of 39 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/muratozturk/mova/data/repository/MovaRepositoryImpl.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2c8f9518c649fa421f1cc268b93bf98bfb7a9942bc219ff5032c87b188912a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt:152-169 | app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithsocialmedia/SignInWithSocialFragment.kt:86-103 | app/src/main/java/com/muratozturk/mova/ui/authentication/signup/SignUpFragment.kt:160-177 \u2014 before extracting anything, compare \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt\u0060 and \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signup/SignUpFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcd08281ef4b6ffb9c9f2663569d9f6fc6897ab5302ebb75ef916dbf8a78468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt:209-227 | app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithsocialmedia/SignInWithSocialFragment.kt:143-160 | app/src/main/java/com/muratozturk/mova/ui/authentication/signup/SignUpFragment.kt:217-234 \u2014 before extracting anything, compare \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt\u0060 and \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signup/SignUpFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt:209\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/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"668707a55d655ab021ebef28633d0237789c87ef2918148bea998fa11b2eeb36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt:63-80 | app/src/main/java/com/muratozturk/mova/ui/authentication/signup/SignUpFragment.kt:59-77 \u2014 before extracting anything, compare \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt\u0060 and \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signup/SignUpFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt:63\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/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6addd165116a0349c7076e1865110d1c1f23135d437c63fd7fdeac329a246f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt:88-104 | app/src/main/java/com/muratozturk/mova/ui/authentication/signup/SignUpFragment.kt:83-104 \u2014 before extracting anything, compare \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt\u0060 and \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signup/SignUpFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt:88\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/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f37479234393f4e3f4b26fef46589f0f1b265248aee6a80e9067dced2aa6a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/explore/ExploreFragment.kt:120-138 | app/src/main/java/com/muratozturk/mova/ui/explore/ExploreFragment.kt:178-194 \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/com/muratozturk/mova/ui/explore/ExploreFragment.kt:120\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/com/muratozturk/mova/ui/explore/ExploreFragment.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a01dd50076a34a837a1490515c2fe05a84871f95ed3ba9b018fbf550cfefd29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/details/DetailsFragment.kt:141-156 | app/src/main/java/com/muratozturk/mova/ui/details/DetailsFragment.kt:229-244 \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/com/muratozturk/mova/ui/details/DetailsFragment.kt:141\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/com/muratozturk/mova/ui/details/DetailsFragment.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0be6b52445368467dab867c3c496326574c20d8b741a395879d59429992f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/details/DetailsFragment.kt:162-177 | app/src/main/java/com/muratozturk/mova/ui/details/DetailsFragment.kt:250-265 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/muratozturk/mova/ui/details/DetailsFragment.kt:162\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/com/muratozturk/mova/ui/details/DetailsFragment.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"342e1fee79f57f8c4944cdd7076108c69ecd61684ee46f031c346318112d8677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/home/HomeFragment.kt:133-148 | app/src/main/java/com/muratozturk/mova/ui/home/now_playing_movies/NowPlayingMoviesFragment.kt:90-106 \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/com/muratozturk/mova/ui/home/HomeFragment.kt:133\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/com/muratozturk/mova/ui/home/HomeFragment.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c10ccb20eda5cfff9716512170bd36c7f1a40a5894d6689ebd7dffe07156e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/home/HomeFragment.kt:167-182 | app/src/main/java/com/muratozturk/mova/ui/home/now_playing_series/NowPlayingSeriesFragment.kt:90-106 \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/com/muratozturk/mova/ui/home/HomeFragment.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/muratozturk/mova/ui/home/HomeFragment.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"92cc0961dc7d54b95564ad885b02a901334f07d7895cedc726a983fb9a7f2e6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/details/DetailsFragment.kt:89-105 | app/src/main/java/com/muratozturk/mova/ui/details/DetailsFragment.kt:179-193 \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/com/muratozturk/mova/ui/details/DetailsFragment.kt:89\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/com/muratozturk/mova/ui/details/DetailsFragment.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64815d9b6287bb955d92120928d2b3e534584e3607caf53f195f5fa5310f293"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/details/similar/SimilarFragment.kt:77-91 | app/src/main/java/com/muratozturk/mova/ui/details/similar/SimilarFragment.kt:130-145 \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/com/muratozturk/mova/ui/details/similar/SimilarFragment.kt:77\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/com/muratozturk/mova/ui/details/similar/SimilarFragment.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6bc6f1cd9fe4127ab37991ce4bd06284b14cbb5583c92d814e20f047ace560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/explore/ExploreFragment.kt:92-106 | app/src/main/java/com/muratozturk/mova/ui/explore/ExploreFragment.kt:147-162 \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/com/muratozturk/mova/ui/explore/ExploreFragment.kt:92\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/com/muratozturk/mova/ui/explore/ExploreFragment.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"facda154015b7f227f683a10b106f8525af7a1fb3deed3dad7cd989e403552ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/details/images/ImagesFragment.kt:49-63 | app/src/main/java/com/muratozturk/mova/ui/person/images/PersonImagesFragment.kt:50-63 \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/com/muratozturk/mova/ui/details/images/ImagesFragment.kt:49\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/com/muratozturk/mova/ui/details/images/ImagesFragment.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0145099013fa035151aeb080d723dd9317fcc4dc830952b594d84e27399761e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/details/DetailsFragment.kt:117-129 | app/src/main/java/com/muratozturk/mova/ui/details/DetailsFragment.kt:205-217 \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/com/muratozturk/mova/ui/details/DetailsFragment.kt:117\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/com/muratozturk/mova/ui/details/DetailsFragment.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8c1c374f3511d99c7f31345e44254f825bc77ecfb273f2b08e4006977e5b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/details/similar/SimilarFragment.kt:98-110 | app/src/main/java/com/muratozturk/mova/ui/details/similar/SimilarFragment.kt:154-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/muratozturk/mova/ui/details/similar/SimilarFragment.kt:98\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/com/muratozturk/mova/ui/details/similar/SimilarFragment.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ee461ba5241f7d12f1486c517fae511a8fa1a633d5c9f671c884e81bd56c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/dialog/DialogFragment.kt:34-45 | app/src/main/java/com/muratozturk/mova/ui/dialog/download/DownloadDialogFragment.kt:29-40 \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/com/muratozturk/mova/ui/dialog/DialogFragment.kt:34\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/com/muratozturk/mova/ui/dialog/DialogFragment.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"319bd0ad1060a636ad3e5edc3e5df43c780bc6f829a630212a8f79f1c25f1772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/profile/ProfileFragment.kt:124-135 | app/src/main/java/com/muratozturk/mova/ui/profile/language/LanguageFragment.kt:58-69 \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/com/muratozturk/mova/ui/profile/ProfileFragment.kt:124\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/com/muratozturk/mova/ui/profile/ProfileFragment.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4ccb8b2eb4d4b32b8ca2b53794a58b811d4986f98b02a8c32106f8b5c81894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/muratozturk/mova/ui/download/delete/DeleteDownloadFragment.kt:28-38 | app/src/main/java/com/muratozturk/mova/ui/filter/FilterFragment.kt:36-46 | app/src/main/java/com/muratozturk/mova/ui/profile/logout/LogoutDialogFragment.kt:26-36 \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/com/muratozturk/mova/ui/download/delete/DeleteDownloadFragment.kt:28\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/com/muratozturk/mova/ui/download/delete/DeleteDownloadFragment.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"640913d0f164797c15b18fa3454e6c2935b670616a4ecb801fe74d7f7dbcfc0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/muratozturk/mova/ui/player/VideoPlayerFragment.kt:69-79 | app/src/main/java/com/muratozturk/mova/ui/profile/ProfileFragment.kt:71-82 | app/src/main/java/com/muratozturk/mova/ui/profile/ProfileFragment.kt:97-108 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/muratozturk/mova/ui/player/VideoPlayerFragment.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/com/muratozturk/mova/ui/player/VideoPlayerFragment.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdd7c84bd8a4fcc37b4ba7ab4f3d832a9c906a5c684930224dfa30d66b949d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt:234-243 | app/src/main/java/com/muratozturk/mova/ui/authentication/signup/SignUpFragment.kt:241-250 \u2014 before extracting anything, compare \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt\u0060 and \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signup/SignUpFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt:234\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/com/muratozturk/mova/ui/authentication/signinwithpassword/SignInWithPasswordFragment.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0981777a093acfeb65c331b29027ce381171a94d704995d018f2becf6114a3fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/data/paging_source/MoviePagingSource.kt:67-74 | app/src/main/java/com/muratozturk/mova/data/paging_source/SeriePagingSource.kt:67-74 \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/com/muratozturk/mova/data/paging_source/MoviePagingSource.kt:67\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/com/muratozturk/mova/data/paging_source/MoviePagingSource.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b2f5bba78438545cd89200395bdecd63ae05b861c4095f448354d03620b125"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/muratozturk/mova/common/LoadingScreen.kt:19-24 | app/src/main/java/com/muratozturk/mova/common/LoadingScreen.kt:36-41 \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/com/muratozturk/mova/common/LoadingScreen.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7761eef42bf462e66b4461f8d7e31d030e1bf901bc7dfee11fd993f1319292dd"}},{"ruleId":"D16","level":"warning","message":{"text":"single-maintainer \u2014 knowledge-concentration (bus factor) risk: single-maintainer \u2014 knowledge-concentration (bus factor) risk (1 author(s) across 54 commit(s) sampled)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b4b49d961df742f0e507f4cc5c8094fb077ba0391a27fd015d18320865187719"}},{"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":"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":"3cdc7b6201c463ffd467731cf16e2375a6aea1e0c532081680026c931da7d9b3"}},{"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":"b3b1a788162d3a3ae59863a1fc988ff18dc7141c51a63474dcb60751b2bc8a81"}},{"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":"D34","level":"note","message":{"text":"Dormant codebase: 46 of 46 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 46 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"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-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":4,"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."]}]}