Skip to contents

Checks a parsed ruleset against the income-cleaning schema v1.0.0: required metadata and variable mappings, sane global constraints, unique rule ids, actions drawn from the controlled vocabulary, non-empty descriptions, resolvable reference keys, and numeric parameter sanity. Unrecognized rule keys draw a warning only, mirroring the merge engine's authoring check.

Usage

validate_cleaning_ruleset(ruleset, quiet = FALSE)

Arguments

ruleset

a parsed ruleset (from liss_cleaning_ruleset() or yaml::read_yaml()).

quiet

suppress cli output and only return the result.

Value

invisibly, a list with valid, errors, warnings, and n_rules.