mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
fixes to flutter analyze for the latest dev sdk
This commit is contained in:
parent
9257682b01
commit
0f55ebe503
@ -265,7 +265,7 @@ class AnalyzeCommand extends FlutterCommand {
|
||||
|
||||
List<Pattern> patternsToSkip = <Pattern>[
|
||||
'Analyzing [${mainFile.path}]...',
|
||||
new RegExp('^\\[hint\\] Unused import \\(${mainFile.path},'),
|
||||
new RegExp('^\\[(hint|error)\\] Unused import \\(${mainFile.path},'),
|
||||
new RegExp(r'^\[.+\] .+ \(.+/\.pub-cache/.+'),
|
||||
new RegExp(r'^\[error\] Invalid override\. The type of [^ ]+ \(.+\) is not a subtype of [^ ]+ \(.+\)\.'), // we allow type narrowing
|
||||
new RegExp(r'^\[warning\] .+ will need runtime check to cast to type .+'), // https://github.com/dart-lang/sdk/issues/24542
|
||||
@ -273,6 +273,7 @@ class AnalyzeCommand extends FlutterCommand {
|
||||
new RegExp('^\\[error\\] Target of URI does not exist: \'dart:ui_internals\''), // https://github.com/flutter/flutter/issues/83
|
||||
new RegExp(r'\[lint\] Prefer using lowerCamelCase for constant names.'), // sometimes we have no choice (e.g. when matching other platforms)
|
||||
new RegExp(r'\[lint\] Avoid defining a one-member abstract class when a simple function will do.'), // too many false-positives; code review should catch real instances
|
||||
new RegExp(r'\[info\] TODO.+'),
|
||||
new RegExp(r'[0-9]+ (error|warning|hint|lint).+found\.'),
|
||||
new RegExp(r'^$'),
|
||||
];
|
||||
|
||||
@ -30,11 +30,7 @@ const String command = 'command';
|
||||
/// process).
|
||||
class DaemonCommand extends FlutterCommand {
|
||||
final String name = 'daemon';
|
||||
final String description =
|
||||
'Run a persistent, JSON-RPC based server to communicate with devices.';
|
||||
final String usageFooter =
|
||||
'\nThis command is intended to be used by tooling environments that need '
|
||||
'a programatic interface into launching Flutter applications.';
|
||||
final String description = 'Run a persistent, JSON-RPC based server to communicate with devices.';
|
||||
|
||||
@override
|
||||
Future<int> runInProject() async {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user