Releases: Faithlife/AndroidLint
Releases · Faithlife/AndroidLint
v2.0.0
v1.2.0
Added
RedundantCoroutineScopeDetectorwarns when aandroidx.lifecycle.LifecycleOwner,androidx.lifecycle.ViewModel, orandroid.view.Viewimplements or has a field assignable tokotlinx.coroutines.CoroutineScope.
Existing scopes are bound to relevant lifecycle events in the system and will prevent coroutines from running past their utility.LifecycleOwnershould uselifecycleScopeFragmentshould useviewLifecycleOwner.lifecycleScope,ViewModelshould useviewModelScopeViewshould usefindViewTreeLifecycleOwner()?.lifecycleScope
FiniteWhenCasesDetectorwarns whenelseis used as awhenbranch when thewhensubject has finite possibilities- This detector works best when applied to an app project with
lint.checkDependencies = truein the app module AGP DSL.
- This detector works best when applied to an app project with
ForEachFunctionDetectorreportsforEachandforEachIndexeduse and encourages a language for loop replacementSkippedClassLocalOverrideDetectorwarns when an explicit super method is called outside of the corresponding override.ErrorCatchDetectorreports an error when a catch block might catch ajava.lang.Errortype.
Changed
- Updated build tooling
- Treat lint warnings as errors for issues in this library
- Add spotless
v1.1.6
v1.1.5
Added
- Changelog automation
Changed
- Issues related to Java 8 time APIs (java.time) are warnings instead of errors
Fixed
- Updated compile (31), target (31), and minimum sdk (25)
- Use of period at the end of a lint message
- Updated development tools