Sync analysis_options.yaml & cleanups (#117327)
This commit is contained in:
committed by
GitHub
parent
81bc54be75
commit
fdd2d7d64a
@@ -457,6 +457,7 @@ class _SnippetChecker {
|
||||
'// ignore_for_file: directives_ordering',
|
||||
'// ignore_for_file: prefer_final_locals',
|
||||
'// ignore_for_file: unnecessary_import',
|
||||
'// ignore_for_file: unreachable_from_main',
|
||||
'// ignore_for_file: unused_element',
|
||||
'// ignore_for_file: unused_local_variable',
|
||||
];
|
||||
|
||||
@@ -12,9 +12,6 @@ import 'package:platform/platform.dart' as platform;
|
||||
|
||||
import 'package:process/process.dart';
|
||||
|
||||
const String kDocsRoot = 'dev/docs';
|
||||
const String kPublishRoot = '$kDocsRoot/doc';
|
||||
|
||||
class CommandException implements Exception {}
|
||||
|
||||
Future<void> main() async {
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
|
||||
// @dart = 2.12
|
||||
|
||||
// This is a dummy dart:ui package for the sample code analyzer tests to use.
|
||||
|
||||
/// This is a dummy dart:ui package for the sample code analyzer tests to use.
|
||||
library dart.ui;
|
||||
|
||||
/// Bla bla bla bla bla bla bla bla bla.
|
||||
|
||||
@@ -33,10 +33,10 @@ const List<String> expectedMainErrors = <String>[
|
||||
];
|
||||
|
||||
const List<String> expectedUiErrors = <String>[
|
||||
'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:15:7: (top-level declaration) (prefer_typing_uninitialized_variables)',
|
||||
'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:15:7: (top-level declaration) (missing_const_final_var_or_type)',
|
||||
'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:17:20: (top-level declaration) (prefer_final_fields)',
|
||||
'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:17:20: (top-level declaration) (unused_field)',
|
||||
'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:14:7: (top-level declaration) (prefer_typing_uninitialized_variables)',
|
||||
'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:14:7: (top-level declaration) (missing_const_final_var_or_type)',
|
||||
'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:16:20: (top-level declaration) (prefer_final_fields)',
|
||||
'dev/bots/test/analyze-snippet-code-test-dart-ui/ui.dart:16:20: (top-level declaration) (unused_field)',
|
||||
];
|
||||
|
||||
final RegExp errorPrefixRE = RegExp(r'^([-a-z0-9/_.:]+): .*(\([-a-z_ ]+\) \([-a-z_ ]+\))$');
|
||||
|
||||
Reference in New Issue
Block a user