Skip to content

Commit da4d005

Browse files
SCANPY-237 Fixed quality gate issues.
1 parent d830135 commit da4d005

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pysonar_scanner/dry_run_reporter.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ def _validate_single_report(report_path: str, base_path: Path, validation_result
206206
)
207207
except ET.ParseError as e:
208208
validation_result.add_error(
209-
f"Coverage report is not valid XML (Cobertura format): {report_path}\n" f" Parse error: {str(e)}"
209+
f"Coverage report is not valid XML (Cobertura format): {report_path}\n Parse error: {str(e)}"
210210
)
211211
except Exception as e:
212-
validation_result.add_error(
213-
f"Error validating coverage report format: {report_path}\n" f" Error: {str(e)}"
214-
)
212+
validation_result.add_error(f"Error validating coverage report format: {report_path}\n Error: {str(e)}")

0 commit comments

Comments
 (0)