[S] Change in dart/sdk[main]: Don't lint on raw types in constant patterns if the matched type is o...

0 views
Skip to first unread message

Brian Wilkerson (Gerrit)

unread,
Jun 9, 2026, 4:01:11 PM (2 days ago) Jun 9
to Jake Macdonald, Brian Wilkerson, Phil Quitslund, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Jake Macdonald and Phil Quitslund

Brian Wilkerson voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Jake Macdonald
  • Phil Quitslund
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: I7c5e25e9754c4cebd427b8dc9ccfbe8daa57e71a
Gerrit-Change-Number: 510460
Gerrit-PatchSet: 4
Gerrit-Owner: Jake Macdonald <jak...@google.com>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: Jake Macdonald <jak...@google.com>
Gerrit-Reviewer: Phil Quitslund <pquit...@google.com>
Gerrit-Attention: Phil Quitslund <pquit...@google.com>
Gerrit-Attention: Jake Macdonald <jak...@google.com>
Gerrit-Comment-Date: Tue, 09 Jun 2026 20:01:06 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Jake Macdonald (Gerrit)

unread,
Jun 9, 2026, 4:03:26 PM (2 days ago) Jun 9
to dart-...@luci-project-accounts.iam.gserviceaccount.com, Brian Wilkerson, Phil Quitslund, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Phil Quitslund

Jake Macdonald voted Auto-Submit+1

Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Phil Quitslund
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: I7c5e25e9754c4cebd427b8dc9ccfbe8daa57e71a
Gerrit-Change-Number: 510460
Gerrit-PatchSet: 4
Gerrit-Owner: Jake Macdonald <jak...@google.com>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: Jake Macdonald <jak...@google.com>
Gerrit-Reviewer: Phil Quitslund <pquit...@google.com>
Gerrit-Attention: Phil Quitslund <pquit...@google.com>
Gerrit-Comment-Date: Tue, 09 Jun 2026 20:03:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Phil Quitslund (Gerrit)

unread,
Jun 9, 2026, 6:15:02 PM (2 days ago) Jun 9
to Jake Macdonald, dart-...@luci-project-accounts.iam.gserviceaccount.com, Brian Wilkerson, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson and Jake Macdonald

Phil Quitslund voted and added 1 comment

Votes added by Phil Quitslund

Code-Review+1

1 comment

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Phil Quitslund . resolved

This seems reasonable to me but if Brian disagrees (or would just prefer), let's go ahead and open an issue and invite a broader conversation.

Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
  • Jake Macdonald
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: I7c5e25e9754c4cebd427b8dc9ccfbe8daa57e71a
Gerrit-Change-Number: 510460
Gerrit-PatchSet: 5
Gerrit-Owner: Jake Macdonald <jak...@google.com>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: Jake Macdonald <jak...@google.com>
Gerrit-Reviewer: Phil Quitslund <pquit...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Attention: Jake Macdonald <jak...@google.com>
Gerrit-Comment-Date: Tue, 09 Jun 2026 22:14:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Jake Macdonald (Gerrit)

unread,
Jun 10, 2026, 11:23:36 AM (18 hours ago) Jun 10
to Phil Quitslund, dart-...@luci-project-accounts.iam.gserviceaccount.com, Brian Wilkerson, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Brian Wilkerson

Jake Macdonald voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention is currently required from:
  • Brian Wilkerson
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: I7c5e25e9754c4cebd427b8dc9ccfbe8daa57e71a
Gerrit-Change-Number: 510460
Gerrit-PatchSet: 5
Gerrit-Owner: Jake Macdonald <jak...@google.com>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: Jake Macdonald <jak...@google.com>
Gerrit-Reviewer: Phil Quitslund <pquit...@google.com>
Gerrit-Attention: Brian Wilkerson <brianwi...@google.com>
Gerrit-Comment-Date: Wed, 10 Jun 2026 15:23:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

dart-scoped@luci-project-accounts.iam.gserviceaccount.com (Gerrit)

unread,
Jun 10, 2026, 11:23:47 AM (18 hours ago) Jun 10
to Jake Macdonald, Phil Quitslund, Brian Wilkerson, dart-analys...@google.com, rev...@dartlang.org

dart-...@luci-project-accounts.iam.gserviceaccount.com submitted the change

Change information

Commit message:
Don't lint on raw types in constant patterns if the matched type is of type Type.

The issue does not have total consensus but I do feel strongly and the
fix was trivial and so I am just sending this out.

Feel free to push back if you feel strongly, or I should go through some
formal process.
Change-Id: I7c5e25e9754c4cebd427b8dc9ccfbe8daa57e71a
Auto-Submit: Jake Macdonald <jak...@google.com>
Commit-Queue: Jake Macdonald <jak...@google.com>
Reviewed-by: Phil Quitslund <pquit...@google.com>
Files:
  • M pkg/analysis_server/test/src/services/correction/fix/convert_to_constant_pattern_test.dart
  • M pkg/linter/CHANGELOG.md
  • M pkg/linter/lib/src/rules/type_literal_in_constant_pattern.dart
  • M pkg/linter/test/rules/type_literal_in_constant_pattern_test.dart
Change size: M
Delta: 4 files changed, 27 insertions(+), 34 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Phil Quitslund
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: I7c5e25e9754c4cebd427b8dc9ccfbe8daa57e71a
Gerrit-Change-Number: 510460
Gerrit-PatchSet: 6
Gerrit-Owner: Jake Macdonald <jak...@google.com>
Gerrit-Reviewer: Brian Wilkerson <brianwi...@google.com>
Gerrit-Reviewer: Jake Macdonald <jak...@google.com>
Gerrit-Reviewer: Phil Quitslund <pquit...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages