1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Upgrading samples to flutter_lints, part 1 of n (#804)

This commit is contained in:
Brett Morgan
2021-06-05 12:24:28 +10:00
committed by GitHub
parent 14921d0c06
commit 936d1fdaae
230 changed files with 2361 additions and 2444 deletions

View File

@@ -0,0 +1 @@
include: package:lints/recommended.yaml

View File

@@ -10,7 +10,7 @@ const ansiMagenta = 35;
Future<bool> run(
String workingDir, String commandName, List<String> args) async {
var commandDescription = '`${([commandName]..addAll(args)).join(' ')}`';
var commandDescription = '`${([commandName, ...args]).join(' ')}`';
logWrapped(ansiMagenta, ' Running $commandDescription');

View File

@@ -7,34 +7,41 @@ packages:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.0"
version: "2.1.1"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.3"
version: "1.2.0"
lints:
dependency: "direct dev"
description:
name: lints
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
markdown:
dependency: "direct main"
description:
name: markdown
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.0-nullsafety.0"
version: "4.0.0"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.6"
version: "1.4.0"
path:
dependency: "direct main"
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.3"
version: "1.8.0"
sdks:
dart: ">=2.12.0-0 <3.0.0"
dart: ">=2.12.0 <3.0.0"

View File

@@ -1,9 +1,12 @@
name: tool
publish_to: none
environment:
sdk: '>=2.10.0 <3.0.0'
environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
markdown: ^4.0.0-nullsafety.0
path: ^1.8.0-nullsafety.3
markdown: ^4.0.0
path: ^1.8.0
dev_dependencies:
lints: ^1.0.0

View File

@@ -27,8 +27,8 @@ void main() async {
]));
results.add(await run(
dir,
'dartanalyzer',
['--fatal-infos', '--fatal-warnings', '.'],
'flutter',
['analyze', '--fatal-infos', '--fatal-warnings', '.'],
));
_printStatus(results);
}