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
People could not longer be working on a project and taking the original context of the TODO with them. Enforcing to have an accompanying link that explains the issue in full detail helps eliminate this problem.
Links are better than GitHub issue numbers:
They are clickable from more editors than issue numbers.
This is not a lint that should be in lints (aka. recommended and core lints). Those apply to every Dart author in the world. Not everyone has the same TODO strategy. Or have issue trackers at all that they can link to.
It's also a problem for the analyzer, when it does adds implementation for unimplemented methods, it also adds
// TODO: implement <member-name>
That would the trigger the lint. (So, it would need a "TODO: Add URI to this TODO"!)
We could potentially want it in dart-flutter-team-lints, to be consistent inside out own code.
(A lint like this forces a single specific interpretation of "TODO" comments. If that's what a project wants, that's their choice. )
dart_style_todos
Similar to
flutter_style_todos
but for repos indart-lang
org.People could not longer be working on a project and taking the original context of the TODO with them. Enforcing to have an accompanying link that explains the issue in full detail helps eliminate this problem.
Links are better than GitHub issue numbers:
Description
Use Dart TODO format: // TODO(https://URL-to-issue): message.
Details
TODOs should include the string TODO in all caps, followed by the link to the respective issue in parenthesis.
Kind
Style
Bad Examples
Good Examples
Discussion
dart-lang/native#1522
@devoncarew @mosuem @pq We could add this lint to https://github.com/dart-lang/lints to be consistent everywhere.
The text was updated successfully, but these errors were encountered: