Skip to content
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

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

devoncarew
Copy link
Member

This PR removes three const lints from package:flutter_lints: prefer_const_constructors, prefer_const_declarations, and prefer_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

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@devoncarew
Copy link
Member Author

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.

@devoncarew devoncarew added the override: no versioning needed Override the check requiring version bumps for most changes label Sep 23, 2024
@devoncarew
Copy link
Member Author

cc @Piinks and @stuartmorgan as likely reviewers (normally I would ask @goderbauer for a review here / he would author the PR).

Copy link
Contributor

@stuartmorgan stuartmorgan left a 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.)

@devoncarew
Copy link
Member Author

(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.

@devoncarew devoncarew merged commit 54dd888 into flutter:main Sep 25, 2024
76 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 25, 2024
…t_declarations, prefer_const_literals_to_create_immutables (flutter/packages#7688)
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 25, 2024
…t_declarations, prefer_const_literals_to_create_immutables (flutter/packages#7688)
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 25, 2024
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
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 26, 2024
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
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 26, 2024
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
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 27, 2024
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
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 27, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
override: no versioning needed Override the check requiring version bumps for most changes p: flutter_lints
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants