Documentation

Lean.Linter.Basic

def Lean.Linter.getLinterAll (o : Options) (defValue : Bool := linter.all.defValue) :
Equations
Instances For
    Equations
    Instances For
      def Lean.Linter.logLint {m : TypeType} [Monad m] [MonadLog m] [AddMessageContext m] [MonadOptions m] (linterOption : Lean.Option Bool) (stx : Syntax) (msg : MessageData) :
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Lean.Linter.logLintIf {m : TypeType} [Monad m] [MonadLog m] [AddMessageContext m] [MonadOptions m] (linterOption : Lean.Option Bool) (stx : Syntax) (msg : MessageData) :

        If linterOption is enabled, print a linter warning message at the position determined by stx.

        Whether a linter option is enabled or not is determined by the following sequence:

        1. If it is set, then the value determines whether or not it is enabled.
        2. Otherwise, if linter.all is set, then its value determines whether or not the option is enabled.
        3. Otherwise, the default value determines whether or not it is enabled.
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For