Skip to content

[macros] support for prefer_const_constructors_in_immutables #59468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #59399
pq opened this issue May 8, 2024 · 1 comment
Closed
Tracked by #59399

[macros] support for prefer_const_constructors_in_immutables #59468

pq opened this issue May 8, 2024 · 1 comment
Assignees
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. linter-false-positive linter-set-flutter P2 A bug or feature request we're likely to work on

Comments

@pq
Copy link
Member

pq commented May 8, 2024

Since constructors in macro definitions must be const and will produce a compilation error if not, this lint would be overreporting in the odd case where a macro is marked @immutable.

@pq pq self-assigned this May 8, 2024
@pq pq changed the title [macros] evaluate support for prefer_const_constructors_in_immutables [macros] support for prefer_const_constructors_in_immutables May 8, 2024
@pq pq added linter-false-positive P2 A bug or feature request we're likely to work on labels May 8, 2024
copybara-service bot referenced this issue May 10, 2024
…ructors

Fixes: https://github.com/dart-lang/linter/issues/4966

Change-Id: I4aee65dc62df509833796100ca6f86b904fc72ad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365860
Commit-Queue: Phil Quitslund <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
@pq
Copy link
Member Author

pq commented May 10, 2024

Fixed w/ a9905e9.

@pq pq closed this as completed May 10, 2024
@devoncarew devoncarew added devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. labels Nov 20, 2024
@devoncarew devoncarew transferred this issue from dart-archive/linter Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. linter-false-positive linter-set-flutter P2 A bug or feature request we're likely to work on
Projects
None yet
Development

No branches or pull requests

2 participants