Skip to content

Scaladoc omits file name from @inheritDoc warning, does not "count" warning #13068

Closed
@jphmrst

Description

@jphmrst

Compiler version

3.0.1

Minimized code

class Test {
  /** {@inheritDoc} */
  def f: Unit = { }
}

Output

Output via sbt:

<43..43>: the comment for method f contains @inheritdoc, but no parent comment is available to inherit from.

Expectation

First, I would expect it to mention the file name --- important in a larger project with many uses of the same method name.

Second, note that the sbt output is not prefixed [warn] or [error] --- seems like sbt should pick up this issue as one or the other. It is not included in the total-warnings count.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions