feat: semgrep rule for db.sql
This commit is contained in:
parent
8e7d83c88d
commit
236c84ab8b
1 changed files with 7 additions and 0 deletions
|
|
@ -131,3 +131,10 @@ rules:
|
|||
key `$X` is uselessly assigned twice. This could be a potential bug.
|
||||
languages: [python]
|
||||
severity: ERROR
|
||||
|
||||
- id: frappe-using-db.sql
|
||||
pattern-regex: \.sql.*\(
|
||||
message: |
|
||||
The PR contains a SQL query that may be re-written with frappe.qb (https://frappeframework.com/docs/user/en/api/query-builder) or the Database API (https://frappeframework.com/docs/user/en/api/database)
|
||||
languages: [python]
|
||||
severity: ERROR
|
||||
Loading…
Add table
Reference in a new issue