Remove outdated ignores (#162773)

Powered by the new and amazing `unnecessary_ignore` lint.

We're not enabling this lint by default because being able to
temporarily use ignores that don't ignore anything is a powerful tool to
enable migrations. We should turn this lint on locally periodically,
though, and clean up all outdated ignores.
This commit is contained in:
Michael Goderbauer
2025-02-06 10:40:25 -08:00
committed by GitHub
parent 5944d992ac
commit c783ce2344
60 changed files with 39 additions and 147 deletions

View File

@@ -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: avoid_print
import 'dart:async';
import 'dart:convert';
import 'dart:io';

View File

@@ -2,10 +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: always_specify_types
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.

View File

@@ -1036,11 +1036,7 @@ class Demos {
description: localizations.demoCupertinoPickerDescription,
documentationUrl: '$_docsBaseUrl/cupertino/CupertinoDatePicker-class.html',
buildRoute:
(_) => DeferredWidget(
cupertinoLoader,
// ignore: prefer_const_constructors
() => cupertino_demos.CupertinoPickerDemo(),
),
(_) => DeferredWidget(cupertinoLoader, () => cupertino_demos.CupertinoPickerDemo()),
),
],
category: GalleryDemoCategory.cupertino,
@@ -1056,11 +1052,8 @@ class Demos {
description: localizations.demoCupertinoScrollbarDescription,
documentationUrl: '$_docsBaseUrl/cupertino/CupertinoScrollbar-class.html',
buildRoute:
(_) => DeferredWidget(
cupertinoLoader,
// ignore: prefer_const_constructors
() => cupertino_demos.CupertinoScrollbarDemo(),
),
(_) =>
DeferredWidget(cupertinoLoader, () => cupertino_demos.CupertinoScrollbarDemo()),
),
],
category: GalleryDemoCategory.cupertino,

View File

@@ -55,28 +55,20 @@ class RouteConfiguration {
),
Path(
r'^' + rally_routes.homeRoute,
(BuildContext context, String? match) => StudyWrapper(
study: DeferredWidget(
rally.loadLibrary,
() => rally.RallyApp(),
), // ignore: prefer_const_constructors
),
(BuildContext context, String? match) =>
StudyWrapper(study: DeferredWidget(rally.loadLibrary, () => rally.RallyApp())),
),
Path(
r'^' + shrine_routes.homeRoute,
(BuildContext context, String? match) => StudyWrapper(
study: DeferredWidget(
shrine.loadLibrary,
() => shrine.ShrineApp(),
), // ignore: prefer_const_constructors
),
(BuildContext context, String? match) =>
StudyWrapper(study: DeferredWidget(shrine.loadLibrary, () => shrine.ShrineApp())),
),
Path(
r'^' + crane_routes.defaultRoute,
(BuildContext context, String? match) => StudyWrapper(
study: DeferredWidget(
crane.loadLibrary,
() => crane.CraneApp(), // ignore: prefer_const_constructors
() => crane.CraneApp(),
placeholder: const DeferredLoadingPlaceholder(name: 'Crane'),
),
),
@@ -84,16 +76,11 @@ class RouteConfiguration {
Path(
r'^' + fortnightly_routes.defaultRoute,
(BuildContext context, String? match) => StudyWrapper(
study: DeferredWidget(
fortnightly.loadLibrary,
// ignore: prefer_const_constructors
() => fortnightly.FortnightlyApp(),
),
study: DeferredWidget(fortnightly.loadLibrary, () => fortnightly.FortnightlyApp()),
),
),
Path(
r'^' + reply_routes.homeRoute,
// ignore: prefer_const_constructors
(BuildContext context, String? match) =>
const StudyWrapper(study: reply.ReplyApp(), hasBottomNavBar: true),
),