diff --git a/src/index.ts b/src/index.ts index 4f01e8c..45e8e67 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,7 +32,6 @@ export function scan(flows: Flow[], ruleOptions?: IRulesConfig): ScanResult[] { if (ruleOptions?.exceptions) { for (const [exceptionName, exceptionElements] of Object.entries(ruleOptions.exceptions)) { for (const scanResult of scanResults) { - if (scanResult.flow.name === exceptionName) { for (const ruleResult of scanResult.ruleResults as RuleResult[]) { if (exceptionElements[ruleResult.ruleName]) { diff --git a/src/main/models/RuleResult.ts b/src/main/models/RuleResult.ts index ee87822..0ac1dc2 100644 --- a/src/main/models/RuleResult.ts +++ b/src/main/models/RuleResult.ts @@ -5,20 +5,14 @@ export class RuleResult { public occurs: boolean; public ruleName: string; - public ruleLabel: string; - public ruleDescription: string; + public ruleDefinition: IRuleDefinition; public severity: string; - public supportedFlowTypes: string[] - public type: string; public details: ResultDetails[] = []; constructor(info: IRuleDefinition, occurs: boolean, details?: ResultDetails[]) { + this.ruleDefinition = info; this.ruleName = info.name; - this.ruleDescription = info.description; - this.ruleLabel = info.label; - this.supportedFlowTypes = info.supportedTypes; this.severity = info.severity ? info.severity : 'error'; - this.type = info.type; this.occurs = occurs; if (details) { this.details = details;