enable lints prefer_spread_collections and prefer_inlined_adds (#35189)
This commit is contained in:
committed by
GitHub
parent
31cf49a9c9
commit
919dcf53f3
@@ -117,7 +117,7 @@ Future<void> main(List<String> arguments) async {
|
||||
// Verify which version of dartdoc we're using.
|
||||
final ProcessResult result = Process.runSync(
|
||||
pubExecutable,
|
||||
<String>[]..addAll(dartdocBaseArgs)..add('--version'),
|
||||
<String>[...dartdocBaseArgs, '--version'],
|
||||
workingDirectory: kDocsRoot,
|
||||
environment: pubEnvironment,
|
||||
);
|
||||
@@ -137,7 +137,8 @@ Future<void> main(List<String> arguments) async {
|
||||
// Generate the documentation.
|
||||
// We don't need to exclude flutter_tools in this list because it's not in the
|
||||
// recursive dependencies of the package defined at dev/docs/pubspec.yaml
|
||||
final List<String> dartdocArgs = <String>[]..addAll(dartdocBaseArgs)..addAll(<String>[
|
||||
final List<String> dartdocArgs = <String>[
|
||||
...dartdocBaseArgs,
|
||||
'--inject-html',
|
||||
'--header', 'styles.html',
|
||||
'--header', 'analytics.html',
|
||||
@@ -145,7 +146,8 @@ Future<void> main(List<String> arguments) async {
|
||||
'--header', 'snippets.html',
|
||||
'--header', 'opensearch.html',
|
||||
'--footer-text', 'lib/footer.html',
|
||||
'--allow-warnings-in-packages', <String>[
|
||||
'--allow-warnings-in-packages',
|
||||
<String>[
|
||||
'Flutter',
|
||||
'flutter',
|
||||
'platform_integration',
|
||||
@@ -198,7 +200,7 @@ Future<void> main(List<String> arguments) async {
|
||||
'--favicon=favicon.ico',
|
||||
'--package-order', 'flutter,Dart,platform_integration,flutter_test,flutter_driver',
|
||||
'--auto-include-dependencies',
|
||||
]);
|
||||
];
|
||||
|
||||
String quote(String arg) => arg.contains(' ') ? "'$arg'" : arg;
|
||||
print('Executing: (cd $kDocsRoot ; $pubExecutable ${dartdocArgs.map<String>(quote).join(' ')})');
|
||||
|
||||
@@ -3,7 +3,7 @@ description: Various repository development tools for flutter.
|
||||
|
||||
environment:
|
||||
# The pub client defaults to an <2.0.0 sdk constraint which we need to explicitly overwrite.
|
||||
sdk: ">=2.2.0 <3.0.0"
|
||||
sdk: ">=2.2.2 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
archive: 2.0.10
|
||||
|
||||
Reference in New Issue
Block a user