Skip to content

chore: remove redundant compose Exclude annotation#469

Merged
hopeman15 merged 1 commit into
mainfrom
chore/remove-compose-exclude-annotation
Apr 26, 2026
Merged

chore: remove redundant compose Exclude annotation#469
hopeman15 merged 1 commit into
mainfrom
chore/remove-compose-exclude-annotation

Conversation

@hopeman15

@hopeman15 hopeman15 commented Apr 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Removes the custom @Exclude annotation (and its 3 declaration files) used to mark @Preview @Composable previews so kover would skip them.
  • The annotation was never wired into the kover excludes filter — the live kover { reports { filters { excludes { ... } } } } block in build.gradle.kts only references *BuildConfig and *Preview. Confirmed by inspecting per-module reportDebug.xml on main: previews already appear there, so removing @Exclude is purely a noop cleanup.
  • Underlying kover bug (Kotlin/kotlinx-kover#270) was closed as not-planned, but annotatedBy("*Preview") is the supported path in current kover (0.8.3).

Closes #67

@hopeman15 hopeman15 force-pushed the chore/remove-compose-exclude-annotation branch from 367eef7 to cd0cc5f Compare April 26, 2026 14:20
@hopeman15 hopeman15 enabled auto-merge (squash) April 26, 2026 14:21
The custom @exclude annotation was a workaround for kover not honoring
@Preview in its annotation excludes filter. The current kover config
already excludes preview composables via annotatedBy("*Preview"), so
the custom annotation is redundant and was never actually wired into
the kover excludes filter.

Closes #67
@hopeman15 hopeman15 force-pushed the chore/remove-compose-exclude-annotation branch from cd0cc5f to f70cabb Compare April 26, 2026 14:21
@hopeman15 hopeman15 merged commit 4b5e18e into main Apr 26, 2026
6 checks passed
@hopeman15 hopeman15 deleted the chore/remove-compose-exclude-annotation branch April 26, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Custom Compose Exclusion Annotations

1 participant