clean-up analysis_options.yaml's across the repository (#81986)
This commit is contained in:
committed by
GitHub
parent
4a939d7a57
commit
2bf42e7047
@@ -1,6 +0,0 @@
|
||||
# Exclude lib/main.dart to avoid warnings about the non_nullable
|
||||
# experiment before it is enabled.
|
||||
analyzer:
|
||||
exclude:
|
||||
- lib/null_safe_main.dart
|
||||
- lib/sound_mode.dart
|
||||
@@ -15,13 +15,13 @@ import 'package:flutter/widgets.dart';
|
||||
//
|
||||
// See also `dev/integration_tests/web/lib/stack_trace.dart` that tests the
|
||||
// framework's ability to parse stack traces in all build modes.
|
||||
void main() async {
|
||||
Future<void> main() async {
|
||||
final StringBuffer errorMessage = StringBuffer();
|
||||
debugPrint = (String? message, { int? wrapWidth }) {
|
||||
errorMessage.writeln(message);
|
||||
};
|
||||
|
||||
runApp(ThrowingWidget());
|
||||
runApp(const ThrowingWidget());
|
||||
|
||||
// Let the framework flush error messages.
|
||||
await Future<void>.delayed(Duration.zero);
|
||||
@@ -63,6 +63,8 @@ bool _errorMessageFormattedCorrectly(String errorMessage) {
|
||||
}
|
||||
|
||||
class ThrowingWidget extends StatefulWidget {
|
||||
const ThrowingWidget({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_ThrowingWidgetState createState() => _ThrowingWidgetState();
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import 'dart:html' as html;
|
||||
Future<void> main() async {
|
||||
await html.window.navigator.serviceWorker?.ready;
|
||||
final String response = 'CLOSE?version=1';
|
||||
const String response = 'CLOSE?version=1';
|
||||
await html.HttpRequest.getString(response);
|
||||
html.document.body?.appendHtml(response);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import 'dart:html' as html;
|
||||
|
||||
// Verify that web applications can be run in sound mode.
|
||||
void main() {
|
||||
const isWeak = <int?>[] is List<int>;
|
||||
const bool isWeak = <int?>[] is List<int>;
|
||||
String output;
|
||||
if (isWeak) {
|
||||
output = '--- TEST FAILED ---';
|
||||
@@ -19,6 +19,6 @@ void main() {
|
||||
html.HttpRequest.request(
|
||||
'/test-result',
|
||||
method: 'POST',
|
||||
sendData: '$output',
|
||||
sendData: output,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
include: ../../../analysis_options.yaml
|
||||
Reference in New Issue
Block a user