Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add opt-in rule for disallowing Material2 APIs #220

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

mrmans0n
Copy link
Owner

Add a new rule (opt-in) to detect Material 2 usages. This has bit me in the ass at work, so I have a vested interest it goes in 馃ぃ

It will detect usages of the material 2 apis in imports and as fqns in the code. It also has support for an allowlist of apis, based on their package hierarchy.

@mrmans0n mrmans0n merged commit 8044a0b into main Apr 12, 2024
2 checks passed
@mrmans0n mrmans0n deleted the nacho/material2 branch April 12, 2024 13:36
@eygraber
Copy link

Can ignoring androidx.compose.material.icons be built into the rule? I don't think the icons are material 2 specific.

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.

None yet

2 participants