new RuleMapping(rule_id, required, enabled)
Contains information about a rule in a ruleset
Parameters:
Name |
Type |
Description |
rule_id |
String
|
id of the rule |
required |
Boolean
|
Boolean indicating if the rule is required or
recommended |
enabled |
Boolean
|
Initial value for the enabled property |
Properties:
Name |
Type |
Description |
rule |
Object
|
rule object |
required |
Boolean
|
Boolean indicating if the rule is required or
recommended |
enabled |
Boolean
|
True if the rule is enabled, otherwise false |
- Source:
- scripts/ruleset.js, line 1035