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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a Lint detector to warn about undesired usages of mockk #1003
base: master
Are you sure you want to change the base?
Conversation
And publish it to be consumed by clients of the `mockk-android` dependency.
👋 Hi, I'd like to get some feedback on this kind of Lint detector, especially regarding "undesired" mockk usages. |
d40ccfc
to
1a5dd9b
Compare
Thanks a lot for putting this together! However, I have a few issues:
|
While Lint is not really an Android specific thing (it has been built initially outside Android), I currently don't know any way to use them outside Android projects. Also, the publishing step requires the AGP plugin to do all the necessary plumbing (
Yes it is, and as you mentioned it, I'll make them opt-in. android {
lintOptions {
// opt-in single rule
enable += "MockkDataClass"
// opt-in multiple rules
enable += setOf("MockkDataClass", "MockkEnum", "MockkInterface", "MockkPrimitive")
}
} |
And publish it to be consumed by clients of the
mockk-android
dependency.