flutter_style_todos
Use Flutter TODO format: // TODO(username): message, https://URL-to-issue.
此规则自 Dart 2.1 版本起可用。
此规则提供 快速修复 。
详情
#DO use Flutter TODO format.
From the Flutter docs:
TODOs should include the string TODO in all caps, followed by the GitHub username of the person with the best context about the problem referenced by the TODO in parenthesis. A TODO is not a commitment that the person referenced will fix the problem, it is intended to be the person with enough context to explain the problem. Thus, when you create a TODO, it is almost always your username that is given.
GOOD:
// TODO(username): message.
// TODO(username): message, https://URL-to-issue.
使用方法
#要启用 flutter_style_todos
规则,请在你的 analysis_options.yaml
文件中,在 linter > rules 下添加 flutter_style_todos
:
linter:
rules:
- flutter_style_todos
除非另有说明,否则本网站上的文档反映的是 Dart 3.6.0。页面最后更新于 2025-02-05。 查看源代码 或 报告问题.