Skip to content

Exclude rules-engine-internal from public sealed/data class detekt rules#3581

Merged
ajpallares merged 1 commit into
mainfrom
pallares/exclude-rules-engine-internal-from-detekt-rules
Jun 10, 2026
Merged

Exclude rules-engine-internal from public sealed/data class detekt rules#3581
ajpallares merged 1 commit into
mainfrom
pallares/exclude-rules-engine-internal-from-detekt-rules

Conversation

@ajpallares

@ajpallares ajpallares commented Jun 10, 2026

Copy link
Copy Markdown
Member

Motivation

rules-engine-internal is an internal module whose API is only consumed by other the RevenueCat SDK, so API-compatibility concerns behind ForbiddenPublicSealedClass and ForbiddenPublicDataClass don't apply.

Description

Adds **/rules-engine-internal/** to the excludes of both rules in config/detekt/detekt.yml.


Note

Low Risk
Static analysis config only; no runtime or public SDK API behavior changes.

Overview
Detekt is updated so rules-engine-internal is treated like examples: paths under **/rules-engine-internal/** are excluded from ForbiddenPublicDataClass (libraries) and ForbiddenPublicSealedClass (revenuecat).

That lets the internal rules-engine module use public data/sealed types without the SDK’s public-API compatibility lint, since it is only consumed inside the SDK.

Reviewed by Cursor Bugbot for commit f9179f6. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ajpallares ajpallares marked this pull request as ready for review June 10, 2026 11:53
@ajpallares ajpallares requested a review from a team as a code owner June 10, 2026 11:53

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah indeed makes sense. Thanks!

@ajpallares ajpallares enabled auto-merge June 10, 2026 11:55
@ajpallares ajpallares added this pull request to the merge queue Jun 10, 2026
Merged via the queue into main with commit 807aa10 Jun 10, 2026
36 checks passed
@ajpallares ajpallares deleted the pallares/exclude-rules-engine-internal-from-detekt-rules branch June 10, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants