-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[various] Enable warnings as errors, and all warnings, for Android lint #3648
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
Merged
stuartmorgan-g
merged 7 commits into
flutter:main
from
stuartmorgan-g:android-lint-werror
Apr 7, 2023
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e54d7f3
Enable all warnings and warnings as errors in all plugins
stuartmorgan-g 03dd9ca
New baselines
stuartmorgan-g 0fed722
Add a missed InvalidPackage suppression
stuartmorgan-g af01e52
revert accidental changes
stuartmorgan-g 1f880d8
Add tooling check for new config
stuartmorgan-g 47aaaa8
Merge branch 'main' into android-lint-werror
stuartmorgan-g 06e9068
Baseline update
stuartmorgan-g File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add tooling check for new config
- Loading branch information
commit 1f880d8169692d5f2c09595c448d089e2a19f010
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider writing this match to ignore lines that are commented out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can make that change if you want; there are potential downsides though. The current approach is to enforce that we haven't just forgotten to set this up when adding a new package. Allowing commenting it out allows for someone to explicitly say "I know that this is supposed to be set up, but I'm turning it off for now for a specific reason". I actually did exactly that with the
javacpart of this file previously, where for packages that weren't ready yet I added the line it was looking for commented out, with a TODO referencing an issue.That may not be a useful thing to support for this though, where we can use the baseline file as an escape hatch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to support disabling a check that makes sense. I guess I think of commented out lines passing a check that is expected as a foot gun. I would expect something like
# ignore checkAllWarningsto be how it was disabled.I don't think it is important enough to go back and rework unless you happen to be working on the code already.