Skip to content

Conversation

@srawlins
Copy link
Contributor

no_adjacent_strings_in_list conflicts with another rule, prefer_adjacent_string_concatenation. I suggest removing the former.

See dart-lang/sdk#59041

prefer_adjacent_string_concatenation is a style-oriented rule, but it is in the package:lints recommended set. So... it is recommended.

no_adjacent_strings_in_list is an error-preventing lint rule, but it's usefulness is waning, as the new style of the Dart formatter will always split adjacent strings into new lines.

We are marking these two lint rules as incompatible. If the fix in this PR is not desired, there are two other options:

  • Remove prefer_adjacent_string_concatenation from the enabled lint rules.
  • Insert an # ignore: comment in the top-level analysis options file, and an # ignore: included_file_warning comment in any files that include the top-level one.

Pre-launch Checklist

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

@stuartmorgan-g
Copy link
Collaborator

We should comment this out with an explanation, as with most other lints we don't use use (see the rest of the file), rather than removing it.

It's unfortunate that we're having to turn off a useful warning before we get the formatter change that would make the mistake the warning would catch obvious though.

@srawlins srawlins marked this pull request as draft October 17, 2024 14:12
@srawlins
Copy link
Contributor Author

I'll convert to draft for a bit.

@stuartmorgan-g stuartmorgan-g added waiting for stable update Can't be landed until functionality reaches the stable channel and removed waiting for stable update Can't be landed until functionality reaches the stable channel labels Dec 3, 2024
@stuartmorgan-g
Copy link
Collaborator

I'll convert to draft for a bit.

If we are waiting for the new formatter first, this will need to be Draft until all of our packages require Dart 3.7, right?

@srawlins
Copy link
Contributor Author

srawlins commented Dec 3, 2024

Sure.

@goderbauer
Copy link
Member

(triage): Talked to @srawlins and he says this is still on his radar.

@Piinks
Copy link
Contributor

Piinks commented Apr 18, 2025

(triage): Talked to @srawlins and he says this is still on his radar.

Howdy, checking in from triage again. @srawlins is this still on your radar?

@srawlins
Copy link
Contributor Author

Still on my radar. Waiting for minimum package versions to be >= 3.7.0.

@Piinks
Copy link
Contributor

Piinks commented Jul 8, 2025

Waiting for minimum package versions to be >= 3.7.0.

Is this condition now satisfied? :)

@srawlins
Copy link
Contributor Author

srawlins commented Jul 8, 2025

@stuartmorgan-g
Copy link
Collaborator

The only automatic roll-forward of min SDK versions is that after each stable we update any package that supports a version of Flutter/Dart older than the N-2 stable Flutter version to require N-2 (since we don't run analysis in CI of anything older than N-2, so wouldn't find breakage).

So in the normal course of business, this would be landable after the next Flutter stable release. If there's a strong desire to land this before then, it would be fine to mass-update everything to require N-1 right now, as there's no requirement to support anything older than current stable.

@stuartmorgan-g stuartmorgan-g marked this pull request as ready for review August 19, 2025 18:24
@stuartmorgan-g
Copy link
Collaborator

Everything in the repo is now using the new formatter (except for the repo tooling, but that's fine), so we can land this now.

@stuartmorgan-g
Copy link
Collaborator

We should comment this out with an explanation, as with most other lints we don't use use (see the rest of the file), rather than removing it.

This still needs to be addressed, then this can land.

@Piinks
Copy link
Contributor

Piinks commented Oct 20, 2025

Greetings from stale PR triage! 👋
Is this change still on your radar?

@srawlins
Copy link
Contributor Author

Yes I'll try to get back to this.

@srawlins
Copy link
Contributor Author

OK this is ready for review.

Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 2, 2025
@auto-submit auto-submit bot merged commit 8cb4903 into main Dec 2, 2025
81 checks passed
@auto-submit auto-submit bot deleted the srawlins-patch-1 branch December 2, 2025 20:49
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 3, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Dec 3, 2025
flutter/packages@148dcd2...8cb4903

2025-12-02 [email protected] Remove `no_adjacent_strings_in_list` from
enabled lint rules. (flutter/packages#7878)
2025-12-02 [email protected] Roll Flutter from
05d6005 to 5545bb3 (28 revisions) (flutter/packages#10551)
2025-12-02 [email protected] [two_dimensional_scrollables] Update
test for deprecation (flutter/packages#10525)

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 [email protected] 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
reidbaker pushed a commit to AbdeMohlbi/flutter that referenced this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants