-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruff: Add and fix TRY300 #11643
Ruff: Add and fix TRY300 #11643
Conversation
DryRun Security SummaryThe pull request implements comprehensive security improvements and optimizations across DefectDojo's codebase, including enhanced JIRA integration, better exception handling, content sanitization, and new security monitoring features, while maintaining code stability and reliability. Expand for full summarySummary: The code changes in this pull request cover a wide range of updates and improvements across various components of the DefectDojo application. The changes focus on enhancing the security integration, improving the handling of exceptions and error conditions, optimizing performance, and refining the overall functionality of the application. Some of the key security-related changes include:
Overall, the changes in this pull request demonstrate a focus on improving the security, stability, and functionality of the DefectDojo application. While there are no obvious security vulnerabilities introduced, it is important to thoroughly review the changes and their potential impact on the application's security posture. Files Changed:
Code AnalysisWe ran |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Add rule TRY300 and fix it. The original recommendation is to put it to
else
but in my opinion, in all these cases, it might go outside of thetry
part at all.There were also 2 ruff-autofixes in
dojo/jira_link/helper.py
(because of "RET505: Unnecessaryelse
afterreturn
statement")