Commit Graph

10 Commits

Author SHA1 Message Date
Greg Spencer
bf1fb6e84b Switch sample analysis over to use package:flutter_lints (#84303)
This switches the sample analysis code to use package:flutter_lints instead of the flutter repo analysis options, so that they are compatible with a similar change to DartPad.
2021-06-09 18:09:14 -07:00
Sam Rawlins
b2ed8a25b5 Ignore unnecessary_import reports in sample code (#84125) 2021-06-07 12:14:06 -07:00
nt4f04uNd
80a2b6b015 Fix typos (#82589) 2021-05-20 17:19:09 -07:00
Greg Spencer
59b406c760 Sort imports when interpolating sample templates (#81873) 2021-05-07 15:34:04 -07:00
Greg Spencer
ea9d9ee9fd Turn off directives_ordering lint when analyzing samples (#81698)
This turns off the "directives_ordering" lint when analyzing samples, since it's indeterminate what the ordering will be, given that samples derive their imports both from the template and the example code.

This is temporary to avoid broken builds, but the correct solution is to reorder the output so that the imports are ordered properly so that we give the proper example for our users.
2021-05-03 13:41:29 -07:00
Greg Spencer
7bff366b96 Convert snippets tool to null safety (#78646) 2021-04-29 22:34:04 -07:00
Phil Quitslund
1105c8b956 ignore directives ordering in generated code (#81017) 2021-04-22 21:24:02 -07:00
Greg Spencer
b33c7891c1 Fix the sample analyzer to analyze dart:ui and make the analyzer null safe (#80742) 2021-04-22 12:14:02 -07:00
Greg Spencer
a8d820a46e Update samples to use repo analysis options, Fix sample templates and a ton of analyzer issues (#77868) 2021-03-11 16:45:03 -08:00
Michael Goderbauer
7e017d318e Enable file_names and package_names lints (#77087) 2021-03-02 15:24:04 -08:00