(self, rule: str)
| 166 | return True |
| 167 | |
| 168 | def is_valid(self, rule: str) -> bool: |
| 169 | if not rule.strip() or self.is_comment(rule): |
| 170 | return True |
| 171 | if RE_ETC_HOSTS.match(rule): |
| 172 | return self._valid_etc_hosts(rule) |
| 173 | return self._valid_adblock(rule) |
| 174 | |
| 175 | def validate(self, rules: List[str]) -> Tuple[List[str], List[str]]: |
| 176 | """ |
no test coverage detected