Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Jun 7, 2024
1 parent 3740582 commit 1d53ad8
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions rules/python/django/cookie_missing_http_only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ auxiliary:
patterns:
- pattern: $<CALLER>.set_cookie($<...>)
filters:
- either:
- variable: CALLER
detection: python_shared_django_http_response
scope: cursor
- variable: CALLER
detection: python_shared_lang_instance
scope: cursor
filters:
- variable: CLASS
detection: python_shared_lang_import2
scope: cursor
filters:
- variable: MODULE1
values: [django]
- variable: MODULE2
values: [shortcuts]
- variable: NAME
values: [render]
- either:
- variable: CALLER
detection: python_shared_django_http_response
scope: cursor
- variable: CALLER
detection: python_shared_lang_instance
scope: cursor
filters:
- variable: CLASS
detection: python_shared_lang_import2
scope: cursor
filters:
- variable: MODULE1
values: [django]
- variable: MODULE2
values: [shortcuts]
- variable: NAME
values: [render]
- id: python_django_cookie_missing_http_only_set_cookie_http_only
patterns:
- pattern: $<_>($<...>httponly=$<TRUE>)
Expand Down

0 comments on commit 1d53ad8

Please sign in to comment.