Method: pylint.checkers.misc.EncodingChecker.open
Calls: 1018, Exceptions: 0, Paths: 2Back
Path 1: 1017 calls (1.0)
1def open(self) -> None:
2 super().open()
3
4 notes = "|".join(re.escape(note) for note in self.linter.config.notes)
5 if self.linter.config.notes_rgx:
6 regex_string = rf"#\s*({notes}|{self.linter.config.notes_rgx})(?=(:|\s|\Z))"
7 else:
8 regex_string = rf"#\s*({notes})(?=(:|\s|\Z))"
9
10 self._fixme_pattern = re.compile(regex_string, re.I)
Path 2: 1 calls (0.0)
1def open(self) -> None:
2 super().open()
3
4 notes = "|".join(re.escape(note) for note in self.linter.config.notes)
5 if self.linter.config.notes_rgx:
6 regex_string = rf"#\s*({notes}|{self.linter.config.notes_rgx})(?=(:|\s|\Z))"
7 else:
8 regex_string = rf"#\s*({notes})(?=(:|\s|\Z))"
9
10 self._fixme_pattern = re.compile(regex_string, re.I)