mathlib icon indicating copy to clipboard operation
mathlib copied to clipboard

Linter `doc_blame` generates unwanted warning when using `old_structure_cmd`

Open ocfnash opened this issue 5 years ago • 2 comments

The following snippet triggers the "missing doc string" complaint from the linter:

set_option old_structure_cmd true

/-- Foo structure -/
structure foo := (x : ℕ)

/-- Bar structure -/
structure bar extends foo := (y : ℕ)

#lint -- #print bar.to_foo /- def missing doc string -/

This is a minor issue and so far does not seem to have come up very often. @robertylewis gave a helpful summary of the situation here

ocfnash avatar Apr 13 '20 15:04 ocfnash