def METHOD_NAME(rules_dir, schema):
    validation_failed = False
    gorules_paths = glob.glob(os.path.join(rules_directory(path=rules_dir), "gorule-*.md"))
    validations = {}
    for path in gorules_paths:
        try:
            validations[path] = load_yamldown(path)
        except:
            validations[path] = "Invalid YAML"
            validation_failed = True
    # click.echo(json.dumps(validations, indent=4))
    s = schema if schema else SCHEMA
    click.echo(SCHEMA)
    for (p, r) in validations.items():
        # click.echo("{}: {}".format(p, r))
        if isinstance(r, dict):
            try:
                validate(r, s)
                validations[p] = "Valid"
            except click.ClickException as e:
                validations[p] = e.message
                validation_failed = True
    for (p, r) in validations.items():
        click.echo("{path}: {status}".format(path=p, status=r))
    if validation_failed:
        raise click.ClickException("Failed Validation")