Unverified Commit 774e8c18 authored by Dan Field's avatar Dan Field Committed by GitHub

remove ignore_for_file lints (#26545)

* remove ignore_for_file lints

* update comments

* remove example
parent 025d04ad
......@@ -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)) {
......
......@@ -6,8 +6,8 @@
// 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
/// The subset of date symbols supported by the intl package which are also
/// supported by flutter_localizations.
const Map<String, dynamic> dateSymbols = <String, dynamic>{
'ar': <String, dynamic>{
'NAME': r'''ar''',
......@@ -11356,6 +11356,9 @@ const Map<String, dynamic> dateSymbols = <String, dynamic>{
],
},
};
/// The subset of date patterns supported by the intl package which are also
/// supported by flutter_localizations.
const Map<String, Map<String, String>> datePatterns =
<String, Map<String, String>>{
'ar': <String, String>{
......
......@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: flutter_style_todos
import 'dart:async';
import 'dart:collection';
......@@ -22,12 +20,6 @@ import '../runner/flutter_command.dart';
/// Map from package name to package version, used to artificially pin a pub
/// package version in cases when upgrading to the latest breaks Flutter.
///
/// Example:
///
/// ```
/// 'linter': '0.1.35', // TODO(yjbanov): https://github.com/dart-lang/linter/issues/824
/// ```
const Map<String, String> _kManuallyPinnedDependencies = <String, String>{
// Add pinned packages here.
'flutter_gallery_assets': '0.1.6', // See //examples/flutter_gallery/pubspec.yaml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment