Prints rule numbers without rule text.
(self)
| 4620 | file_stream.close() |
| 4621 | |
| 4622 | def verifyRuleTexts(self): |
| 4623 | """Prints rule numbers without rule text.""" |
| 4624 | rule_texts_rules = [] |
| 4625 | for rule_num in self.ruleTexts: |
| 4626 | rule = self.ruleTexts[rule_num] |
| 4627 | rule_texts_rules.append(str(rule.num1) + '.' + str(rule.num2)) |
| 4628 | |
| 4629 | all_rules = list(getAddonRules() + getCppcheckRules()) |
| 4630 | |
| 4631 | missing_rules = list(set(all_rules) - set(rule_texts_rules)) |
| 4632 | if len(missing_rules) == 0: |
| 4633 | print("Rule texts are correct.") |
| 4634 | else: |
| 4635 | print("Missing rule texts: " + ', '.join(missing_rules)) |
| 4636 | |
| 4637 | def printStatus(self, *args, **kwargs): |
| 4638 | if not self.settings.quiet: |