[stable-25.0.x] Fix detekt issues - #6584
Merged
Merged
Conversation
AndyScherzinger
marked this pull request as ready for review
August 26, 2026 06:37
BaseActivity imported MainActivity from its own package, which detekt flagged as NoUnusedImports. Dropping it takes stable-25.0.x from 110 to 109 issues, back under the maxIssues limit. The NotificationWorker half of #6583 is deliberately left out: the Boolean-returning initDecryptedData() it refactors only arrives with #6580, so there is no ReturnCount finding to fix here yet. Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
AndyScherzinger
force-pushed
the
backport/6583/stable-25.0.x
branch
from
August 26, 2026 06:49
02cac95 to
7780d9f
Compare
AndyScherzinger
added a commit
that referenced
this pull request
Aug 26, 2026
Returning Boolean from initDecryptedData() gave it a third return statement, which detekt flags as ReturnCount. Split the cleartext and encrypted subject paths into their own helpers so each has a single exit. The complexity the early bail-out adds to doWork() is left as is, since master carries that same finding. Once the import removal from #6584 is in, the score lands at exactly 110. Assisted-by: Claude Code:claude-opus-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
AndyScherzinger
added a commit
that referenced
this pull request
Aug 26, 2026
Returning Boolean from initDecryptedData() gave it a third return statement, which detekt flags as ReturnCount. Split the cleartext and encrypted subject paths into their own helpers so each has a single exit. The complexity the early bail-out adds to doWork() is left as is, since master carries that same finding. Once the import removal from #6584 is in, the score lands at exactly 110. Assisted-by: Claude Code:claude-opus-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Contributor
|
APK file: https://github.com/nextcloud/talk-android/actions/runs/32939840642/artifacts/9596434260 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #6583
Warning, This backport's changes differ from the original and might be incomplete鈿狅笍
Todo
Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.