mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
12 lines
422 B
TypeScript
12 lines
422 B
TypeScript
|
import { AUTOMATION_TYPE } from './common/constants';
|
||
|
import { getDiffByAutomationType } from './common/get-diff';
|
||
|
import { IRule, RULES, runFitnessFunctionRule } from './rules';
|
||
|
|
||
|
const automationType: AUTOMATION_TYPE = process.argv[2] as AUTOMATION_TYPE;
|
||
|
|
||
|
const diff = getDiffByAutomationType(automationType);
|
||
|
|
||
|
if (typeof diff === 'string') {
|
||
|
RULES.forEach((rule: IRule): void => runFitnessFunctionRule(rule, diff));
|
||
|
}
|