Skip to content

v1.2.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 22 Nov 03:07
· 1 commit to master since this release
5d3e729

Added

  • RedundantCoroutineScopeDetector warns when a androidx.lifecycle.LifecycleOwner, androidx.lifecycle.ViewModel, or android.view.View implements or has a field assignable to kotlinx.coroutines.CoroutineScope.
    Existing scopes are bound to relevant lifecycle events in the system and will prevent coroutines from running past their utility.
    • LifecycleOwner should use lifecycleScope
    • Fragment should use viewLifecycleOwner.lifecycleScope,
    • ViewModel should use viewModelScope
    • View should use findViewTreeLifecycleOwner()?.lifecycleScope
  • FiniteWhenCasesDetector warns when else is used as a when branch when the when subject has finite possibilities
    • This detector works best when applied to an app project with lint.checkDependencies = true in the app module AGP DSL.
  • ForEachFunctionDetector reports forEach and forEachIndexed use and encourages a language for loop replacement
  • SkippedClassLocalOverrideDetector warns when an explicit super method is called outside of the corresponding override.
  • ErrorCatchDetector reports an error when a catch block might catch a java.lang.Error type.

Changed

  • Updated build tooling
  • Treat lint warnings as errors for issues in this library
  • Add spotless