-
Notifications
You must be signed in to change notification settings - Fork 10
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
Django models __str__
codemod
#302
Conversation
) | ||
|
||
|
||
parser = etree.XMLParser() # Noncompliant |
Check failure
Code scanning / SonarCloud
XML parsers should not be vulnerable to XXE attacks
ce33072
to
b1d623f
Compare
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.
Minor change
src/core_codemods/docs/pixee_python_django-model-without-dunder-str.md
Outdated
Show resolved
Hide resolved
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.
Looks really nice overall. Just some requests for updating metadata and then we should be good.
src/core_codemods/docs/pixee_python_django-model-without-dunder-str.md
Outdated
Show resolved
Hide resolved
src/core_codemods/docs/pixee_python_django-model-without-dunder-str.md
Outdated
Show resolved
Hide resolved
src/core_codemods/docs/pixee_python_django-model-without-dunder-str.md
Outdated
Show resolved
Hide resolved
src/core_codemods/docs/pixee_python_django-model-without-dunder-str.md
Outdated
Show resolved
Hide resolved
|
||
DjangoModelWithoutDunderStr = CoreCodemod( | ||
metadata=Metadata( | ||
name="django-model-without-dunder-str", |
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.
Not a huge deal but I feel like we're sometimes inconsistent as to whether a codemod is phrased in terms of a problem or a fix. I think we should prefer names in terms of fixes add-django-model-dunder-str
but maybe we can just take it as a suggestion going forward.
67dbff3
to
b75037a
Compare
b75037a
to
a3c2286
Compare
a3c2286
to
c5b5536
Compare
Co-authored-by: Dan D'Avella <dan.davella@pixee.ai>
c5b5536
to
f82f43d
Compare
Quality Gate passedIssues Measures |
Overview
Codemod that will add a cookie-cutter
__str__
method to any django model class that did not implement itDescription
Additional Details
Closes #287