UNPKG

@lcap/nasl

Version:

NetEase Application Specific Language

25 lines 1.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.findSupportedRules = exports.defaultAutoFixRuleSet = void 0; const rule_convert_incompatible_assignment_to_union_1 = require("./rules/rule-convert-incompatible-assignment-to-union"); const rule_delete_bind_attribute_node_1 = require("./rules/rule-delete-bind-attribute-node"); const rule_assign_local_variable_in_playground_1 = require("./rules/rule-assign-local-variable-in-playground"); const rule_delete_void_expression_1 = require("./rules/rule-delete-void-expression"); exports.defaultAutoFixRuleSet = [ rule_delete_bind_attribute_node_1.ruleDeleteBindAttributeNode, rule_convert_incompatible_assignment_to_union_1.ruleConvertIncompatibleAssignmentToUnion, rule_assign_local_variable_in_playground_1.ruleAssignLocalVariableInPlayground, rule_delete_void_expression_1.ruleDeleteVoidExpression, ]; const findSupportedRules = (diagnostic, ruleset) => { let result = undefined; for (const rule of ruleset) { const temp = rule.isFixable(diagnostic); if (temp) { return { rule, hint: temp.hint, disabledForBatch: rule.disableForBatch }; } } return undefined; }; exports.findSupportedRules = findSupportedRules; //# sourceMappingURL=index.js.map