Skip to content

Commit

Permalink
Clean up summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Sep 21, 2023
1 parent 5c76295 commit 89e42d6
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/codemodder/codemods/django_debug_flag_on.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/codemodder/codemods/https_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,)
Expand Down
2 changes: 1 addition & 1 deletion src/codemodder/codemods/order_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,)
Expand Down
2 changes: 1 addition & 1 deletion src/codemodder/codemods/process_creation_sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down
2 changes: 1 addition & 1 deletion src/codemodder/codemods/remove_unnecessary_f_str.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion src/codemodder/codemods/remove_unused_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/codemodder/codemods/tempfile_mktemp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/codemodder/codemods/upgrade_sslcontext_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/codemodder/codemods/url_sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/codemodder/codemods/use_walrus_if.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 89e42d6

Please sign in to comment.