Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
callback: (result: any) => {
lint(
{
path: JSONPath.toPathArray(result.path),
value: result.value,
},
resolved,
rule,
functions,
results,
);
},
});
callback: (result: any) => {
targets.push({
path: JSONPath.toPathArray(result.path),
value: result.value,
});
},
});
constructor(_rule: IRunRule) {
this.name = _rule.name;
this.severity = _rule.severity;
this.formats = _rule.formats;
this.query = JSONPath.toPathArray(_rule.given);
this._bailedOut = shouldBailOut(this.query);
}