mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-28 13:44:24 +00:00
try to make pattern match something?
This commit is contained in:
@@ -5,7 +5,7 @@ rules:
|
||||
def $FUNC(...):
|
||||
...
|
||||
- pattern: |
|
||||
"...profiles..."
|
||||
"profiles"
|
||||
# - pattern: |
|
||||
# "...user_id..."
|
||||
message: "Function '$FUNC' references both 'profiles' and 'user_id'"
|
||||
|
||||
@@ -5,7 +5,7 @@ rules:
|
||||
def $FUNC(...):
|
||||
...
|
||||
- pattern: |
|
||||
"...evil..."
|
||||
"evil"
|
||||
message: "Function '$FUNC' contains evil"
|
||||
languages: [python]
|
||||
severity: ERROR
|
||||
|
||||
Reference in New Issue
Block a user