Cerbero.Check.Runner (cerbero v0.1.0)

Copy Markdown View Source

Orders pending migrations, threads the overlay, applies skips and severity overrides.

Summary

Functions

apply_policies(findings, check_module_id, config)

@spec apply_policies([Cerbero.Finding.t()], atom(), Cerbero.Config.t()) :: [
  Cerbero.Finding.t()
]

default_checks()

@spec default_checks() :: [module()]

run(pending, catalog, config, checks \\ default_checks())

select_pending(migrations, applied_versions, start_after)

@spec select_pending([Cerbero.Migration.t()], [String.t()], String.t() | nil) :: [
  Cerbero.Migration.t()
]

split_pending(migrations, applied_versions, start_after)

@spec split_pending([Cerbero.Migration.t()], [String.t()], String.t() | nil) ::
  {history :: [Cerbero.Migration.t()], pending :: [Cerbero.Migration.t()]}