ci: flag new instances of sql_ddl and sql_list
This commit is contained in:
parent
059e5441c2
commit
ac1bb636cf
1 changed files with 5 additions and 2 deletions
|
|
@ -133,8 +133,11 @@ rules:
|
|||
severity: ERROR
|
||||
|
||||
- id: frappe-using-db-sql
|
||||
pattern: frappe.db.sql(...)
|
||||
pattern-either:
|
||||
- pattern: frappe.db.sql(...)
|
||||
- pattern: frappe.db.sql_ddl(...)
|
||||
- pattern: frappe.db.sql_list(...)
|
||||
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
|
||||
severity: ERROR
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue