Documentation

Lean.Linter.EnvLinter.Frontend

Verbosity for the linter output.

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

      Which set of linters to run.

      • default : LintScope

        Run only default linters.

      • extra : LintScope

        Run default linters together with the non-default (extra) linters.

      • all : LintScope

        Run all linters (default + extra).

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

          getChecks produces a list of linters to run.

          If runOnly is populated, only those named linters are run (regardless of scope). Otherwise, linter selection depends on scope:

          • default: only linters with isDefault = true
          • extra: linters with isDefault = true together with linters with isDefault = false
          • all: all linters
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

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

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

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

              Equations
              • One or more equations did not get rendered due to their size.
              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.

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

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

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

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

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      def Lean.Linter.EnvLinter.formatLinterResults (results : Array (NamedEnvLinter × Std.HashMap Name MessageData)) (decls : Array Name) (groupByFilename : Bool) (whereDesc : String) (scope : LintScope := LintScope.default) (verbose : LintVerbosity) (numLinters : Nat) (useErrorFormat : Bool := false) :

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

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

                        Get the list of declarations in the current module.

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

                          Get the list of all declarations in the environment.

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

                            Get the list of all declarations in the specified package.

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