remove ignore_for_file lints (#26545)

* remove ignore_for_file lints

* update comments

* remove example
This commit is contained in:
Dan Field
2019-01-15 08:42:47 -08:00
committed by GitHub
parent 025d04ad52
commit 774e8c18e3
3 changed files with 11 additions and 11 deletions

View File

@@ -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)) {