Find the list of files which a particular rule applies to. Arguments: rule: the rule in question sources: the set of all known source files for this project Returns: The list of sources that trigger a particular rule.
(rule, sources)
| 576 | |
| 577 | |
| 578 | def _FindRuleTriggerFiles(rule, sources): |
| 579 | """Find the list of files which a particular rule applies to. |
| 580 | |
| 581 | Arguments: |
| 582 | rule: the rule in question |
| 583 | sources: the set of all known source files for this project |
| 584 | Returns: |
| 585 | The list of sources that trigger a particular rule. |
| 586 | """ |
| 587 | return rule.get("rule_sources", []) |
| 588 | |
| 589 | |
| 590 | def _RuleInputsAndOutputs(rule, trigger_file): |
no test coverage detected