Documentation

FormalConjectures.Util.Linters.CategoryDocstringLinter

The Category Docstring Linter #

The CategoryDocstringLinter ensures that declarations tagged as @[category research open], @[category research solved], or @[category textbook] have a docstring.

def CategoryDocstringLinter.toCategorySyntax (stx : Lean.TSyntax `Lean.Parser.Command.declModifiers) :
Lean.Elab.Command.CommandElabM (Array (Lean.TSyntax `Lean.Parser.Term.attrInstance))

Extract the category attributes from a declaration's modifiers.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Extract the categories from a declaration's modifiers.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def CategoryDocstringLinter.hasDocstring (stx : Lean.TSyntax `Lean.Parser.Command.declModifiers) :

      Whether the declaration modifiers contain a docstring.

      Equations
      Instances For

        The linter checking for docstrings on research statements.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For