-
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: Enable and fix RUF010 #11331
Ruff: Enable and fix RUF010 #11331
Conversation
DryRun Security SummaryThe pull request covers a wide range of functionality improvements in the DefectDojo application, including logging, error handling, parsing and importing of findings, and updates to deduplication and false positive history logic, with a focus on ensuring secure handling of user input, sensitive information, and ongoing monitoring and maintenance of the application's security. Expand for full summarySummary: The code changes in this pull request cover a wide range of functionality within the DefectDojo application, including improvements to logging and error handling, enhancements to the parsing and importing of findings from various security tools, and updates to the deduplication and false positive history logic. From an application security perspective, the changes generally do not introduce any significant security vulnerabilities. However, there are a few areas that warrant further review and consideration:
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
Remove "RUF010" from ignored and fix it.
https://docs.astral.sh/ruff/rules/explicit-f-string-type-conversion/
I see no reason to use
str(...)
in combination withf"{...}
.Ruff recommended
f{...!s}
but I believe this is easier and sufficient.