You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @hannesa2! Thanks for opening a new issue! 🍻 We will take a look at Lint as soon as we finish higher priority issues. By the way, #4485 is already included in our future milestone 4.7 so it's in our radar 😄
> Task :owncloudApp:lintReportMdmDebug
Wrote HTML report to file:///home/runner/work/owncloud-android/owncloud-android/owncloudApp/build/reports/lint-results-mdmDebug.html
> Task :owncloudApp:lintMdmDebug FAILED
Lint found 457 errors, 805 warnings. First failure:
/home/runner/work/owncloud-android/owncloud-android/owncloudApp/src/main/java/com/owncloud/android/extensions/FragmentExt.kt:101: Error: Wrong usage of repeatOnLifecycle from ManageAccountsDialogFragment.onStart. [RepeatOnLifecycleWrongUsage from androidx.lifecycle]
repeatOnLifecycle(lifecycleState) {
^
Explanation for issues of type "RepeatOnLifecycleWrongUsage":
The repeatOnLifecycle APIs should be used when the View is created,
that is in the onCreate lifecycle method for Activities, or
onViewCreated in case you're using Fragments.
Vendor: Android Open Source Project
Identifier: androidx.lifecycle
Feedback: https://issuetracker.google.com/issues/new?component=413132
RepeatOnLifecycleWrongUsage still fires — FragmentExt.kt:108 calls repeatOnLifecycle inside collectLatestLifecycleFlow, which runs in lifecycleScope.launch from arbitrary lifecycle points rather than onCreate/onViewCreated. Not suppressed: owncloudApp/lint.xml only ignores MissingTranslation/MissingQuantity.
No CI lint gate: none of the 10 workflows in .github/workflows/ run lint/lintDebug (detekt runs, lint does not), so the count is free to grow — which matches your 422→457 observation.
This is the same rule already tracked as the sibling issue 4485 (milestone 4.7); this issue's distinct, actionable part is the missing ./gradlew :owncloudApp:lint* step in CI. Note PR 4886 ("fix: make lint work") is closed unmerged, so the regression is unaddressed.
Suggest: consolidate the lint-rule fixes under 4485 and keep this one scoped to "add a lint check to CI" (baseline-gated if a big-bang fix isn't feasible). No fix pushed from here — flagging state only.
Activity
joragua commentedon Sep 30, 2025
Hi @hannesa2! Thanks for opening a new issue! 🍻 We will take a look at Lint as soon as we finish higher priority issues. By the way, #4485 is already included in our future milestone
4.7so it's in our radar 😄hannesa2 commentedon Feb 25, 2026
Still the same on recent master 422 errors !
hannesa2 commentedon Jun 8, 2026
Against my experience, that contributions make no sense here (sorry to say this), I made a fix of this error #4886.
But it only fixes this !
hannesa2 commentedon Jun 8, 2026
I see I reported lint issues twice #4485
hannesa2 commentedon Jun 8, 2026
Next lint issue would be this:
hannesa2 commentedon Jun 8, 2026
You increase lint errors from 422 to 457, even I removed one.
Really, you should add lint check in CI !
DeepDiver1975 commentedon Jul 2, 2026
Confirmed on current master (
90f1483, 4.8.2):RepeatOnLifecycleWrongUsagestill fires —FragmentExt.kt:108callsrepeatOnLifecycleinsidecollectLatestLifecycleFlow, which runs inlifecycleScope.launchfrom arbitrary lifecycle points rather thanonCreate/onViewCreated. Not suppressed:owncloudApp/lint.xmlonly ignoresMissingTranslation/MissingQuantity..github/workflows/runlint/lintDebug(detekt runs, lint does not), so the count is free to grow — which matches your 422→457 observation.This is the same rule already tracked as the sibling issue 4485 (milestone 4.7); this issue's distinct, actionable part is the missing
./gradlew :owncloudApp:lint*step in CI. Note PR 4886 ("fix: make lint work") is closed unmerged, so the regression is unaddressed.Suggest: consolidate the lint-rule fixes under 4485 and keep this one scoped to "add a lint check to CI" (baseline-gated if a big-bang fix isn't feasible). No fix pushed from here — flagging state only.
🤖 Generated with Claude Code