Skip to content

ComposeGuard v1.2.4

Latest

Choose a tag to compare

@github-actions github-actions released this 10 Jun 21:27
· 51 commits to master since this release

ComposeGuard v1.2.4

1.2.4

  • More False-Positive Fixes (second pass):

  • DeferStateReads: no longer treats ordinary identifiers (text, index, expanded, progress) as animated state — only values produced by animation/scroll/derived-state builders (including delegated by) are considered frequently-changing.

  • TypeSpecificState: removed the non-canonical collection-factory check that flagged plain mutableListOf<Int>(); only mutableStateOf primitive variants are suggested.

  • ModifierReuse & ContentSlotReused: a modifier or content slot used once per mutually-exclusive if/when branch is no longer reported as reuse — only usages reachable on the same composition pass count.

  • ModifierTopMost: modifiers on content nested inside scope-providing emitters (Scaffold, BoxWithConstraints) or slots that expose a scope parameter are no longer flagged.

  • AvoidComposed: only the real Modifier.composed { } factory is flagged, not unrelated composed() calls.

  • MovableContent: accepts the whole remember family (rememberSaveable, custom remember wrappers) instead of only the literal remember.

  • Tests: added behavioral regression suites for every fix above.