The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Linter.Lint
3 declarations. Mathlib docs · Source
Linters for Mathlib
In this file we define additional linters for mathlib, which concern the behaviour of the linted code, and not issues of code style or formatting.
Perhaps these should be moved to Batteries in the future.
dupNamespace linter
The dupNamespace linter produces a warning when a component of a declaration name is repeated
several times. The repetition does not have to be consecutive. Examples: Nat.Nat.foo,
One.two.two, Nat.One.Nat, Nat.Prime.Nat.Prime.foo, Nat.Prime.Nat.bar
The linter also warns about auto-generated declarations (such as, those generated by to_additive).
def Batteries.Tactic.Lint.structureInType E1 #
Batteries.Tactic.Lint.Linter
Linter that checks whether a structure should be in Prop.
def Batteries.Tactic.Lint.deprecatedNoSince E1 #
Batteries.Tactic.Lint.Linter
Linter that check that all deprecated tags come with since dates.
opaque Mathlib.Linter.linter.dupNamespace E1 #
Lean.Option Bool
The dupNamespace linter produces a warning when a component of a declaration name is repeated
several times. The repetition does not have to be consecutive. Examples: Nat.Nat.foo,
One.two.two, Nat.One.Nat, Nat.Prime.Nat.Prime.foo, Nat.Prime.Nat.bar
The linter also warns about auto-generated declarations (such as, those generated by to_additive).