You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can definitely repro this not working with dart analyze using Dart SDK version 2.12.3, as reported.
However, it does appear to still be working on my end when running dart test -N avoid_type_to_string in this repository.
When testing in this repository, it successfully reports all violations for the current test cases, the BAD example listed in the docs, and the repro case reported in this issue.
Could this be an issue with rolling into/configuring in the SDK/analyzer? I am not at all familiar with that process, or the overall interplay between the SDK and linter packages.
Unfortunately I won't have much availability to help with this until my exams are over in a few weeks.
Activity
pq commentedon Apr 21, 2021
/fyi @a14n
goderbauer commentedon Apr 26, 2021
I was just running into this as well, the BAD example given in the docs [1] also doesn't produce any lints:
[1] https://dart-lang.github.io/linter/lints/avoid_type_to_string.html
pq commentedon Apr 26, 2021
@a14n: any thoughts?
a14n commentedon Apr 26, 2021
@pq I'm not the author of this lint ;)
pq commentedon Apr 26, 2021
Sorry! I was confused w/
no_runtimeType_toString! 😬 Apologies!Looks like that one was a contribution from @nscobie (dart-archive/linter#2209). They're on to other stuff though so we'll likely have to look at it.
nscobie commentedon Apr 27, 2021
Hi all, sorry to hear this lint is having issues.
I can definitely repro this not working with
dart analyzeusing Dart SDK version2.12.3, as reported.However, it does appear to still be working on my end when running
dart test -N avoid_type_to_stringin this repository.Could this be an issue with rolling into/configuring in the SDK/analyzer? I am not at all familiar with that process, or the overall interplay between the SDK and linter packages.
Unfortunately I won't have much availability to help with this until my exams are over in a few weeks.
oprypin commentedon Nov 22, 2022
FWIW this issue still applies - this lint never finds any violations, as far as I see.
jv-soares commentedon Mar 13, 2025
Also not working on my side with Dart 3.6.0
[web_ui] Fix avoid_type_to_string lint violation (#184342)
ignore avoid_type_to_string lint rule
This change just ignores existing violations of avoid_type_to_string,…
[web_ui] Fix avoid_type_to_string lint violation (flutter#184342)
ignore avoid_type_to_string lint rule in flutter_tools (#184766)
ignore avoid_type_to_string lint rule (flutter#184765)
[web_ui] Fix avoid_type_to_string lint violation (#184342)