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
@kenzieschmoll trying to reproduce these and I'm getting ✔ no unused code found!. What DCM version do you have? I'm running with the latest 1.38.3.
Also, adding // ignore: unused-code for code that is no longer used only in asserts is not needed (e.g, _AlternateCheckedModeBanner or _debugInitVmServiceCache).
By default, the tool skips usages in asserts so that assert-only usages at least have a comment with the context of why that code is assert-only. Maybe we should have that in our docs.
Another false positive (line numbers may be off because I am on my local branch with changes):
packages/devtools_app/lib/src/shared/primitives/utils.dart (2 issues):
✖ this getter is used but never assigned a value
at packages/devtools_app/lib/src/shared/primitives/utils.dart:450:3
✖ this getter is used but never assigned a value
at packages/devtools_app/lib/src/shared/primitives/utils.dart:452:3
Associated code:
extensionSafeAccess<T> onIterable<T> {
T?get safeFirst => isNotEmpty ? first :null;
T?get safeLast => isNotEmpty ? last :null;
}
Activity
incendial commentedon Jul 22, 2026
@kenzieschmoll trying to reproduce these and I'm getting
✔ no unused code found!. What DCM version do you have? I'm running with the latest 1.38.3.Also, adding
// ignore: unused-codefor code that is no longer used only in asserts is not needed (e.g,_AlternateCheckedModeBanneror_debugInitVmServiceCache).By default, the tool skips usages in asserts so that assert-only usages at least have a comment with the context of why that code is assert-only. Maybe we should have that in our docs.
incendial commentedon Jul 22, 2026
Ah, I see, there are excludes that need to be removed first, now I can reproduce it.
incendial commentedon Jul 22, 2026
Fixed for both
_initializedfields and_renderObjectInitialized, will be in the next release.kenzieschmoll commentedon Jul 27, 2026
I am now on 1.38.3.
Another false positive (line numbers may be off because I am on my local branch with changes):
Associated code:
incendial commentedon Jul 27, 2026
Thanks. I'm very surprised to see a getter falling into the "not assigned" category 😅🙈
But I was able to reproduce it, investigating
Edit: fixed, will be in the next release
kenzieschmoll commentedon Jul 30, 2026
Another false positive: