[gen_l10n] Format generated localizations#108563
[gen_l10n] Format generated localizations#108563AlexV525 wants to merge 22 commits intoflutter:masterfrom
Conversation
| 'an issue with the localizations generation tool. Please file an issue ' | ||
| 'on GitHub with a reproducible sample app and the gen-l10n configuration ' | ||
| 'that was used.' | ||
| 'that was used.', |
There was a problem hiding this comment.
These fix require_trailing_commas.
57976b1 to
f58f52f
Compare
This comment was marked as resolved.
This comment was marked as resolved.
|
Seeing a couple of timeout exceptions when running tests, but all passed after re-run. |
|
Adding @thkim1011 to review. |
|
Global artifacts and the process manager should be passed at least from the command and the |
|
And the format process may not fit the default timeout (2 seconds) with tests... |
packages/flutter_tools/test/commands.shard/hermetic/generate_localizations_test.dart
Show resolved
Hide resolved
|
@thkim1011 should we close this as superceded by #109171 ? |
|
Hey @AlexV525, although we really appreciate the contribution, I merged in my changes (#109171) as I would prefer to keep the dart formatting logic separate from the main |
Generated localizations dart files are always not well-formatted. Previously I've applied #103414 but it's not enough for analysis apparently. This PR adds the ability to format generated files when running
flutter gen-l10n.generateLocalizationsis nowFuture<LocalizationsGenerator.loadResourcesandwriteOutputFilesare combined togenerate.writeOutputFilesis no longer public visible._formatOutputFileswill format only output files.Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.