[L] Change in dart/sdk[main]: [DAS] Adds some warnings for the `analysis_options` file

0 views
Skip to first unread message

Felipe Morschel (Gerrit)

unread,
May 19, 2025, 1:29:35 PM5/19/25
to Commit Queue, Samuel Rawlins, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Konstantin Shcheglov and Samuel Rawlins

Felipe Morschel voted and added 1 comment

Votes added by Felipe Morschel

Auto-Submit+1

1 comment

Patchset-level comments
File-level comment, Patchset 3:
Felipe Morschel . resolved

Alright. Since we decided on reverting that base change, I'll update this to include the base change too.
I'll also update the title and description for more context.

Felipe Morschel

I've rebased this on the older change and added the tests for `true`/`false` that were missing last time.

Can I also ask someone to reopen the issue since that got reverted, please? Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Konstantin Shcheglov
  • Samuel Rawlins
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 5
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
Gerrit-Comment-Date: Mon, 19 May 2025 17:29:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Felipe Morschel <g...@fmorschel.dev>
unsatisfied_requirement
open
diffy

Samuel Rawlins (Gerrit)

unread,
May 20, 2025, 12:25:52 PM5/20/25
to Felipe Morschel, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Felipe Morschel and Konstantin Shcheglov

Samuel Rawlins voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Felipe Morschel
  • Konstantin Shcheglov
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 5
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Comment-Date: Tue, 20 May 2025 16:25:50 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Felipe Morschel (Gerrit)

unread,
Jun 9, 2025, 8:19:17 AM6/9/25
to Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Konstantin Shcheglov and Samuel Rawlins

Felipe Morschel voted and added 1 comment

Votes added by Felipe Morschel

Auto-Submit+1

1 comment

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Felipe Morschel . resolved

Rebased this change. Can I get some reviews please, @sche...@google.com and @sraw...@google.com? Thanks a lot!

Open in Gerrit

Related details

Attention is currently required from:
  • Konstantin Shcheglov
  • Samuel Rawlins
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 6
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
Gerrit-Comment-Date: Mon, 09 Jun 2025 12:19:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
Jun 9, 2025, 1:16:11 PM6/9/25
to Felipe Morschel, Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Felipe Morschel, Konstantin Shcheglov and Samuel Rawlins

Brian Wilkerson added 5 comments

Patchset-level comments
Brian Wilkerson . resolved

I didn't spend a lot of time looking at either the implementation or the tests (which is why I'm not giving it a +1), so it wasn't clear to me exactly what the design is. (If I had to write documentation for these warnings, and I might, I wouldn't know what to write.) Is there a design discussion somewhere?

The kinds of things I'm thinking about are

  • Does it catch conflicts within a single file?
  • Does it catch conflicts between the current file and an included file? (I know the answer to that one is 'yes'.
  • Does it catch multiple conflicts, such as having two included files that enable a rule that conflicts with the current file?
  • Does it catch multiple conflicts, such as enabling a rule that conflicts with multiple other rules multiple of which are also enabled?
File pkg/analysis_server/lib/src/services/correction/error_fix_status.yaml
Line 91, Patchset 6 (Latest): Without knowing which rule the user would prefer to use, we cannot remove
Brian Wilkerson . resolved

I'm not asking for the fixes to be implemented, but we could potentially provide both fixes (when there are only two incompatible rules) and just let the user choose one.

I'd change this to 'needsFix' and describe that option.

File pkg/analyzer/lib/src/lint/options_rule_validator.dart
Line 329, Patchset 6 (Latest): reporter.atSourceSpan(
Brian Wilkerson . unresolved

Should this be using `incompatibleIncludedLint`? That helper method creates a context message, but this doesn't. It would be nice to create the context message everywhere.

File pkg/analyzer/messages.yaml
Line 145, Patchset 6 (Latest): problemMessage: "The rule '{0}' is incompatible with the rule '{1}' enabled at '{2}'."
Brian Wilkerson . unresolved

I'm fine with this being an improvement in a follow-on CL, but this phrase of the message would be better implemented as a context message (and dropped from the problem message).

Also, consider dropping the second "the rule". I think it's clear from context that we're talking about rules.

Line 157, Patchset 6 (Latest): problemMessage: "This file enables '{0}' that is incompatible with '{1}' enabled in another include."
Brian Wilkerson . unresolved

Consider "The rule '{0}' is incompatible with '{1}', which is enabled in an included file."

Open in Gerrit

Related details

Attention is currently required from:
  • Felipe Morschel
  • Konstantin Shcheglov
  • Samuel Rawlins
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 6
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
Gerrit-Comment-Date: Mon, 09 Jun 2025 17:16:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Felipe Morschel (Gerrit)

unread,
Jun 9, 2025, 3:34:26 PM6/9/25
to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson

Felipe Morschel added 1 comment

File pkg/analysis_server/lib/src/services/correction/error_fix_status.yaml
Line 91, Patchset 6 (Latest): Without knowing which rule the user would prefer to use, we cannot remove
Brian Wilkerson . resolved

I'm not asking for the fixes to be implemented, but we could potentially provide both fixes (when there are only two incompatible rules) and just let the user choose one.

I'd change this to 'needsFix' and describe that option.

Felipe Morschel

Will do that, just note that https://github.com/dart-lang/sdk/issues/55985 is still open and for the fixes to be implemented, that issue should probably be resolved.

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 6
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Mon, 09 Jun 2025 19:34:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Brian Wilkerson <brianwi...@google.com>
unsatisfied_requirement
open
diffy

Felipe Morschel (Gerrit)

unread,
Jun 9, 2025, 4:01:52 PM6/9/25
to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson

Felipe Morschel added 1 comment

Patchset-level comments
Brian Wilkerson . resolved

I didn't spend a lot of time looking at either the implementation or the tests (which is why I'm not giving it a +1), so it wasn't clear to me exactly what the design is. (If I had to write documentation for these warnings, and I might, I wouldn't know what to write.) Is there a design discussion somewhere?

The kinds of things I'm thinking about are

  • Does it catch conflicts within a single file?
  • Does it catch conflicts between the current file and an included file? (I know the answer to that one is 'yes'.
  • Does it catch multiple conflicts, such as having two included files that enable a rule that conflicts with the current file?
  • Does it catch multiple conflicts, such as enabling a rule that conflicts with multiple other rules multiple of which are also enabled?
Felipe Morschel

Is there a design discussion somewhere?

Maybe some specific comments at the [original CL](https://dart-review.googlesource.com/c/sdk/+/419982) but nothing beyond, that I'm aware of. We could use the linked issue for this. It is open specifically for this CL, nothing more.

Does it catch conflicts within a single file?

No, but we may use the previous warning for this case, nice catch!

Does it catch multiple conflicts, such as having two included files that enable a rule that conflicts with the current file?

It should but no specific lint for this case, we might need a better message.

Does it catch multiple conflicts, such as enabling a rule that conflicts with multiple other rules multiple of which are also enabled?

Same as the above answer. It would also be a problem with the currently existing lint, it will only warn for a single incompatibility, not sure if it triggers multiple times for that case, we may need to check.

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 6
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Mon, 09 Jun 2025 20:01:38 +0000
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
Jun 9, 2025, 6:21:23 PM6/9/25
to Felipe Morschel, Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Felipe Morschel

Brian Wilkerson added 1 comment

Patchset-level comments
Brian Wilkerson . resolved

I didn't spend a lot of time looking at either the implementation or the tests (which is why I'm not giving it a +1), so it wasn't clear to me exactly what the design is. (If I had to write documentation for these warnings, and I might, I wouldn't know what to write.) Is there a design discussion somewhere?

The kinds of things I'm thinking about are

  • Does it catch conflicts within a single file?
  • Does it catch conflicts between the current file and an included file? (I know the answer to that one is 'yes'.
  • Does it catch multiple conflicts, such as having two included files that enable a rule that conflicts with the current file?
  • Does it catch multiple conflicts, such as enabling a rule that conflicts with multiple other rules multiple of which are also enabled?
Felipe Morschel

Is there a design discussion somewhere?

Maybe some specific comments at the [original CL](https://dart-review.googlesource.com/c/sdk/+/419982) but nothing beyond, that I'm aware of. We could use the linked issue for this. It is open specifically for this CL, nothing more.

Does it catch conflicts within a single file?

No, but we may use the previous warning for this case, nice catch!

Does it catch multiple conflicts, such as having two included files that enable a rule that conflicts with the current file?

It should but no specific lint for this case, we might need a better message.

Does it catch multiple conflicts, such as enabling a rule that conflicts with multiple other rules multiple of which are also enabled?

Same as the above answer. It would also be a problem with the currently existing lint, it will only warn for a single incompatibility, not sure if it triggers multiple times for that case, we may need to check.

Brian Wilkerson

Moved discussion to the issue.

Open in Gerrit

Related details

Attention is currently required from:
  • Felipe Morschel
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 6
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Comment-Date: Mon, 09 Jun 2025 22:21:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felipe Morschel <g...@fmorschel.dev>
Comment-In-Reply-To: Brian Wilkerson <brianwi...@google.com>
unsatisfied_requirement
open
diffy

Felipe Morschel (Gerrit)

unread,
Jun 17, 2025, 4:40:50 PM6/17/25
to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson

Felipe Morschel voted and added 4 comments

Votes added by Felipe Morschel

Auto-Submit+1

4 comments

Patchset-level comments
File-level comment, Patchset 6:
Felipe Morschel . unresolved

I'm still working on making two tests pass (`YamlNode.span` seems to be without `sourceUrl`). When I fix that I'll resolve this comment and ping you all again.

File pkg/analyzer/lib/src/lint/options_rule_validator.dart
Line 329, Patchset 6: reporter.atSourceSpan(
Brian Wilkerson . resolved

Should this be using `incompatibleIncludedLint`? That helper method creates a context message, but this doesn't. It would be nice to create the context message everywhere.

Felipe Morschel

Done

File pkg/analyzer/messages.yaml
Line 145, Patchset 6: problemMessage: "The rule '{0}' is incompatible with the rule '{1}' enabled at '{2}'."
Brian Wilkerson . resolved

I'm fine with this being an improvement in a follow-on CL, but this phrase of the message would be better implemented as a context message (and dropped from the problem message).

Also, consider dropping the second "the rule". I think it's clear from context that we're talking about rules.

Felipe Morschel

I'll answer here for all of the other comments and your design request on the issue:

I think the diagnostics now reflect what you asked. I'm using the factory everywhere and passing the related data as context messages, The messages are now updated to reflect your requests, please review them to make sure this is what you were asking, thanks.

Line 157, Patchset 6: problemMessage: "This file enables '{0}' that is incompatible with '{1}' enabled in another include."
Brian Wilkerson . resolved

Consider "The rule '{0}' is incompatible with '{1}', which is enabled in an included file."

Felipe Morschel

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 6
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Tue, 17 Jun 2025 20:40:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Brian Wilkerson <brianwi...@google.com>
unsatisfied_requirement
open
diffy

Felipe Morschel (Gerrit)

unread,
Jun 17, 2025, 9:24:53 PM6/17/25
to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and Samuel Rawlins

Felipe Morschel voted and added 1 comment

Votes added by Felipe Morschel

Auto-Submit+1

1 comment

Patchset-level comments
Felipe Morschel . unresolved

I'm still working on making two tests pass (`YamlNode.span` seems to be without `sourceUrl`). When I fix that I'll resolve this comment and ping you all again.

Felipe Morschel

I think I've managed to make this work. Any tips on tests that verify the (conunt of, at least) context messages?

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • Samuel Rawlins
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 7
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Wed, 18 Jun 2025 01:24:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Felipe Morschel <g...@fmorschel.dev>
unsatisfied_requirement
open
diffy

Felipe Morschel (Gerrit)

unread,
Jul 1, 2025, 6:47:55 AM7/1/25
to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and Samuel Rawlins

Felipe Morschel voted and added 1 comment

Votes added by Felipe Morschel

Auto-Submit+1

1 comment

Patchset-level comments
Felipe Morschel . unresolved

I'm still working on making two tests pass (`YamlNode.span` seems to be without `sourceUrl`). When I fix that I'll resolve this comment and ping you all again.

Felipe Morschel

I think I've managed to make this work. Any tips on tests that verify the (conunt of, at least) context messages?

Felipe Morschel

Maybe you'll know @brianwi...@google.com. Any idea on how to count the amount of context messages?

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • Samuel Rawlins
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 8
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Tue, 01 Jul 2025 10:47:52 +0000
unsatisfied_requirement
open
diffy

Felipe Morschel (Gerrit)

unread,
Jul 7, 2025, 4:30:06 PM7/7/25
to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson

Felipe Morschel added 1 comment

Patchset-level comments
Felipe Morschel . unresolved

I'm still working on making two tests pass (`YamlNode.span` seems to be without `sourceUrl`). When I fix that I'll resolve this comment and ping you all again.

Felipe Morschel

I think I've managed to make this work. Any tips on tests that verify the (conunt of, at least) context messages?

Felipe Morschel

Maybe you'll know @brianwi...@google.com. Any idea on how to count the amount of context messages?

Felipe Morschel

Friendly ping @brianwi...@google.com.

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 8
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Mon, 07 Jul 2025 20:29:59 +0000
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
Jul 7, 2025, 5:39:30 PM7/7/25
to Felipe Morschel, Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Felipe Morschel

Brian Wilkerson added 2 comments

Patchset-level comments
Felipe Morschel . unresolved

I'm still working on making two tests pass (`YamlNode.span` seems to be without `sourceUrl`). When I fix that I'll resolve this comment and ping you all again.

Felipe Morschel

I think I've managed to make this work. Any tips on tests that verify the (conunt of, at least) context messages?

Felipe Morschel

Maybe you'll know @brianwi...@google.com. Any idea on how to count the amount of context messages?

Felipe Morschel

Friendly ping @brianwi...@google.com.

Brian Wilkerson

Thanks for the ping. This had slipped off my radar.

Any idea on how to count the amount of context messages?

Use `assertErrorsInCode`, which takes a list of `ExpectedError` objects, created by the `error` utility method. Those objects can specify the number of context messages, though possibly only by including the full message text. (We could add a way to specify only the number of messages if that would be better.)

File pkg/analyzer/messages.yaml
Line 160, Patchset 8 (Latest): INCOMPATIBLE_LINT_INCLUDED:
Brian Wilkerson . unresolved

I can't tell the difference between this and `INCOMPATIBLE_LINT_FILES`. Is there a reason for two seemingly identical codes? If not, consider merging the two (and I like the message for `INCOMPATIBLE_LINT_INCLUDED` better than the one for `INCOMPATIBLE_LINT_FILES`).

Open in Gerrit

Related details

Attention is currently required from:
  • Felipe Morschel
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 8
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Comment-Date: Mon, 07 Jul 2025 21:39:27 +0000
unsatisfied_requirement
open
diffy

Felipe Morschel (Gerrit)

unread,
Jul 7, 2025, 5:47:44 PM7/7/25
to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson

Felipe Morschel added 1 comment

File pkg/analyzer/messages.yaml
Line 160, Patchset 8 (Latest): INCOMPATIBLE_LINT_INCLUDED:
Brian Wilkerson . unresolved

I can't tell the difference between this and `INCOMPATIBLE_LINT_FILES`. Is there a reason for two seemingly identical codes? If not, consider merging the two (and I like the message for `INCOMPATIBLE_LINT_INCLUDED` better than the one for `INCOMPATIBLE_LINT_FILES`).

Felipe Morschel

I can't tell the difference

That is not great then.

Is there a reason for two seemingly identical codes?

The idea is that the "included" version would trigger for rules found within the current file that are incompatible with the included files.

The "files" version would trigger for conflicts between included files, but not necessarily related to the current one.

But if you dislike the idea of both being different, I'm open to merge them. I just wanted us to have a way of differentiating the cases of this lint better within our code. Or if you have any idea on how to better explain the different cases within the messages, I'm open to that as well.

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 8
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Mon, 07 Jul 2025 21:47:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Brian Wilkerson <brianwi...@google.com>
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
Jul 7, 2025, 6:02:08 PM7/7/25
to Felipe Morschel, Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Felipe Morschel

Brian Wilkerson added 1 comment

File pkg/analyzer/messages.yaml
Line 160, Patchset 8 (Latest): INCOMPATIBLE_LINT_INCLUDED:
Brian Wilkerson . unresolved

I can't tell the difference between this and `INCOMPATIBLE_LINT_FILES`. Is there a reason for two seemingly identical codes? If not, consider merging the two (and I like the message for `INCOMPATIBLE_LINT_INCLUDED` better than the one for `INCOMPATIBLE_LINT_FILES`).

Felipe Morschel

I can't tell the difference

That is not great then.

Is there a reason for two seemingly identical codes?

The idea is that the "included" version would trigger for rules found within the current file that are incompatible with the included files.

The "files" version would trigger for conflicts between included files, but not necessarily related to the current one.

But if you dislike the idea of both being different, I'm open to merge them. I just wanted us to have a way of differentiating the cases of this lint better within our code. Or if you have any idea on how to better explain the different cases within the messages, I'm open to that as well.

Brian Wilkerson

Thanks, now I think I understand. Having that distinction would be valuable, both for the user's comprehension and so that our fixes (if we have any) would know what problem is being fixed (I'm assuming the fixes for the two cases might differ some).

The "files" version could probably be worded better. My first take would be to use a message similar to "The lint 'L1', enabled in 'include1', isn't compatible with the lint 'L2', enabled in 'include2' and 'include3'.". I think that would contain the data a user would want. Either "enabled in" clause could be a list for full flexibility.

Alternatively, and maybe better, would be "The lint 'L1' isn't compatible with the lint 'L2'." and context messages of the form "'L1' is enabled in 'include1'." for each of the places where either lint is enabled. That would enable navigation to all of the location.

Open in Gerrit

Related details

Attention is currently required from:
  • Felipe Morschel
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 8
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Comment-Date: Mon, 07 Jul 2025 22:02:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Felipe Morschel (Gerrit)

unread,
Jul 30, 2025, 3:55:08 PM7/30/25
to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson

Felipe Morschel voted and added 2 comments

Votes added by Felipe Morschel

Auto-Submit+1

2 comments

Patchset-level comments
File-level comment, Patchset 6:
Felipe Morschel . resolved

I'm still working on making two tests pass (`YamlNode.span` seems to be without `sourceUrl`). When I fix that I'll resolve this comment and ping you all again.

Felipe Morschel

I think I've managed to make this work. Any tips on tests that verify the (conunt of, at least) context messages?

Felipe Morschel

Maybe you'll know @brianwi...@google.com. Any idea on how to count the amount of context messages?

Felipe Morschel

Friendly ping @brianwi...@google.com.

Brian Wilkerson

Thanks for the ping. This had slipped off my radar.

Any idea on how to count the amount of context messages?

Use `assertErrorsInCode`, which takes a list of `ExpectedError` objects, created by the `error` utility method. Those objects can specify the number of context messages, though possibly only by including the full message text. (We could add a way to specify only the number of messages if that would be better.)

Felipe Morschel

I think specifying them was easy enough. Thanks!

File pkg/analyzer/messages.yaml
Line 160, Patchset 8: INCOMPATIBLE_LINT_INCLUDED:
Brian Wilkerson . unresolved

I can't tell the difference between this and `INCOMPATIBLE_LINT_FILES`. Is there a reason for two seemingly identical codes? If not, consider merging the two (and I like the message for `INCOMPATIBLE_LINT_INCLUDED` better than the one for `INCOMPATIBLE_LINT_FILES`).

Felipe Morschel

I can't tell the difference

That is not great then.

Is there a reason for two seemingly identical codes?

The idea is that the "included" version would trigger for rules found within the current file that are incompatible with the included files.

The "files" version would trigger for conflicts between included files, but not necessarily related to the current one.

But if you dislike the idea of both being different, I'm open to merge them. I just wanted us to have a way of differentiating the cases of this lint better within our code. Or if you have any idea on how to better explain the different cases within the messages, I'm open to that as well.

Brian Wilkerson

Thanks, now I think I understand. Having that distinction would be valuable, both for the user's comprehension and so that our fixes (if we have any) would know what problem is being fixed (I'm assuming the fixes for the two cases might differ some).

The "files" version could probably be worded better. My first take would be to use a message similar to "The lint 'L1', enabled in 'include1', isn't compatible with the lint 'L2', enabled in 'include2' and 'include3'.". I think that would contain the data a user would want. Either "enabled in" clause could be a list for full flexibility.

Alternatively, and maybe better, would be "The lint 'L1' isn't compatible with the lint 'L2'." and context messages of the form "'L1' is enabled in 'include1'." for each of the places where either lint is enabled. That would enable navigation to all of the location.

Felipe Morschel

I've done some more work here and I think this is better (preferred your last suggestion). I'll leave this unresolved so you can confirm this is aligned with what you/the team would like.

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 8
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Wed, 30 Jul 2025 19:55:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
Jul 31, 2025, 5:29:54 PM7/31/25
to Felipe Morschel, Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Felipe Morschel

Brian Wilkerson added 2 comments

File pkg/analyzer/messages.yaml
Line 160, Patchset 8: INCOMPATIBLE_LINT_INCLUDED:
Brian Wilkerson . resolved

I can't tell the difference between this and `INCOMPATIBLE_LINT_FILES`. Is there a reason for two seemingly identical codes? If not, consider merging the two (and I like the message for `INCOMPATIBLE_LINT_INCLUDED` better than the one for `INCOMPATIBLE_LINT_FILES`).

Felipe Morschel

I can't tell the difference

That is not great then.

Is there a reason for two seemingly identical codes?

The idea is that the "included" version would trigger for rules found within the current file that are incompatible with the included files.

The "files" version would trigger for conflicts between included files, but not necessarily related to the current one.

But if you dislike the idea of both being different, I'm open to merge them. I just wanted us to have a way of differentiating the cases of this lint better within our code. Or if you have any idea on how to better explain the different cases within the messages, I'm open to that as well.

Brian Wilkerson

Thanks, now I think I understand. Having that distinction would be valuable, both for the user's comprehension and so that our fixes (if we have any) would know what problem is being fixed (I'm assuming the fixes for the two cases might differ some).

