Linter: public_member_api_docs doesn't seem to require docs for mixins

Created on 25 Jun 2020  路  3Comments  路  Source: dart-lang/linter

Describe the issue
The public_member_api_docs lint doesn't seem to warn when a public mixin (or any methods defined in it) do not have a doc comment.

To Reproduce
Enable the lint, the following sample doesn't trigger it:

mixin Foo {
  void foo() {
    // nothing to do.
  }
}

Expected behavior
Since they are part of the public API, the lint should require doc comments on them.

bug flutter

All 3 comments

Agreed. This one is showing it's age (predating mixins 馃槵 ) -- I'll update. Thanks!

We should validate that it works for extensions as well.

image

馃槉

Was this page helpful?
0 / 5 - 0 ratings