Skip to content

Commit

Permalink
feat(python): add user input
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed May 10, 2024
1 parent e9db565 commit 689fb10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rules/python/shared/common/external_input.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ patterns:
scope: cursor_strict
metadata:
description: Python externally influenced (user or dynamic) input.
id: python_shared_common_external_input
id: python_shared_common_external_input
2 changes: 1 addition & 1 deletion rules/python/shared/common/user_input.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ patterns:
scope: cursor
metadata:
description: "Python user input."
id: python_shared_common_user_input
id: python_shared_common_user_input
6 changes: 3 additions & 3 deletions rules/python/shared/django/user_input.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ patterns:
- request.$<_>
- request.$<_>()
- request.$<_>.$<_>()
- pattern: $<FORM>.$<METHOD>()
filters:
- pattern: $<FORM>.$<METHOD>[$<_>]
filters:
- variable: FORM
regex: \A(un)?(bound_)?form\z
- variable: METHOD
Expand All @@ -20,4 +20,4 @@ patterns:
regex: \A(un)?(bound_)?form\z
metadata:
description: "Django user input."
id: python_shared_django_user_input
id: python_shared_django_user_input

0 comments on commit 689fb10

Please sign in to comment.