swift-unidoc icon indicating copy to clipboard operation
swift-unidoc copied to clipboard

better-define what it means to be undocumented vs documented

Open tayloraswift opened this issue 1 year ago • 0 comments

right now the documentation coverage metric is not as useful as it could be, and this is also having negative effects on the site’s ranking on google.

currently, in the eyes of the coverage metric, documentation is mandatory for all public API. but there are straightforward situations in which we should not include a symbol in the coverage denominator:

  • C symbols. most swift package authors do not document C API, and we should not expect them to.
  • trivial enum cases (cases with no associated values)

there are some more complex situations where the same reasoning should also apply

  • memberwise inits
  • static vars that return Self

but we don’t have a way to detect those yet.

tayloraswift avatar Dec 26 '23 22:12 tayloraswift