Skip to content

Commit

Permalink
fix empty str comparison is a default excluded codemod
Browse files Browse the repository at this point in the history
  • Loading branch information
clavedeluna committed Jan 18, 2024
1 parent 8a535c4 commit 04b8586
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/codemodder/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
DEFAULT_EXCLUDED_CODEMODS = [
"pixee:python/order-imports",
"pixee:python/unused-imports",
# See https://github.com/pixee/codemodder-python/pull/212 for concerns regarding this codemod.
"pixee:python/fix-empty-sequence-comparison",
]


Expand Down
2 changes: 1 addition & 1 deletion src/codemodder/scripts/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class DocMetadata:
),
"fix-empty-sequence-comparison": DocMetadata(
importance="Low",
guidance_explained="Simplifying comparison expressions to empty sequences is safe.",
guidance_explained="Values compared to empty sequences should be verified in case they are falsy values that are not a sequence.",
),
}

Expand Down

0 comments on commit 04b8586

Please sign in to comment.