diff --git a/src/codemodder/codemods/django_debug_flag_on.py b/src/codemodder/codemods/django_debug_flag_on.py index 64b6b642..de8766b8 100644 --- a/src/codemodder/codemods/django_debug_flag_on.py +++ b/src/codemodder/codemods/django_debug_flag_on.py @@ -19,7 +19,7 @@ class DjangoDebugFlagOn(SemgrepCodemod, Codemod): NAME="django-debug-flag-on", REVIEW_GUIDANCE=ReviewGuidance.MERGE_AFTER_CURSORY_REVIEW, ) - SUMMARY = CHANGE_DESCRIPTION = "Flips django's debug flag to off." + SUMMARY = CHANGE_DESCRIPTION = "Flip Django debug flag to off" YAML_FILES = [ "django-debug-flag-on.yaml", ] diff --git a/src/codemodder/codemods/django_session_cookie_secure_off.py b/src/codemodder/codemods/django_session_cookie_secure_off.py index feafb5bf..acfaa4ee 100644 --- a/src/codemodder/codemods/django_session_cookie_secure_off.py +++ b/src/codemodder/codemods/django_session_cookie_secure_off.py @@ -19,7 +19,7 @@ class DjangoSessionCookieSecureOff(SemgrepCodemod, Codemod): NAME="django-session-cookie-secure-off", REVIEW_GUIDANCE=ReviewGuidance.MERGE_AFTER_REVIEW, ) - SUMMARY = "Sets Django's `SESSION_COOKIE_SECURE` flag if off or missing." + SUMMARY = "Secure setting for Django `SESSION_COOKIE_SECURE` flag" CHANGE_DESCRIPTION = METADATA.DESCRIPTION YAML_FILES = [ "detect-django-settings.yaml", diff --git a/src/codemodder/codemods/https_connection.py b/src/codemodder/codemods/https_connection.py index 8f8d3d22..2ba92ee2 100644 --- a/src/codemodder/codemods/https_connection.py +++ b/src/codemodder/codemods/https_connection.py @@ -26,7 +26,7 @@ class HTTPSConnection(BaseCodemod, Codemod): NAME="https-connection", REVIEW_GUIDANCE=ReviewGuidance.MERGE_WITHOUT_REVIEW, ) - CHANGE_DESCRIPTION = "Enforced HTTPS connection" + CHANGE_DESCRIPTION = "Enforce HTTPS connection" SUMMARY = "Changes HTTPConnectionPool to HTTPSConnectionPool to enforce secure connection." METADATA_DEPENDENCIES = (PositionProvider,) diff --git a/src/codemodder/codemods/order_imports.py b/src/codemodder/codemods/order_imports.py index b8853829..c0ddfa94 100644 --- a/src/codemodder/codemods/order_imports.py +++ b/src/codemodder/codemods/order_imports.py @@ -19,7 +19,7 @@ class OrderImports(BaseCodemod, Codemod): NAME="order-imports", REVIEW_GUIDANCE=ReviewGuidance.MERGE_WITHOUT_REVIEW, ) - SUMMARY = "Formats and orders imports by categories" + SUMMARY = "Order imports by categories" CHANGE_DESCRIPTION = "Ordered and formatted import block below this line" METADATA_DEPENDENCIES = (PositionProvider,) diff --git a/src/codemodder/codemods/process_creation_sandbox.py b/src/codemodder/codemods/process_creation_sandbox.py index 4d432675..84d46ffd 100644 --- a/src/codemodder/codemods/process_creation_sandbox.py +++ b/src/codemodder/codemods/process_creation_sandbox.py @@ -6,7 +6,7 @@ class ProcessSandbox(SemgrepCodemod): NAME = "sandbox-process-creation" REVIEW_GUIDANCE = ReviewGuidance.MERGE_AFTER_CURSORY_REVIEW - SUMMARY = "Use safe_command library to sandbox process creation." + SUMMARY = "Sandbox process creation" DESCRIPTION = ( "Replaces subprocess.{func} with more secure safe_command library functions." ) diff --git a/src/codemodder/codemods/remove_unnecessary_f_str.py b/src/codemodder/codemods/remove_unnecessary_f_str.py index d437a22b..0c9c8c88 100644 --- a/src/codemodder/codemods/remove_unnecessary_f_str.py +++ b/src/codemodder/codemods/remove_unnecessary_f_str.py @@ -11,7 +11,7 @@ class RemoveUnnecessaryFStr(BaseCodemod, UnnecessaryFormatString): NAME = "remove-unnecessary-f-str" REVIEW_GUIDANCE = ReviewGuidance.MERGE_WITHOUT_REVIEW - SUMMARY = "Remove unnecessary f-strings." + SUMMARY = "Remove unnecessary f-strings" DESCRIPTION = UnnecessaryFormatString.DESCRIPTION def __init__(self, codemod_context: CodemodContext, *codemod_args): diff --git a/src/codemodder/codemods/remove_unused_imports.py b/src/codemodder/codemods/remove_unused_imports.py index 439030f4..053f3ce9 100644 --- a/src/codemodder/codemods/remove_unused_imports.py +++ b/src/codemodder/codemods/remove_unused_imports.py @@ -19,7 +19,7 @@ class RemoveUnusedImports(BaseCodemod, Codemod): NAME="unused-imports", REVIEW_GUIDANCE=ReviewGuidance.MERGE_WITHOUT_REVIEW, ) - SUMMARY = "Remove unused imports from a module." + SUMMARY = "Remove unused imports from a module" CHANGE_DESCRIPTION = "Unused import." METADATA_DEPENDENCIES = (PositionProvider, ScopeProvider, QualifiedNameProvider) diff --git a/src/codemodder/codemods/tempfile_mktemp.py b/src/codemodder/codemods/tempfile_mktemp.py index cd9b59fa..26d92d5e 100644 --- a/src/codemodder/codemods/tempfile_mktemp.py +++ b/src/codemodder/codemods/tempfile_mktemp.py @@ -5,7 +5,7 @@ class TempfileMktemp(SemgrepCodemod): NAME = "secure-tempfile" REVIEW_GUIDANCE = ReviewGuidance.MERGE_WITHOUT_REVIEW - SUMMARY = "Use `tempfile.mkstemp` instead of `tempfile.mktemp`." + SUMMARY = "Use `tempfile.mkstemp` instead of `tempfile.mktemp`" DESCRIPTION = "Replaces `tempfile.mktemp` with `tempfile.mkstemp`." @classmethod diff --git a/src/codemodder/codemods/upgrade_sslcontext_tls.py b/src/codemodder/codemods/upgrade_sslcontext_tls.py index 8cd4f51b..a2e42182 100644 --- a/src/codemodder/codemods/upgrade_sslcontext_tls.py +++ b/src/codemodder/codemods/upgrade_sslcontext_tls.py @@ -17,7 +17,7 @@ class UpgradeSSLContextTLS(SemgrepCodemod, BaseTransformer): NAME="upgrade-sslcontext-tls", REVIEW_GUIDANCE=ReviewGuidance.MERGE_AFTER_CURSORY_REVIEW, ) - SUMMARY = "Replaces known insecure TLS/SSL protocol versions in SSLContext with secure ones" + SUMMARY = "Replace known insecure TLS/SSL protocol versions in SSLContext with secure ones" CHANGE_DESCRIPTION = "Upgrade to use a safe version of TLS in SSLContext" YAML_FILES = [ "upgrade_sslcontext_tls.yaml", diff --git a/src/codemodder/codemods/url_sandbox.py b/src/codemodder/codemods/url_sandbox.py index 4fee3e11..c7f7c8f1 100644 --- a/src/codemodder/codemods/url_sandbox.py +++ b/src/codemodder/codemods/url_sandbox.py @@ -30,7 +30,7 @@ class UrlSandbox(SemgrepCodemod, Codemod): NAME="url-sandbox", REVIEW_GUIDANCE=ReviewGuidance.MERGE_AFTER_CURSORY_REVIEW, ) - SUMMARY = "Ensures that requests are made safely." + SUMMARY = "Ensure that requests are made safely." CHANGE_DESCRIPTION = "Switch use of requests for security.safe_requests" YAML_FILES = [ "sandbox_url_creation.yaml", diff --git a/src/codemodder/codemods/use_walrus_if.py b/src/codemodder/codemods/use_walrus_if.py index 0a264747..dcd6a49a 100644 --- a/src/codemodder/codemods/use_walrus_if.py +++ b/src/codemodder/codemods/use_walrus_if.py @@ -18,7 +18,7 @@ class UseWalrusIf(SemgrepCodemod, NameResolutionMixin): ) NAME = "use-walrus-if" SUMMARY = ( - "Replaces multiple expressions involving `if` operator with 'walrus' operator" + "Replace multiple expressions involving `if` operator with 'walrus' operator" ) REVIEW_GUIDANCE = ReviewGuidance.MERGE_AFTER_CURSORY_REVIEW DESCRIPTION = (