-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Timings script should highlight slow lint rules #57765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I love the idea of colorizing output (and am a big fan of /cc @bwilkerson |
I'm not sure why it would be more work, but yes, the command-line analyzer is the right place for this work. |
Ah I see, certainly. What brought me here actually, was the TODO on the
|
OK. I guess you're right. Not more, just different... 😄
I'm not sure. At the moment, I think very few folks look at the benchmarking bot so coloring may not be quite enough anyway. I guess it comes down to what identifying slow lints would do for us. Ideally I think this information would be most useful if tied back to the lint description so that folks can use timings as additional criteria when choosing a lint rule set. I guess another potential would be if we tracked trends or captured a baseline so that we could flag regressions --- in this case by failing the build. Other ideas? |
Yeah I think that adding a group "expensive" or "slow" will help the user. Maybe |
I think we could colorize the expanded output (behind a flag?):
Maybe colorize the text being indicated red?
addddddd
? Or make it bold?And the
--stats
output, as part of this TODO:https://github.com/dart-lang/linter/blob/a088573c6628935a634d642d0863b7fd58b106a6/lib/src/formatter.dart#L96
we could also colorize/shame slow linter rules
Would it be acceptable to add a dependency on ansicolor and start with minimal colors (my two examples)?
The text was updated successfully, but these errors were encountered: