def
Lean.Linter.getLinterAll
(o : Lean.Options)
(defValue : optParam Bool Lean.Linter.linter.all.defValue)
:
Equations
- Lean.Linter.getLinterAll o defValue = Lean.KVMap.get o Lean.Linter.linter.all.name defValue
Instances For
Equations
- Lean.Linter.getLinterValue opt o = Lean.KVMap.get o opt.name (Lean.Linter.getLinterAll o opt.defValue)
Instances For
def
Lean.Linter.logLint
{m : Type → Type}
[Monad m]
[Lean.MonadLog m]
[Lean.AddMessageContext m]
[Lean.MonadOptions m]
(linterOption : Lean.Option Bool)
(stx : Lean.Syntax)
(msg : Lean.MessageData)
:
m Unit
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Linter.logLintIf
{m : Type → Type}
[Monad m]
[Lean.MonadLog m]
[Lean.AddMessageContext m]
[Lean.MonadOptions m]
(linterOption : Lean.Option Bool)
(stx : Lean.Syntax)
(msg : Lean.MessageData)
:
m Unit
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:
- If it is set, then the value determines whether or not it is enabled.
- Otherwise, if
linter.all
is set, then its value determines whether or not the option is enabled. - Otherwise, the default value determines whether or not it is enabled.
Equations
- One or more equations did not get rendered due to their size.