Documentation

Lean.Linter.EnvLinter.Frontend

Getter for the registered environment linters. The result is sorted by the linter option name.

Instances For

    Queries the envLinterSnapshotExt to see if a given environment linter is enabled for the given declaration.

    Instances For

      Runs all the specified linters on all the specified declarations in parallel, producing a list of results.

      Instances For

        Sorts a map with declaration keys as names by line number.

        Instances For
          def Lean.Linter.EnvLinter.printWarning (declName : Name) (warning : MessageData) (useErrorFormat : Bool := false) (filePath : System.FilePath := default) :

          Formats a linter warning as #check command with comment.

          Instances For

            Formats a map of linter warnings using printWarning, sorted by line number.

            Instances For

              Formats a map of linter warnings grouped by filename with -- filename comments.

              Instances For
                def Lean.Linter.EnvLinter.formatLinterResults (results : Array (NamedEnvLinter × Std.HashMap Name MessageData)) (decls : Array Name) (groupByFilename : Bool) (whereDesc : String) (numLinters : Nat) (useErrorFormat : Bool := false) :

                Formats the linter results as Lean code with comments and #check commands.

                Instances For

                  Get the list of declarations in the current module.

                  Instances For

                    Get the list of all declarations in the environment.

                    Instances For

                      Get the list of all declarations in the specified package.

                      Instances For