Documentation

Mathlib.Tactic.Linter.DirectoryDependency

The directoryDependency linter #

The directoryDependency linter detects imports between directories that are supposed to be independent. By specifying that one directory does not import from another, we can improve the modularity of Mathlib.

Parse all imports in a text file at path and return just their names: this is just a thin wrapper around Lean.parseImports'. Omit Init (which is part of the prelude).

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

    Find the dependency chain, starting at a module that imports imported, and ends with the current module.

    The path only contains the intermediate steps: it excludes imported and the current module.

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

      The directoryDependency linter detects imports between directories that are supposed to be independent. If this is the case, it emits a warning.

      The directoryDependency linter detects imports between directories that are supposed to be independent. If this is the case, it emits a warning.

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