Skip to content

Commit

Permalink
Updated python rules
Browse files Browse the repository at this point in the history
  • Loading branch information
wireghoul committed Apr 9, 2024
1 parent 990fc1c commit 4d70b7e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions signatures/python.db
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
csrf[\._]exempt
\.NamedTemporaryFile\(.*\)
\.execute[[:space:]]*\([\"\'].*%.*[\"\'][[:space:]]*%.*\)
autoescape[[:space:]]*=[[:space:]]*[Ff][Aa][Ll][Ss][Ee]
\.insert(_one|_many)?[[:space:]]*\(
\.find(_one|_many)?[[:space:]]*\(
\.replace(_one|_many)?[[:space:]]*\(
\.drop_database[[:space:]]*\(
\.create_index[[:space:]]*\(
\.remove[[:space:]]*\(
access[[:space:]]*\(
assert[[:space:]]*\(
mkfifo
Expand Down Expand Up @@ -68,5 +76,7 @@ zipfile
[[:space:]]+compiler
yaml
urllib3.disable_warnings
[Ww][Hh][Ee][Rr][Ee][[:space:]]+.*=[[:space:]]*\{\}
[Aa][Nn][Dd][[:space:]]+.*=[[:space:]]*\{\}
\.startswith\(
\.urlopen\(
1 change: 1 addition & 0 deletions signatures/python/django.db
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
csrf[\._]exempt
1 change: 1 addition & 0 deletions signatures/python/jinja.db
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
autoescape[[:space:]]*=[[:space:]]*[Ff][Aa][Ll][Ss][Ee]
6 changes: 6 additions & 0 deletions signatures/python/nosql.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\.insert(_one|_many)?[[:space:]]*\(
\.find(_one|_many)?[[:space:]]*\(
\.replace(_one|_many)?[[:space:]]*\(
\.drop_database[[:space:]]*\(
\.create_index[[:space:]]*\(
\.remove[[:space:]]*\(
2 changes: 2 additions & 0 deletions signatures/python/sql.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Ww][Hh][Ee][Rr][Ee][[:space:]]+.*=[[:space:]]*\{\}
[Aa][Nn][Dd][[:space:]]+.*=[[:space:]]*\{\}

0 comments on commit 4d70b7e

Please sign in to comment.