Commit Graph

1141 Commits

Author SHA1 Message Date
Ian Hickson
299d484903 Enable more lints (#91642) 2021-10-14 22:03:03 -07:00
Danny Tuppeny
f8f96a4f80 Run "flutter update-packages --force-upgrade" to get latest DDS (#91736) 2021-10-13 10:58:04 -07:00
Ian Hickson
bb5cbdc635 Enable depend_on_referenced_packages lint (#91653) 2021-10-12 11:28:02 -07:00
Ian Hickson
61a0add286 Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
Zachary Anderson
b9d2177da0 Revert "Enable avoid_redundant_argument_values lint (#91409)" (#91461)
This reverts commit 5fd259be24.
2021-10-07 21:11:07 -07:00
Ian Hickson
5fd259be24 Enable avoid_redundant_argument_values lint (#91409) 2021-10-07 20:13:02 -07:00
Clement Skau
64841f6309 Adds analyze_sample_code exit for when pub fails (#91024) 2021-10-05 10:28:04 -07:00
Janice Collins
35fe52cb86 Update dartdoc to 4.0.0 (#91252) 2021-10-04 14:08:04 -07:00
Greg Spencer
983cbb273b Add example test, update example READMEs (#91130) 2021-10-04 13:53:02 -07:00
Greg Spencer
7b8a3c1bcd Force building of snippets package executable. (#91110)
This fixes an issue with the Dart Head-Head-Head CI bot, where it was seeing failures because of concurrent execution of the snippets tool.

It adds a single run of the snippets tool right after activation to force the compiling of the package executable, which is what has trouble with concurrent invocation.

This is a temporary measure until dart pub global run is fixed.
2021-10-04 12:17:27 -07:00
Greg Spencer
fd9ce27748 Clean up examples, remove section markers and --template args (#91133)
This does a cleanup of the examples, removing all of the "section" markers and extra comments that we don't need anymore now that the samples are no longer in the source code. It also removes the --template arguments from the {@tool dartpad} and {@tool sample} directives, since those are no longer used. It converts two examples that I discovered were still embedded into linked examples in the examples folder.

I didn't delete the templates from the snippets config folder yet, because there are still embedded samples in the dart:ui package from the engine that use them. Once dart:ui no longer uses the templates, they can be removed.

I bumped the version of the snippets package to pick up a change that allows removal of the --template argument.
2021-10-04 12:16:17 -07:00
Ian Hickson
126cd7388e Clean up dependency pins and update all packages (#91109) 2021-10-04 10:28:03 -07:00
Christopher Fujino
7fbfb1fad9 update consumer dependencies signature (#91116) 2021-10-01 13:32:47 -07:00
Ian Hickson
4315cdcf76 Some test cleanup for flutter_tools. (#90227) 2021-10-01 10:38:02 -07:00
Christopher Fujino
afd84ad425 flutter update-packages (#90994) 2021-09-30 11:38:02 -07:00
Kenzie (Schmoll) Davisson
5a85c0d81c Launch DevTools from the 'dart devtools' command instead of pub (#90894) 2021-09-29 15:32:24 -07:00
Daco Harkes
2e663b2472 [bots] Print more on --verbose analyze_sample_code (#90880) 2021-09-28 11:08:05 -07:00
Greg Spencer
ab2b0851a2 Add smoke tests for all the examples, fix 17 broken examples. (#89021)
This adds a smoke test for every single API example. It also fixes 17 tests that had bugs in them, or were otherwise broken, and even fixes one actual bug in the framework, and one limitation in the framework.

The bug in the framework is that NetworkImage's _loadAsync method had await response.drain<List<int>>();, but if the response is null, it will throw a cryptic exception saying that Null can't be assigned to List<int>. The fix was just to use await response.drain<void>(); instead.

The limitation is that RelativePositionedTransition takes an Animation<Rect> rect parameter, and if you want to use a RectTween with it, the value emitted there is Rect?, and one of the examples was just casting from Animation<Rect> to Animation<Rect?>, which is invalid, so I modified RelativePositionedTransition to take a Rect? and just use Rect.zero if the rect is null.
2021-09-28 09:32:06 -07:00
Daco Harkes
67fdf937c3 [bots] verbose logs when analyzing samples (#90447) 2021-09-27 12:38:07 -07:00
Christopher Fujino
69ae50310b [flutter_conductor] implement UI scaffold (#90621) 2021-09-24 15:30:09 -07:00
Janice Collins
2d909fcc5b Update dartdoc to v3.1.0. (#90415) 2021-09-24 14:03:07 -07:00
Jason Simmons
518bea67fd Update the analysis options for sample code to ignore unnecessary_imports (#90391)
See https://github.com/flutter/flutter/issues/74381
2021-09-20 09:44:58 -07:00
Kate Lovett
65d8dd988d Update md5 method in flutter_goldens_client (#90154) 2021-09-15 17:42:05 -07:00
Ian Hickson
2420718389 Remove our extra timeout logic. (#89952) 2021-09-15 09:42:05 -07:00
stuartmorgan
a01e4733df Re-enable plugin analysis test (#89856) 2021-09-13 17:57:05 -07:00
Anna Gringauze
cd112e551c Update all packages (#89797) 2021-09-13 12:13:42 -07:00
Janice Collins
0353fa282b Update dartdoc to 3.0.0 (#89603) 2021-09-08 12:32:06 -07:00
Jacob MacDonald
383930c2bc update package dependencies (#89381) 2021-09-02 14:41:05 -07:00
Konstantin Scheglov
cfd0743d10 Fix UNNECESSARY_TYPE_CHECK_TRUE violations. (#89186) 2021-08-31 15:46:05 -07:00
Kate Lovett
616f9bcffa Add tag support for executing reduced test sets (#86821) 2021-08-30 15:41:02 -07:00
Greg Spencer
a7310dc0d4 Eliminate uses of pub executable in docs publishing and sample analysis. (#89181) 2021-08-30 12:16:05 -07:00
keyonghan
db4c104c8e Use task name when uploading metrics to skia perf (#89004) 2021-08-26 22:31:02 -07:00
Darren Austin
807ca68d5c Enhance the skip test parsing the analyzer script. (#88894) 2021-08-25 14:56:03 -07:00
Greg Spencer
33403bd28e Extract Sample code into examples/api (#87280)
This extracts the sample code out from the API doc comments, and places them in separate files on disk, allowing running of the examples locally, testing them, and building of slightly larger examples.
2021-08-25 09:45:12 -07:00
Janice Collins
f74be66494 Update dartdoc to 2.0.0. (#88729) 2021-08-23 14:27:04 -07:00
Christopher Fujino
efaa9a4637 update-packages --force-upgrade (#88728) 2021-08-23 12:57:08 -07:00
Jonah Williams
fa0782b696 reassign jonahwilliams todos (#88707) 2021-08-23 12:27:07 -07:00
Christopher Fujino
81eb54bf78 update-packages (#88387) 2021-08-17 18:49:32 -07:00
Gary Qian
a562b3cb3d Deferred components integration test app (#88030) 2021-08-16 15:32:05 -07:00
Greg Spencer
2a42069b2a Bump snippets to 0.2.3, fix redundant global activate in docs.sh (#88123) 2021-08-12 17:37:05 -07:00
Greg Spencer
10e4b04010 Switch document generation to use the snippets package (#87231)
Switch document generation to use the snippets package instead of the snippets code in the Flutter repo. In the process, some bugs in sample code analysis have been fixed, and I've fixed some more errors in the samples.

This will allow the snippets package to be developed separately from the Flutter repo, and reduce the code in the Flutter repo.

The snippets code is deleted in this PR.

I also converted some comments in the snippet templates to be regular comments instead of doc comments, because having a doc comment block before the imports causes the Dart import sorter to lose the comment. They should have been regular comments in the first place.

The snippets package resides in the assets-for-api-docs repo.

The sample analysis has also been converted to be run in parallel, and I've bumped the Dartdoc version to 1.0.2.
2021-08-11 19:48:29 -07:00
Darren Austin
41ff30c871 Added a check to the analyzer script to detect skipped tests. (#88003)
Added a check to the analyzer script to detect skipped tests that aren't commented.

The comment following the `skip` parameter should include either a link to a
github issue tracking the reenabling of the test, or a '[intended]' tag with
a brief description of why the test should never be enabled for the given
condition.
2021-08-10 23:03:48 -07:00
Chris Bracken
497eb13d03 Migrate python invocations to python3 (#87759)
Python 2 has been end-of-life'd since January 2020, all Python scripts
on which Flutter depends have been migrated to Python 3. This changes
documentation and remaining invocations to explicitly invoke python3.

Issue: https://github.com/flutter/flutter/issues/83043
2021-08-06 14:42:08 -07:00
Greg Spencer
169bb1b73f Fix the sample code analyzer to properly handle missing_identifier errors (#87593)
This fixes how the sample analyzer handles missing_identifier errors. It was looking at the wrong line, and missing an else clause, so it was silently allowing missing_identifier errors to pass.

In addition, this fixes the sample generation so that it uses the correct filename for the output files: it previously was looking for the first line that had a filename, which was meant to indicate a non-generated line. This change adds a new Line.generated constructor for generated lines, so that they can also have the correct filename associated with them.
2021-08-03 17:39:12 -07:00
Anna Gringauze
cc63c81408 Update all packages (#87579)
- Update dwds and and the rest of the packages

Closes: https://github.com/flutter/flutter/issues/87100
2021-08-03 16:37:48 -07:00
Jonah Williams
0d3b44e835 [flutter] replace 'checked mode' with 'debug mode' (#87408) 2021-08-03 13:25:05 -07:00
Darren Austin
9c3cd40af2 Skip test audit for dev tests. (#87147) 2021-08-03 11:17:41 -07:00
Greg Spencer
0151359c07 Fix some errors in snippets (#87528) 2021-08-03 10:20:04 -07:00
Jenn Magder
0abf02f855 Do not run web shard during tool_tests when subshard is missing (#87385) 2021-07-30 17:44:02 -07:00
stuartmorgan
a9fcfd1175 Update the call to analyze the plugins repo (#87121) 2021-07-27 11:34:04 -07:00