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
{{ message }}
Repository navigation
Work towards enabling the comment_references lint #192870
The comment_references lint reports doc comment references that the analyzer cannot resolve in the lexical scope of the file they appear in.
Most of these references still render as working links today, because dartdoc falls back to a universal scope — a global lookup of every element it has loaded — when lexical resolution fails. That fallback is what dartdoc wants to remove (dart-lang/dartdoc#4283). This means that references relying on it will eventually stop resolving. Enabling the lint is how we find them before that happens.
I am fixing the existing reports in separate PRs, grouped by the kind of change involved.
Material and Cupertino are frozen in this repository and their code has been copied to flutter/packages (#188444), so those files are excluded here. The same work will be needed in material_ui and cupertino_ui.
Enabling the lint is a longer-term goal. At least one category cannot be fixed immediately: a library referred to by its bare name, such as [widgets], cannot be expressed with @docImport as it currently works (dart-lang/sdk#56528).
The individual PRs are worth landing regardless — each makes references resolve in the IDE as well as in the generated documentation — so they don't depend on when the lint is finally enabled.
Activity
Add missing @DocImport directives for doc comment references (flutter…
Remove doc comment references to GTK C types (flutter#192977)
Fix unresolved doc comment references (flutter#193087)
Fix more unresolved doc comment references (flutter#193216)
Fix more unresolved doc comment references (flutter#193336)
Fix doc references to Material and Cupertino in the widgets library a…
Fix unresolved doc comment references in Material and Cupertino (flut…
Fix more unresolved doc comment references (flutter#193336)
Fix doc references to Material and Cupertino in the widgets library a…
Fix unresolved doc comment references in dev/integration_tests and de…
Fix more unresolved doc comment references (flutter#193336)
Fix doc references to Material and Cupertino in the widgets library a…
goderbauer commentedon Sep 29, 2026
This is exciting! For context, some prework for this happened in #150800.
Fix unresolved doc comment references in dev/ tooling (flutter#193501)
Bump dartdoc to 9.0.11 (flutter#194076)
Fix doc comment references that need prefixed doc imports (flutter#19…
Fix unresolved doc comment references in dev/ tooling (flutter#193501)
Bump dartdoc to 9.0.11 (flutter#194076)
Fix doc comment references that need prefixed doc imports (flutter#19…