Closed davidmorgan closed 5 years ago
/cc @a14n
I can see the lint on your example. What's the version of Dart SDK?
Thanks! I dug in a bit more. The lint (using dartanalyzer --lint
on the command line) only works if there is a pubspec.yaml
file.
Since we don't use pubspec.yaml
in google3 it's not there and the lint doesn't fire.
Question is, what is it in the implementation that needs it? I don't see anything. Maybe @pq has an idea...
Right. We use the pubspec here as a way to identify the root of the project.
which, in turn, is how we identify if we're in lib/
This is a a kind of funky hack and there are a few other ways to do it. I'll take a look at alternatives today.
The current thinking is to update our test to use workspace
s which are Google3-aware.
Supporting API update in flight here:
@davidmorgan: this should be fixed as of the next roll into Google3; please let me know if you see otherwise!
The lint doesn't fire anywhere in google3, and I couldn't get it to fire by hand, even using the example in the lint docs. Any ideas please?