Return a string list of new error messages. Use a form suitable for displaying to the user. Errors from different files are ordered based on the order in which they first generated an error.
(self)
| 1121 | return None |
| 1122 | |
| 1123 | def new_messages(self) -> list[str]: |
| 1124 | """Return a string list of new error messages. |
| 1125 | |
| 1126 | Use a form suitable for displaying to the user. |
| 1127 | Errors from different files are ordered based on the order in which |
| 1128 | they first generated an error. |
| 1129 | """ |
| 1130 | msgs = [] |
| 1131 | for path in self.error_info_map.keys(): |
| 1132 | if path not in self.flushed_files: |
| 1133 | error_tuples = self.file_messages(path) |
| 1134 | msgs.extend( |
| 1135 | self.format_messages(path, error_tuples, formatter=self.error_formatter) |
| 1136 | ) |
| 1137 | return msgs |
| 1138 | |
| 1139 | def targets(self) -> set[str]: |
| 1140 | """Return a set of all targets that contain errors.""" |
no test coverage detected