-
Notifications
You must be signed in to change notification settings - Fork 754
Always run lint when running debug builds #2362
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
Conversation
|
As far as I know we do have 4 "flavors"
If I'm not mistaken, the default variant for Android Studio is It might be worthwhile to include lint checking in both debugging variants, so that the developer can find and fix bugs before submitting a pull request. |
Good idea, I missed that part. It is now done. |
|
For the record I did it like this with |
Just a small correction here though, we technically only have 2 "flavors" (stable and prerelease) and 2 build types, release and debug. That means that for both flavors, can have the combination of any of the build type, stableDebug, prereleaseDebug, stableRelease, prereleaseRelease, what I forgot was for some reason, android studio builds stableRelease by default, and didn't consider that one, which ironically was the entire point of this PR to work locally the same as PRs here, as otherwise we could just add |
|
@fire-light42 sorry for ping but any chance this can be merged so that #2356 can be merged? So that we make sure that no other error level issue is introduced in between which would cause build failure if so. |
|
While I want to merge #2356 and keep errors out of main I think this is the wrong strategy. The lint check is simply too long to use on debug builds. On small incremental builds (one line changes in kotlin) I still measured large lint check times, larger than the build times. I think checking lint on the pull request and pre-release builds would accomplish the same goal without wasting any time. What do you think @Luna712 ? |
Probably a good idea. I'll update this soon. |
|
@fire-light42 I reopened #2358 to switch back to that original method which I originally was going to do. |
No description provided.