-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[flutter_lints] remove prefer_const_constructors, prefer_const_declarations, prefer_const_literals_to_create_immutables #7688
Conversation
…onst_literals_to_create_immutables
I believe this PR is except from the changelog check, as we're intentionally staging this change in prep for a publish once the next major version of package:lints is available. |
cc @Piinks and @stuartmorgan as likely reviewers (normally I would ask @goderbauer for a review here / he would author the PR). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM mechanically; I haven't had any direct involvement with this package before so I have no idea what the policies on changes are, or how it's versioned.
(E.g., this is the correct way to land in this repo if you explicitly don't want to publish right now, so RSLGTM on landing an unpublished change in the first place, but LGTM on this given that goal.)
Great! Yup, this is the intent. We'll follow this up near-term with a rev to some deps and to a new major version, and plan to publish that. |
…t_declarations, prefer_const_literals_to_create_immutables (flutter/packages#7688)
…t_declarations, prefer_const_literals_to_create_immutables (flutter/packages#7688)
flutter/packages@4926c0f...7da2374 2024-09-25 chingjun@google.com Update test to not depend on `Color.toString()` (flutter/packages#7701) 2024-09-25 devoncarew@google.com [flutter_lints] remove prefer_const_constructors, prefer_const_declarations, prefer_const_literals_to_create_immutables (flutter/packages#7688) 2024-09-24 tobias@leafnode.se [go_router] Fixed TabView swiping in custom stateful shell route example (flutter/packages#7583) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@4926c0f...7da2374 2024-09-25 chingjun@google.com Update test to not depend on `Color.toString()` (flutter/packages#7701) 2024-09-25 devoncarew@google.com [flutter_lints] remove prefer_const_constructors, prefer_const_declarations, prefer_const_literals_to_create_immutables (flutter/packages#7688) 2024-09-24 tobias@leafnode.se [go_router] Fixed TabView swiping in custom stateful shell route example (flutter/packages#7583) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@4926c0f...7da2374 2024-09-25 chingjun@google.com Update test to not depend on `Color.toString()` (flutter/packages#7701) 2024-09-25 devoncarew@google.com [flutter_lints] remove prefer_const_constructors, prefer_const_declarations, prefer_const_literals_to_create_immutables (flutter/packages#7688) 2024-09-24 tobias@leafnode.se [go_router] Fixed TabView swiping in custom stateful shell route example (flutter/packages#7583) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@4926c0f...7da2374 2024-09-25 chingjun@google.com Update test to not depend on `Color.toString()` (flutter/packages#7701) 2024-09-25 devoncarew@google.com [flutter_lints] remove prefer_const_constructors, prefer_const_declarations, prefer_const_literals_to_create_immutables (flutter/packages#7688) 2024-09-24 tobias@leafnode.se [go_router] Fixed TabView swiping in custom stateful shell route example (flutter/packages#7583) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@4926c0f...7da2374 2024-09-25 chingjun@google.com Update test to not depend on `Color.toString()` (flutter/packages#7701) 2024-09-25 devoncarew@google.com [flutter_lints] remove prefer_const_constructors, prefer_const_declarations, prefer_const_literals_to_create_immutables (flutter/packages#7688) 2024-09-24 tobias@leafnode.se [go_router] Fixed TabView swiping in custom stateful shell route example (flutter/packages#7583) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This PR removes three const lints from package:flutter_lints:
prefer_const_constructors
,prefer_const_declarations
, andprefer_const_literals_to_create_immutables
.This PR does not rev the pubspec version. We want to stage this change out in coordination with package:lints; see dart-lang/lints#209.
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.