mirror of
https://github.com/flutter/packages.git
synced 2025-07-09 21:55:28 +08:00
Fix analyzer issues (#3863)
* Make infos fatal when analyzing packages * Fix import ordering for updated analysis
This commit is contained in:
@ -70,7 +70,8 @@ class AnalyzeCommand extends PluginCommand {
|
||||
final List<String> failingPackages = <String>[];
|
||||
await for (final Directory package in getPlugins()) {
|
||||
final int exitCode = await processRunner.runAndStream(
|
||||
'dart', <String>['analyze'], workingDir: package);
|
||||
'dart', <String>['analyze', '--fatal-infos'],
|
||||
workingDir: package);
|
||||
if (exitCode != 0) {
|
||||
failingPackages.add(p.basename(package.path));
|
||||
}
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:file/file.dart';
|
||||
import 'package:git/git.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:pub_semver/pub_semver.dart';
|
||||
import 'package:pubspec_parse/pubspec_parse.dart';
|
||||
|
||||
|
Reference in New Issue
Block a user