The "files" version could probably be worded better. My first take would be to use a message similar to "The lint 'L1', enabled in 'include1', isn't compatible with the lint 'L2', enabled in 'include2' and 'include3'.". I think that would contain the data a user would want. Either "enabled in" clause could be a list for full flexibility.

Alternatively, and maybe better, would be "The lint 'L1' isn't compatible with the lint 'L2'." and context messages of the form "'L1' is enabled in 'include1'." for each of the places where either lint is enabled. That would enable navigation to all of the location.

Felipe Morschel

I've done some more work here and I think this is better (preferred your last suggestion). I'll leave this unresolved so you can confirm this is aligned with what you/the team would like.

Brian Wilkerson

I think the approach is reasonable, thanks! Others can speak up if they disagree.

File pkg/analyzer/test/src/options/options_rule_validator_test.dart
Line 102, Patchset 9 (Latest): (file) => [
Brian Wilkerson . unresolved

We aren't using this parameter in the body, consider replacing it with `_`. The same is true on 156.

I'm actually not seeing where the parameter is ever used. If I missed it, please let me know. If it isn't used anywhere, then consider changing this argument back to being just a list, rather than a function that returns a list.

Open in Gerrit

Related details

Attention is currently required from:
  • Felipe Morschel
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 9
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Comment-Date: Thu, 31 Jul 2025 21:29:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Felipe Morschel (Gerrit)

unread,
Jul 31, 2025, 7:12:12 PM7/31/25
to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson

Felipe Morschel voted and added 1 comment

Votes added by Felipe Morschel

Auto-Submit+1

1 comment

File pkg/analyzer/test/src/options/options_rule_validator_test.dart
Brian Wilkerson . unresolved

We aren't using this parameter in the body, consider replacing it with `_`. The same is true on 156.

I'm actually not seeing where the parameter is ever used. If I missed it, please let me know. If it isn't used anywhere, then consider changing this argument back to being just a list, rather than a function that returns a list.

Felipe Morschel

I added it to test the base case and forgot about it, sorry. I've used it now but just in two tests, do you think we can handle the reference to the testFile somewhere else or is it OK for us to do this change?

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 9
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Thu, 31 Jul 2025 23:12:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Brian Wilkerson <brianwi...@google.com>
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
Aug 1, 2025, 11:21:02 AM8/1/25
to Felipe Morschel, Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Felipe Morschel

Brian Wilkerson added 1 comment

File pkg/analyzer/test/src/options/options_rule_validator_test.dart
Brian Wilkerson . unresolved

We aren't using this parameter in the body, consider replacing it with `_`. The same is true on 156.

I'm actually not seeing where the parameter is ever used. If I missed it, please let me know. If it isn't used anywhere, then consider changing this argument back to being just a list, rather than a function that returns a list.

Felipe Morschel

I added it to test the base case and forgot about it, sorry. I've used it now but just in two tests, do you think we can handle the reference to the testFile somewhere else or is it OK for us to do this change?

Brian Wilkerson

Given that the `file` will always be known to the test, I'd just hard code it into the expectations and not pass to a closure.

I'd do that by adding a field (maybe `analysisOptionsFile`?) to `AbstractAnalysisOptionsTest`, initializing it to the `File` the tests all use, then using it in `assertErrorsInCode` rather that creating the file there (to prevent them from getting out of sync).

Open in Gerrit

Related details

Attention is currently required from:
  • Felipe Morschel
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 10
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Comment-Date: Fri, 01 Aug 2025 15:20:58 +0000
unsatisfied_requirement
open
diffy

Felipe Morschel (Gerrit)

unread,
Aug 6, 2025, 12:47:25 PM8/6/25
to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson

Felipe Morschel voted and added 1 comment

Votes added by Felipe Morschel

Auto-Submit+1

1 comment

File pkg/analyzer/test/src/options/options_rule_validator_test.dart
Brian Wilkerson . unresolved

We aren't using this parameter in the body, consider replacing it with `_`. The same is true on 156.

I'm actually not seeing where the parameter is ever used. If I missed it, please let me know. If it isn't used anywhere, then consider changing this argument back to being just a list, rather than a function that returns a list.

Felipe Morschel

I added it to test the base case and forgot about it, sorry. I've used it now but just in two tests, do you think we can handle the reference to the testFile somewhere else or is it OK for us to do this change?

Brian Wilkerson

Given that the `file` will always be known to the test, I'd just hard code it into the expectations and not pass to a closure.

I'd do that by adding a field (maybe `analysisOptionsFile`?) to `AbstractAnalysisOptionsTest`, initializing it to the `File` the tests all use, then using it in `assertErrorsInCode` rather that creating the file there (to prevent them from getting out of sync).

Felipe Morschel

I had to make it a `late` field because I need to `get` it's value before entering `assertErrorsInCode` (to build the expected error). But I think the changes are fine. I'll leave this as unresolved so you can confirm. Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
Gerrit-Change-Number: 429240
Gerrit-PatchSet: 10
Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
Gerrit-CC: Alexander Aprelev <a...@google.com>
Gerrit-CC: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Wed, 06 Aug 2025 16:47:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Brian Wilkerson (Gerrit)

unread,
Aug 6, 2025, 3:36:07 PM8/6/25
to Felipe Morschel, Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Felipe Morschel

Brian Wilkerson voted and added 9 comments

Votes added by Brian Wilkerson

Code-Review+1

9 comments

File pkg/analyzer/lib/src/diagnostic/diagnostic_factory.dart
Line 310, Patchset 11 (Latest): message: 'Incompatible lint rule.',
Brian Wilkerson . unresolved

It would be better if the message could include the name of the lint rule being 'pointed to'. Perhaps something like "The rule '${incompatible.value.toString()}' is enabled here.".

Line 343, Patchset 11 (Latest): message: "'${incompatible.toString()}' declared in '$file'.",
Brian Wilkerson . unresolved

If we change the message above then we might want to change this one similarly. Maybe something like "The rule '${incompatible.value.toString()}' is enabled here in the file '$file'."

Line 379, Patchset 11 (Latest): message: 'Incompatible lint rule.',
Brian Wilkerson . unresolved

This should match the context message used for `incompatibleLintFiles`. There's no value in having them be different, and it makes it easier for users to find help online if all of the discussions include the same text.

File pkg/analyzer/messages.yaml
Line 135, Patchset 11 (Latest): correctionMessage: "Try removing one of the incompatible rules."
Brian Wilkerson . unresolved

"one" --> "all but one"

If there are multiple rules that are mutually exclusive, removing one of them won't fix the problem, it will just reduce the number of conflicting rules.

Line 147, Patchset 11 (Latest): problemMessage: "The rule '{0}' isn't compatible with {1}."
Brian Wilkerson . unresolved

"isn't compatible" --> "incompatible" (for consistency)

Line 148, Patchset 11 (Latest): correctionMessage: "Try removing the incompatible files or locally disable one of the conflicting rules."
Brian Wilkerson . unresolved

"disable one"--> "disabling all but one"

I think we should invert these two options because I think that locally disabling a rule is going to be the more practical solution in more cases. I'm not even sure we want to suggest removing an include because there is likely to be other lints or settings that the user doesn't want to loose.

Line 161, Patchset 11 (Latest): correctionMessage: "Try removing one of the incompatible file or locally disable one of the conflicting rules."
Brian Wilkerson . unresolved

"disable one"--> "disabling all but one"

(Same comment about the order.)

Line 161, Patchset 11 (Latest): correctionMessage: "Try removing one of the incompatible file or locally disable one of the conflicting rules."
Brian Wilkerson . unresolved

"file" --> "files"

File pkg/analyzer/test/src/options/options_rule_validator_test.dart
Brian Wilkerson . resolved

We aren't using this parameter in the body, consider replacing it with `_`. The same is true on 156.

I'm actually not seeing where the parameter is ever used. If I missed it, please let me know. If it isn't used anywhere, then consider changing this argument back to being just a list, rather than a function that returns a list.

Felipe Morschel

I added it to test the base case and forgot about it, sorry. I've used it now but just in two tests, do you think we can handle the reference to the testFile somewhere else or is it OK for us to do this change?

Brian Wilkerson

Given that the `file` will always be known to the test, I'd just hard code it into the expectations and not pass to a closure.

I'd do that by adding a field (maybe `analysisOptionsFile`?) to `AbstractAnalysisOptionsTest`, initializing it to the `File` the tests all use, then using it in `assertErrorsInCode` rather that creating the file there (to prevent them from getting out of sync).

Felipe Morschel

I had to make it a `late` field because I need to `get` it's value before entering `assertErrorsInCode` (to build the expected error). But I think the changes are fine. I'll leave this as unresolved so you can confirm. Thanks!

Brian Wilkerson

Yes, thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Felipe Morschel
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
    Gerrit-Change-Number: 429240
    Gerrit-PatchSet: 11
    Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
    Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
    Gerrit-CC: Alexander Aprelev <a...@google.com>
    Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
    Gerrit-Comment-Date: Wed, 06 Aug 2025 19:36:03 +0000
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy

    Felipe Morschel (Gerrit)

    unread,
    Aug 6, 2025, 4:05:33 PM8/6/25
    to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
    Attention needed from Brian Wilkerson and Konstantin Shcheglov

    Felipe Morschel voted and added 9 comments

    Votes added by Felipe Morschel

    Auto-Submit+1

    9 comments

    Patchset-level comments
    File-level comment, Patchset 11:
    Felipe Morschel . resolved

    Can I please get your review as well, @sche...@google.com? Thanks!

    File pkg/analyzer/lib/src/diagnostic/diagnostic_factory.dart
    Line 310, Patchset 11: message: 'Incompatible lint rule.',
    Brian Wilkerson . resolved

    It would be better if the message could include the name of the lint rule being 'pointed to'. Perhaps something like "The rule '${incompatible.value.toString()}' is enabled here.".

    Felipe Morschel

    Done

    Line 343, Patchset 11: message: "'${incompatible.toString()}' declared in '$file'.",
    Brian Wilkerson . resolved

    If we change the message above then we might want to change this one similarly. Maybe something like "The rule '${incompatible.value.toString()}' is enabled here in the file '$file'."

    Felipe Morschel

    Done

    Line 379, Patchset 11: message: 'Incompatible lint rule.',
    Brian Wilkerson . resolved

    This should match the context message used for `incompatibleLintFiles`. There's no value in having them be different, and it makes it easier for users to find help online if all of the discussions include the same text.

    Felipe Morschel

    Great idea! Thanks!

    File pkg/analyzer/messages.yaml
    Line 135, Patchset 11: correctionMessage: "Try removing one of the incompatible rules."
    Brian Wilkerson . resolved

    "one" --> "all but one"

    If there are multiple rules that are mutually exclusive, removing one of them won't fix the problem, it will just reduce the number of conflicting rules.

    Felipe Morschel

    Done

    Line 147, Patchset 11: problemMessage: "The rule '{0}' isn't compatible with {1}."
    Brian Wilkerson . resolved

    "isn't compatible" --> "incompatible" (for consistency)

    Felipe Morschel

    Done

    Line 148, Patchset 11: correctionMessage: "Try removing the incompatible files or locally disable one of the conflicting rules."
    Brian Wilkerson . resolved

    "disable one"--> "disabling all but one"

    I think we should invert these two options because I think that locally disabling a rule is going to be the more practical solution in more cases. I'm not even sure we want to suggest removing an include because there is likely to be other lints or settings that the user doesn't want to loose.

    Felipe Morschel

    Great idea!

    Line 161, Patchset 11: correctionMessage: "Try removing one of the incompatible file or locally disable one of the conflicting rules."
    Brian Wilkerson . resolved

    "file" --> "files"

    Felipe Morschel

    Done

    Line 161, Patchset 11: correctionMessage: "Try removing one of the incompatible file or locally disable one of the conflicting rules."
    Brian Wilkerson . resolved

    "disable one"--> "disabling all but one"

    (Same comment about the order.)

    Felipe Morschel

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Brian Wilkerson
    • Konstantin Shcheglov
    Submit Requirements:
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: sdk
      Gerrit-Branch: main
      Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
      Gerrit-Change-Number: 429240
      Gerrit-PatchSet: 11
      Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
      Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
      Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
      Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
      Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
      Gerrit-CC: Alexander Aprelev <a...@google.com>
      Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
      Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
      Gerrit-Comment-Date: Wed, 06 Aug 2025 20:05:29 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Brian Wilkerson <brianwi...@google.com>
      unsatisfied_requirement
      open
      diffy

      Felipe Morschel (Gerrit)

      unread,
      Aug 8, 2025, 7:09:45 AM8/8/25
      to Brian Wilkerson, Samuel Rawlins, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
      Attention needed from Brian Wilkerson, Konstantin Shcheglov and Samuel Rawlins

      Felipe Morschel voted and added 1 comment

      Votes added by Felipe Morschel

      Auto-Submit+1

      1 comment

      File pkg/analyzer/test/generated/test_support.dart
      Line 238, Patchset 10: if (expected.expectedContextMessages.isNotEmpty) {
      Felipe Morschel . unresolved

      @sraw...@google.com, I saw your issue https://github.com/dart-lang/sdk/issues/61271 and I was wondering if you think about updating this code similarly too.

      I'd be glad to do it with this CL since I'm here already but another is fine by me as well. But of course that if you want to tackle this yourself, feel free to do so.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Brian Wilkerson
      • Konstantin Shcheglov
      • Samuel Rawlins
      Submit Requirements:
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: sdk
      Gerrit-Branch: main
      Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
      Gerrit-Change-Number: 429240
      Gerrit-PatchSet: 12
      Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
      Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
      Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
      Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
      Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
      Gerrit-CC: Alexander Aprelev <a...@google.com>
      Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
      Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
      Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
      Gerrit-Comment-Date: Fri, 08 Aug 2025 11:09:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      unsatisfied_requirement
      open
      diffy

      Samuel Rawlins (Gerrit)

      unread,
      Aug 13, 2025, 2:20:15 PM8/13/25
      to Felipe Morschel, Brian Wilkerson, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
      Attention needed from Brian Wilkerson, Felipe Morschel and Konstantin Shcheglov

      Samuel Rawlins voted and added 1 comment

      Votes added by Samuel Rawlins

      Code-Review+1

      1 comment

      File pkg/analyzer/test/generated/test_support.dart
      Line 238, Patchset 10: if (expected.expectedContextMessages.isNotEmpty) {
      Felipe Morschel . resolved

      @sraw...@google.com, I saw your issue https://github.com/dart-lang/sdk/issues/61271 and I was wondering if you think about updating this code similarly too.

      I'd be glad to do it with this CL since I'm here already but another is fine by me as well. But of course that if you want to tackle this yourself, feel free to do so.

      Samuel Rawlins

      Ah good catch. No I don't think it needs to be updated here as well.

      There is a lot of unfortunate duplication in our various base test classes. But for analyzer compile-time errors and warnings, we don't use the same `lint()` shorthand. Each expectation must spell out exactly which code is expected.

      We have long term plans to de-duplicate the test code, likely into a shared location like the analyzer_testing package. But it's on the backburner.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Brian Wilkerson
      • Felipe Morschel
      • Konstantin Shcheglov
      Submit Requirements:
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: sdk
        Gerrit-Branch: main
        Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
        Gerrit-Change-Number: 429240
        Gerrit-PatchSet: 13
        Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
        Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
        Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
        Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
        Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
        Gerrit-CC: Alexander Aprelev <a...@google.com>
        Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
        Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
        Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
        Gerrit-Comment-Date: Wed, 13 Aug 2025 18:20:12 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Felipe Morschel <g...@fmorschel.dev>
        unsatisfied_requirement
        satisfied_requirement
        open
        diffy

        Felipe Morschel (Gerrit)

        unread,
        Aug 13, 2025, 11:26:45 PM8/13/25
        to Samuel Rawlins, Brian Wilkerson, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
        Attention needed from Brian Wilkerson, Konstantin Shcheglov and Samuel Rawlins

        Felipe Morschel voted and added 1 comment

        Votes added by Felipe Morschel

        Auto-Submit+1

        1 comment

        Patchset-level comments
        File-level comment, Patchset 14 (Latest):
        Felipe Morschel . resolved

        Alright. After the last bot run I fixed the two problems I found and did some refactoring to make it easier to read. I think the next bots run should be fine.

        Can someone please run it for me? Thanks a lot! If it all goes well, I'm ready for the last reviews here.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Brian Wilkerson
        • Konstantin Shcheglov
        • Samuel Rawlins
        Submit Requirements:
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: sdk
          Gerrit-Branch: main
          Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
          Gerrit-Change-Number: 429240
          Gerrit-PatchSet: 14
          Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
          Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
          Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
          Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
          Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
          Gerrit-CC: Alexander Aprelev <a...@google.com>
          Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
          Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
          Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
          Gerrit-Comment-Date: Thu, 14 Aug 2025 03:26:42 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          unsatisfied_requirement
          open
          diffy

          Samuel Rawlins (Gerrit)

          unread,
          Aug 14, 2025, 12:11:05 AM8/14/25
          to Felipe Morschel, Brian Wilkerson, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
          Attention needed from Brian Wilkerson, Felipe Morschel and Konstantin Shcheglov

          Samuel Rawlins voted and added 3 comments

          Votes added by Samuel Rawlins

          Code-Review+1

          3 comments

          File pkg/analyzer/lib/src/analysis_options/analysis_options_provider.dart
          Line 78, Patchset 14 (Latest): var includes = switch (includeValue) {
          Samuel Rawlins . resolved

          I agree this is simpler.

          File pkg/analyzer/lib/src/lint/options_rule_validator.dart
          Line 201, Patchset 14 (Latest): void _processEnabledRule({
          Samuel Rawlins . unresolved

          I like splitting this into a new method.

          Can you add a doc comment describing the parameters? In particular, `activeRules` needs some text about how it is modified, and how it is subsequently called with the updated value.

          Line 204, Patchset 14 (Latest): required List<AbstractAnalysisRule> disabledRules,
          Samuel Rawlins . unresolved

          I don't see how this parameter is used. Can it be removed?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Brian Wilkerson
          • Felipe Morschel
          • Konstantin Shcheglov
          Submit Requirements:
            • requirement is not satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: sdk
            Gerrit-Branch: main
            Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
            Gerrit-Change-Number: 429240
            Gerrit-PatchSet: 14
            Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
            Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
            Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
            Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
            Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
            Gerrit-CC: Alexander Aprelev <a...@google.com>
            Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
            Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
            Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
            Gerrit-Comment-Date: Thu, 14 Aug 2025 04:11:02 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Felipe Morschel (Gerrit)

            unread,
            Aug 14, 2025, 8:28:29 AM8/14/25
            to Samuel Rawlins, Brian Wilkerson, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
            Attention needed from Brian Wilkerson, Konstantin Shcheglov and Samuel Rawlins

            Felipe Morschel voted and added 2 comments

            Votes added by Felipe Morschel

            Auto-Submit+1

            2 comments

            File pkg/analyzer/lib/src/lint/options_rule_validator.dart
            Line 201, Patchset 14: void _processEnabledRule({
            Samuel Rawlins . resolved

            I like splitting this into a new method.

            Can you add a doc comment describing the parameters? In particular, `activeRules` needs some text about how it is modified, and how it is subsequently called with the updated value.

            Felipe Morschel

            Thanks for noting it. I actually made yet another small refactor to modify it where I was calling this method (after it) and made some changes to accept only a `rules` parameter that encompasses both imported rules and rules from this file. I think it is now easier to reason about. Let me know what you think!

            Closing this so you can open new comments for the current file state.

            Line 204, Patchset 14: required List<AbstractAnalysisRule> disabledRules,
            Samuel Rawlins . resolved

            I don't see how this parameter is used. Can it be removed?

            Felipe Morschel

            Oh yes, thanks!

            I actually thought we had a warning for this on private methods, but I guess I was wrong about when it would trigger. It does so when you never assign it any value but not when you don't use it...

            I guess I'll raise this at https://github.com/dart-lang/sdk/issues/60587

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Brian Wilkerson
            • Konstantin Shcheglov
            • Samuel Rawlins
            Submit Requirements:
              • requirement is not satisfiedCode-Owners
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: sdk
              Gerrit-Branch: main
              Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
              Gerrit-Change-Number: 429240
              Gerrit-PatchSet: 14
              Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
              Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
              Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
              Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
              Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
              Gerrit-CC: Alexander Aprelev <a...@google.com>
              Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
              Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
              Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
              Gerrit-Comment-Date: Thu, 14 Aug 2025 12:28:26 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              Comment-In-Reply-To: Samuel Rawlins <sraw...@google.com>
              unsatisfied_requirement
              open
              diffy

              Samuel Rawlins (Gerrit)

              unread,
              Aug 14, 2025, 1:41:04 PM8/14/25
              to Felipe Morschel, Brian Wilkerson, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
              Attention needed from Brian Wilkerson, Felipe Morschel and Konstantin Shcheglov

              Samuel Rawlins voted and added 3 comments

              Votes added by Samuel Rawlins

              Code-Review+1

              3 comments

              Patchset-level comments
              File-level comment, Patchset 15 (Latest):
              Samuel Rawlins . resolved

              This is looking great! A really great feature to report these!

              File pkg/analyzer/lib/src/lint/options_rule_validator.dart
              Line 206, Patchset 15 (Latest): if (incompatible.where((data) => data.file == null) case var list
              Samuel Rawlins . unresolved

              Can we use a different name here, instead of `list`. This is something like `localIncompatible`, right?

              Line 224, Patchset 15 (Latest): if (incompatible.where((data) => data.file != null) case var list
              Samuel Rawlins . unresolved

              Same here, `includedIncompatible`?

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Brian Wilkerson
              • Felipe Morschel
              • Konstantin Shcheglov
              Submit Requirements:
                • requirement is not satisfiedCode-Owners
                • requirement satisfiedCode-Review
                • requirement is not satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: sdk
                Gerrit-Branch: main
                Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
                Gerrit-Change-Number: 429240
                Gerrit-PatchSet: 15
                Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
                Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
                Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
                Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
                Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
                Gerrit-CC: Alexander Aprelev <a...@google.com>
                Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
                Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
                Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
                Gerrit-Comment-Date: Thu, 14 Aug 2025 17:41:01 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: Yes
                unsatisfied_requirement
                satisfied_requirement
                open
                diffy

                Samuel Rawlins (Gerrit)

                unread,
                Aug 14, 2025, 1:41:31 PM8/14/25
                to Felipe Morschel, Brian Wilkerson, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
                Attention needed from Brian Wilkerson, Felipe Morschel and Konstantin Shcheglov

                Samuel Rawlins added 1 comment

                Patchset-level comments
                File-level comment, Patchset 15 (Latest):
                Samuel Rawlins . resolved

                This is looking great! A really great feature to report these!

                Gerrit-Comment-Date: Thu, 14 Aug 2025 17:41:28 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                unsatisfied_requirement
                satisfied_requirement
                open
                diffy

                Felipe Morschel (Gerrit)

                unread,
                Aug 14, 2025, 5:38:03 PM8/14/25
                to Samuel Rawlins, Brian Wilkerson, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
                Attention needed from Brian Wilkerson, Konstantin Shcheglov and Samuel Rawlins

                Felipe Morschel voted and added 2 comments

                Votes added by Felipe Morschel

                Auto-Submit+1

                2 comments

                File pkg/analyzer/lib/src/lint/options_rule_validator.dart
                Line 206, Patchset 15: if (incompatible.where((data) => data.file == null) case var list
                Samuel Rawlins . resolved

                Can we use a different name here, instead of `list`. This is something like `localIncompatible`, right?

                Felipe Morschel

                Sure!

                Line 224, Patchset 15: if (incompatible.where((data) => data.file != null) case var list
                Samuel Rawlins . resolved

                Same here, `includedIncompatible`?

                Felipe Morschel

                Done

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Brian Wilkerson
                • Konstantin Shcheglov
                • Samuel Rawlins
                Submit Requirements:
                  • requirement is not satisfiedCode-Owners
                  • requirement is not satisfiedCode-Review
                  • requirement is not satisfiedReview-Enforcement
                  Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                  Gerrit-MessageType: comment
                  Gerrit-Project: sdk
                  Gerrit-Branch: main
                  Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
                  Gerrit-Change-Number: 429240
                  Gerrit-PatchSet: 15
                  Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
                  Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
                  Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
                  Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
                  Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
                  Gerrit-CC: Alexander Aprelev <a...@google.com>
                  Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
                  Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
                  Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
                  Gerrit-Comment-Date: Thu, 14 Aug 2025 21:38:00 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: Yes
                  Comment-In-Reply-To: Samuel Rawlins <sraw...@google.com>
                  unsatisfied_requirement
                  open
                  diffy

                  Felipe Morschel (Gerrit)

                  unread,
                  Aug 21, 2025, 7:28:16 AM8/21/25
                  to Samuel Rawlins, Brian Wilkerson, Commit Queue, Konstantin Shcheglov, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
                  Attention needed from Brian Wilkerson, Konstantin Shcheglov and Samuel Rawlins

                  Felipe Morschel voted and added 1 comment

                  Votes added by Felipe Morschel

                  Auto-Submit+1

                  1 comment

                  Patchset-level comments
                  File-level comment, Patchset 17 (Latest):
                  Felipe Morschel . unresolved

                  Hey, @sche...@google.com, mind giving me your review here please? Thanks a lot!

                  Open in Gerrit

                  Related details

                  Attention is currently required from:
                  • Brian Wilkerson
                  • Konstantin Shcheglov
                  • Samuel Rawlins
                  Submit Requirements:
                  • requirement is not satisfiedCode-Owners
                  • requirement is not satisfiedCode-Review
                  • requirement is not satisfiedReview-Enforcement
                  Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                  Gerrit-MessageType: comment
                  Gerrit-Project: sdk
                  Gerrit-Branch: main
                  Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
                  Gerrit-Change-Number: 429240
                  Gerrit-PatchSet: 17
                  Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
                  Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
                  Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
                  Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
                  Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
                  Gerrit-CC: Alexander Aprelev <a...@google.com>
                  Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
                  Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
                  Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
                  Gerrit-Comment-Date: Thu, 21 Aug 2025 11:28:12 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: Yes
                  unsatisfied_requirement
                  open
                  diffy

                  Konstantin Shcheglov (Gerrit)

                  unread,
                  Aug 26, 2025, 12:47:04 PM8/26/25
                  to Felipe Morschel, Samuel Rawlins, Brian Wilkerson, Commit Queue, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
                  Attention needed from Felipe Morschel

                  Konstantin Shcheglov voted Code-Review+1

                  Code-Review+1
                  Open in Gerrit

                  Related details

                  Attention is currently required from:
                  • Felipe Morschel
                  Submit Requirements:
                    • requirement is not satisfiedCode-Owners
                    • requirement satisfiedCode-Review
                    • requirement is not satisfiedReview-Enforcement
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: comment
                    Gerrit-Project: sdk
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
                    Gerrit-Change-Number: 429240
                    Gerrit-PatchSet: 17
                    Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
                    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
                    Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
                    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
                    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
                    Gerrit-CC: Alexander Aprelev <a...@google.com>
                    Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
                    Gerrit-Comment-Date: Tue, 26 Aug 2025 16:47:01 +0000
                    Gerrit-HasComments: No
                    Gerrit-Has-Labels: Yes
                    unsatisfied_requirement
                    satisfied_requirement
                    open
                    diffy

                    Felipe Morschel (Gerrit)

                    unread,
                    Aug 26, 2025, 12:50:19 PM8/26/25
                    to Konstantin Shcheglov, Samuel Rawlins, Brian Wilkerson, Commit Queue, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
                    Attention needed from Brian Wilkerson and Samuel Rawlins

                    Felipe Morschel added 1 comment

                    Patchset-level comments
                    Felipe Morschel . unresolved

                    Hey, @sche...@google.com, mind giving me your review here please? Thanks a lot!

                    Felipe Morschel

                    @sraw...@google.com or @brianwi...@google.com, can you give me one more review to land this again properly, please? Thanks a lot!

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Brian Wilkerson
                    • Samuel Rawlins
                    Submit Requirements:
                    • requirement is not satisfiedCode-Owners
                    • requirement satisfiedCode-Review
                    • requirement is not satisfiedReview-Enforcement
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: comment
                    Gerrit-Project: sdk
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
                    Gerrit-Change-Number: 429240
                    Gerrit-PatchSet: 17
                    Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
                    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
                    Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
                    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
                    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
                    Gerrit-CC: Alexander Aprelev <a...@google.com>
                    Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
                    Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
                    Gerrit-Comment-Date: Tue, 26 Aug 2025 16:50:16 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    Comment-In-Reply-To: Felipe Morschel <g...@fmorschel.dev>
                    unsatisfied_requirement
                    satisfied_requirement
                    open
                    diffy

                    Samuel Rawlins (Gerrit)

                    unread,
                    Aug 26, 2025, 1:37:08 PM8/26/25
                    to Felipe Morschel, Konstantin Shcheglov, Brian Wilkerson, Commit Queue, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
                    Attention needed from Brian Wilkerson and Felipe Morschel

                    Samuel Rawlins voted and added 1 comment

                    Votes added by Samuel Rawlins

                    Code-Review+1

                    1 comment

                    Patchset-level comments
                    Felipe Morschel . resolved

                    Hey, @sche...@google.com, mind giving me your review here please? Thanks a lot!

                    Felipe Morschel

                    @sraw...@google.com or @brianwi...@google.com, can you give me one more review to land this again properly, please? Thanks a lot!

                    Samuel Rawlins

                    Done

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Brian Wilkerson
                    • Felipe Morschel
                    Submit Requirements:
                    • requirement satisfiedCode-Owners
                    • requirement satisfiedCode-Review
                    • requirement satisfiedReview-Enforcement
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: comment
                    Gerrit-Project: sdk
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
                    Gerrit-Change-Number: 429240
                    Gerrit-PatchSet: 17
                    Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
                    Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
                    Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
                    Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
                    Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
                    Gerrit-CC: Alexander Aprelev <a...@google.com>
                    Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
                    Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
                    Gerrit-Comment-Date: Tue, 26 Aug 2025 17:37:05 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: Yes
                    Comment-In-Reply-To: Felipe Morschel <g...@fmorschel.dev>
                    satisfied_requirement
                    open
                    diffy

                    Felipe Morschel (Gerrit)

                    unread,
                    Aug 26, 2025, 2:10:41 PM8/26/25
                    to Samuel Rawlins, Konstantin Shcheglov, Brian Wilkerson, Commit Queue, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
                    Attention needed from Konstantin Shcheglov and Samuel Rawlins

                    Felipe Morschel voted and added 1 comment

                    Votes added by Felipe Morschel

                    Auto-Submit+1

                    1 comment

                    Patchset-level comments
                    File-level comment, Patchset 17:
                    Felipe Morschel . resolved

                    Unfortunatelly, there have been recent changes in how the diagnostics are now generated and this CL was stale.

                    I've rebased it and fixed the bots. Can I get a new run please? Thanks!

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Konstantin Shcheglov
                    • Samuel Rawlins
                    Submit Requirements:
                      • requirement is not satisfiedCode-Owners
                      • requirement is not satisfiedCode-Review
                      • requirement is not satisfiedReview-Enforcement
                      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                      Gerrit-MessageType: comment
                      Gerrit-Project: sdk
                      Gerrit-Branch: main
                      Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
                      Gerrit-Change-Number: 429240
                      Gerrit-PatchSet: 17
                      Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
                      Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
                      Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
                      Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
                      Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
                      Gerrit-CC: Alexander Aprelev <a...@google.com>
                      Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
                      Gerrit-Attention: Samuel Rawlins <sraw...@google.com>
                      Gerrit-Comment-Date: Tue, 26 Aug 2025 18:10:37 +0000
                      Gerrit-HasComments: Yes
                      Gerrit-Has-Labels: Yes
                      unsatisfied_requirement
                      open
                      diffy

                      Samuel Rawlins (Gerrit)

                      unread,
                      Aug 26, 2025, 2:14:20 PM8/26/25
                      to Felipe Morschel, Konstantin Shcheglov, Brian Wilkerson, Commit Queue, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
                      Attention needed from Felipe Morschel and Konstantin Shcheglov

                      Samuel Rawlins voted Code-Review+1

                      Code-Review+1
                      Open in Gerrit

                      Related details

                      Attention is currently required from:
                      • Felipe Morschel
                      • Konstantin Shcheglov
                      Submit Requirements:
                        • requirement is not satisfiedCode-Owners
                        • requirement satisfiedCode-Review
                        • requirement is not satisfiedReview-Enforcement
                        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                        Gerrit-MessageType: comment
                        Gerrit-Project: sdk
                        Gerrit-Branch: main
                        Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
                        Gerrit-Change-Number: 429240
                        Gerrit-PatchSet: 18
                        Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
                        Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
                        Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
                        Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
                        Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
                        Gerrit-CC: Alexander Aprelev <a...@google.com>
                        Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
                        Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
                        Gerrit-Comment-Date: Tue, 26 Aug 2025 18:14:16 +0000
                        Gerrit-HasComments: No
                        Gerrit-Has-Labels: Yes
                        unsatisfied_requirement
                        satisfied_requirement
                        open
                        diffy

                        Konstantin Shcheglov (Gerrit)

                        unread,
                        Aug 26, 2025, 2:42:30 PM8/26/25
                        to Felipe Morschel, Samuel Rawlins, Brian Wilkerson, Commit Queue, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org
                        Attention needed from Felipe Morschel

                        Konstantin Shcheglov voted

                        Code-Review+1
                        Commit-Queue+2
                        Open in Gerrit

                        Related details

                        Attention is currently required from:
                        • Felipe Morschel
                        Submit Requirements:
                        • requirement satisfiedCode-Owners
                        • requirement satisfiedCode-Review
                        • requirement satisfiedReview-Enforcement
                        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                        Gerrit-MessageType: comment
                        Gerrit-Project: sdk
                        Gerrit-Branch: main
                        Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
                        Gerrit-Change-Number: 429240
                        Gerrit-PatchSet: 18
                        Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
                        Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
                        Gerrit-Reviewer: Felipe Morschel <g...@fmorschel.dev>
                        Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
                        Gerrit-Reviewer: Samuel Rawlins <sraw...@google.com>
                        Gerrit-CC: Alexander Aprelev <a...@google.com>
                        Gerrit-Attention: Felipe Morschel <g...@fmorschel.dev>
                        Gerrit-Comment-Date: Tue, 26 Aug 2025 18:42:27 +0000
                        Gerrit-HasComments: No
                        Gerrit-Has-Labels: Yes
                        satisfied_requirement
                        open
                        diffy

                        Commit Queue (Gerrit)

                        unread,
                        Aug 26, 2025, 3:17:48 PM8/26/25
                        to Felipe Morschel, Konstantin Shcheglov, Samuel Rawlins, Brian Wilkerson, Alexander Aprelev, dart-analys...@google.com, rev...@dartlang.org

                        Commit Queue submitted the change

                        Change information

                        Commit message:
                        [DAS] Adds some warnings for the `analysis_options` file

                        Adds `incompatible_lint` for included rules (and some variants of it) and `unsupported_value` error for linter rules values.

                        Original change: https://dart-review.googlesource.com/c/sdk/+/419982
                        Original change reverted at: https://dart-review.googlesource.com/c/sdk/+/429381

                        Fixes: https://github.com/dart-lang/sdk/issues/60125
                        Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
                        Commit-Queue: Konstantin Shcheglov <sche...@google.com>
                        Reviewed-by: Samuel Rawlins <sraw...@google.com>
                        Commit-Queue: Samuel Rawlins <sraw...@google.com>
                        Auto-Submit: Felipe Morschel <g...@fmorschel.dev>
                        Reviewed-by: Konstantin Shcheglov <sche...@google.com>
                        Files:
                        • M pkg/analysis_server/lib/src/context_manager.dart
                        • M pkg/analysis_server/lib/src/handler/legacy/edit_get_fixes.dart
                        • M pkg/analysis_server/lib/src/lsp/handlers/code_actions/analysis_options.dart
                        • M pkg/analysis_server/lib/src/services/correction/error_fix_status.yaml
                        • M pkg/analysis_server/test/services/linter/linter_test.dart
                        • M pkg/analysis_server/test/src/services/correction/fix/analysis_options/test_support.dart
                        • M pkg/analyzer/lib/src/analysis_options/analysis_options_provider.dart
                        • M pkg/analyzer/lib/src/analysis_options/error/option_codes.g.dart
                        • M pkg/analyzer/lib/src/analysis_options/options_file_validator.dart
                        • M pkg/analyzer/lib/src/diagnostic/diagnostic_code_values.g.dart
                        • M pkg/analyzer/lib/src/diagnostic/diagnostic_factory.dart
                        • M pkg/analyzer/lib/src/lint/options_rule_validator.dart
                        • M pkg/analyzer/messages.yaml
                        • M pkg/analyzer/test/generated/test_support.dart
                        • M pkg/analyzer/test/src/diagnostics/analysis_options/analysis_options_test_support.dart
                        • M pkg/analyzer/test/src/options/options_file_validator_test.dart
                        • M pkg/analyzer/test/src/options/options_rule_validator_test.dart
                        • M pkg/analyzer_cli/lib/src/driver.dart
                        Change size: XL
                        Delta: 18 files changed, 1120 insertions(+), 146 deletions(-)
                        Branch: refs/heads/main
                        Submit Requirements:
                        • requirement satisfiedCode-Review: +1 by Samuel Rawlins, +1 by Konstantin Shcheglov
                        Open in Gerrit
                        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                        Gerrit-MessageType: merged
                        Gerrit-Project: sdk
                        Gerrit-Branch: main
                        Gerrit-Change-Id: I0bc9a1a3c101c6455b8731cc0a40a39b6dfb5aac
                        Gerrit-Change-Number: 429240
                        Gerrit-PatchSet: 19
                        Gerrit-Owner: Felipe Morschel <g...@fmorschel.dev>
                        Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
                        open
                        diffy
                        satisfied_requirement
                        Reply all
                        Reply to author
                        Forward
                        0 new messages