目录

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:

dart
// TODO(username): message.
// TODO(username): message, https://URL-to-issue.

使用方法

#

要启用 flutter_style_todos 规则,请在你的 analysis_options.yaml 文件中,在 linter > rules 下添加 flutter_style_todos

analysis_options.yaml
yaml
linter:
  rules:
    - flutter_style_todos