Skip to content

Fix handling of allowErrorsInPackages #2785

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
merged 1 commit into from
Sep 14, 2021

Conversation

srawlins
Copy link
Member

Presumably there should be a test that fails because of the previous behavior... haven't looked into that.

@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Sep 14, 2021
@@ -405,7 +405,7 @@ class PackageWarningOptions {
.forEach((PackageWarning kind) => newOptions.ignore(kind));
}
if (allowErrorsInPackages != null &&
!allowWarningsInPackages.contains(packageMeta.name)) {
!allowErrorsInPackages.contains(packageMeta.name)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm. This might actually cause some pretty significant behavior changes since allowWarningsInPackages doesn't cover both. But it does seem like the right thing to do.

@srawlins srawlins merged commit 886915e into dart-lang:master Sep 14, 2021
@srawlins srawlins deleted the fix-warnings branch September 14, 2021 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants