-
Notifications
You must be signed in to change notification settings - Fork 2
Ignore unnecessary_string_interpolations
in messages_XX.dart files
#73
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
Comments
unnecessary_string_interpolations: false
in tounnecessary_string_interpolations: false
into messages_XX.dart file
unnecessary_string_interpolations: false
into messages_XX.dart fileunnecessary_string_interpolations
in messages_XX.dart files
Hi @bambinoua, Thanks for reporting this! The I think this is more linter than a generated code issue. If you agree, I suggest leaving this open so we can monitor the need for this. In case of high demand, maybe we could add one more ignore rule within generated files. |
Yes. My suggestion is just add the additional rule to generated files: // Ignore issues from commonly used lints in this file.
// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases
// ignore_for_file:unused_import, file_names, avoid_escaping_inner_quotes
// ignore_for_file:unnecessary_string_interpolations <--- something like this |
Hi @bambinoua, I've noticed that the previously mentioned issue with the Does updating analyzer config work for you? The
|
I'm closing this issue as the latest version of the Flutter Intl extension ( |
I have this code in translation file
And my
analysis_options.yaml
contains thisunnecessary_string_interpolations: true
. So I have a warnig about unnecessary string interpolation. Is it possible to ignore this in messages files or remove redundant string interpolation fromIntl.select
The text was updated successfully, but these errors were encountered: