Code quality check registration and driver #
A package code quality check is a declaration of type PackageCheck tagged with the
@[package_code_quality_check] attribute. The driver runs every registered check,
providing it with the data encapsulated in PackageCheckContext. All checks are
tracked by the packageCheckExt environment extension and are run concurrently,
one task per check, by runPackageChecks, which combines all results
into a single array of entries and accumulates all errors.
Global inputs provided by the driver to every code quality check.
- srcSearchPath : System.SearchPath
- topLevelModule : Name
Instances For
- ofFn :: (
- run : PackageCheckContext → MetaM (Array Entry)
- )
Instances For
- errors : Array MessageData
Instances For
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Linter.CodeQuality.runPackageChecks
(checks : Array NamedPackageCheck)
(ctx : PackageCheckContext)
:
Equations
- One or more equations did not get rendered due to their size.