File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type { IRulesConfig } from "./main/interfaces/IRulesConfig";
33
44import { Compiler } from "./main/libs/Compiler" ;
55import { fix } from "./main/libs/FixFlows" ;
6- import { getRules } from "./main/libs/GetRuleDefinitions" ;
6+ import { getBetaRules , getRules } from "./main/libs/GetRuleDefinitions" ;
77import { parse } from "./main/libs/ParseFlows" ;
88import { scan } from "./main/libs/ScanFlows" ;
99import { AdvancedRule } from "./main/models/AdvancedRule" ;
@@ -30,6 +30,7 @@ export {
3030 FlowResource ,
3131 FlowType ,
3232 FlowVariable ,
33+ getBetaRules ,
3334 getRules ,
3435 parse ,
3536 ParsedFlow ,
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ export type AdvancedConfig = {
33 expression ?: {
44 [ key : string ] : number | string ;
55 } ;
6- path ?: string ;
76 severity ?: string ;
87 suppressions ?: string [ ] ;
98} ;
Original file line number Diff line number Diff line change 11export interface IRuleConfig {
22 severity ?: string ;
3- path ?: string ;
4- }
3+ }
Original file line number Diff line number Diff line change 11import { IRuleDefinition } from "../interfaces/IRuleDefinition" ;
2- import { DefaultRuleStore } from "../store/DefaultRuleStore" ;
2+ import { BetaRuleStore , DefaultRuleStore } from "../store/DefaultRuleStore" ;
33import { DynamicRule } from "./DynamicRule" ;
44
55export function GetRuleDefinitions ( ruleConfig ?: Map < string , unknown > ) : IRuleDefinition [ ] {
@@ -46,3 +46,11 @@ export function getRules(ruleNames?: string[]): IRuleDefinition[] {
4646 }
4747}
4848
49+ export function getBetaRules ( ) : IRuleDefinition [ ] {
50+ return getBetaDefinition ( ) ;
51+ }
52+
53+ function getBetaDefinition ( ) : IRuleDefinition [ ] {
54+ return Object . values ( BetaRuleStore ) . map ( ( rule ) => new rule ( ) as IRuleDefinition ) ;
55+ }
56+
You can’t perform that action at this time.
0 commit comments