-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Enable Java lints for the plugins/packages repos #119836
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
Comments
@stuartmorgan Is this something we could do before or after #113764? |
I we do it before, we just need to make sure it's added in parallel to both repos so we don't re-diverge their test set.
We already have lint_baseline.xml set up as part of uploading build warning output, so hopefully we could just update that. |
Would this address #91868 for Android, or are lint warnings and build warnings disjoint? |
I am pro making this happen. |
... which we have because I set up a command over a year ago that runs this lint command ( Closing as a duplicate of #87071. I'll look into why some warnings aren't being flagged by this, like flutter/packages#3273. Maybe it's just the exclusions, and what we need is a push to remove exclusions that were set up when we turned this on? |
It looks like having warnings output doesn't cause it to return a non-zero exit code. Re-opening while I investigate further. |
Also, while not relevant to it not failing CI, it appears that running the lint command twice only outputs warnings the first time, which is definitely not a behavior we want. |
Investigating further: I'm not crazy thinking I had to set up baselines to get things to pass when I first did this, I just wasn't looking at the output closely enough. The output I was seeing was:
I missed the |
Okay, it looks like what's happening here is that the Gradle |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
A linter runs for the Dart code and Objective-C/Swift code in the flutter/plugins and flutter/packages repos.
This issue tracks enabling it for Java and Kotlin.
We should be able to just use the command provided by gradle:
See https://developer.android.com/studio/write/lint
I would imagine we would initially need a config file to exclude plugins and fix the lint warnings incrementally.
cc @camsim99 @reidbaker @stuartmorgan FYI
The text was updated successfully, but these errors were encountered: