The "DocString" style linter #
The "DocString" linter validates style conventions regarding doc-string formatting.
The "DocString" linter validates style conventions regarding doc-string formatting.
The "empty doc string" warns on empty doc-strings.
Extract all declModifiers from the input syntax. We later extract the docstring from it,
but we avoid extracting directly the docComment node, to skip #adaptation_notes.
Currently, this function simply removes currIndent spaces after each \n
in the input string docString.
If/when the docString linter expands, it may take on more string processing.
Equations
- Mathlib.Linter.deindentString currIndent docString = docString.replace (String.ofList ('\n' :: List.replicate currIndent ' ')) " "
Instances For
The "DocString" linter validates style conventions regarding doc-string formatting.
Equations
- One or more equations did not get rendered due to their size.