Open
Description
dart_style_todos
Similar to flutter_style_todos
but for repos in dart-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:
- They are clickable from more editors than issue numbers.
- Sometimes the issue is not on GitHub.
- Links survive migrations to the other repos.
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
// TODO: xyz.
// TODO(name): xyz.
// TODO(#123): xyz.
Good Examples
// TODO(https://github.com/dart-lang/linter/issues/123): xyz.
Discussion
@devoncarew @mosuem @pq We could add this lint to https://github.com/dart-lang/lints to be consistent everywhere.