Return the shadow file path for a given source file path or None.
(self, path: str)
| 1111 | return self.format_messages_default(error_tuples, source_lines) |
| 1112 | |
| 1113 | def find_shadow_file_mapping(self, path: str) -> str | None: |
| 1114 | """Return the shadow file path for a given source file path or None.""" |
| 1115 | if self.options.shadow_file is None: |
| 1116 | return None |
| 1117 | |
| 1118 | for i in self.options.shadow_file: |
| 1119 | if i[0] == path: |
| 1120 | return i[1] |
| 1121 | return None |
| 1122 | |
| 1123 | def new_messages(self) -> list[str]: |
| 1124 | """Return a string list of new error messages. |