remove ignore_for_file lints (#26545)
* remove ignore_for_file lints * update comments * remove example
This commit is contained in:
@@ -81,9 +81,11 @@ Future<void> main(List<String> rawArgs) async {
|
||||
// To regenerate run (omit --overwrite to print to console instead of the file):
|
||||
// dart --enable-asserts dev/tools/gen_date_localizations.dart --overwrite
|
||||
|
||||
// ignore_for_file: public_member_api_docs
|
||||
'''
|
||||
);
|
||||
buffer.writeln('''
|
||||
/// The subset of date symbols supported by the intl package which are also
|
||||
/// supported by flutter_localizations.''');
|
||||
buffer.writeln('const Map<String, dynamic> dateSymbols = <String, dynamic> {');
|
||||
symbolFiles.forEach((String locale, File data) {
|
||||
if (materialLocales.contains(locale))
|
||||
@@ -93,6 +95,9 @@ Future<void> main(List<String> rawArgs) async {
|
||||
|
||||
// Code that uses datePatterns expects it to contain values of type
|
||||
// Map<String, String> not Map<String, dynamic>.
|
||||
buffer.writeln('''
|
||||
/// The subset of date patterns supported by the intl package which are also
|
||||
/// supported by flutter_localizations.''');
|
||||
buffer.writeln('const Map<String, Map<String, String>> datePatterns = <String, Map<String, String>> {');
|
||||
patternFiles.forEach((String locale, File data) {
|
||||
if (materialLocales.contains(locale)) {
|
||||
|
||||
Reference in New Issue
Block a user