ci(semgrep): fix false positives (#25823)

This commit is contained in:
Ankush Menat
2021-05-25 14:06:10 +05:30
committed by GitHub
parent 09d9bd19ac
commit 073dcf7e42
5 changed files with 47 additions and 15 deletions

9
.github/helper/semgrep_rules/ux.js vendored Normal file
View File

@@ -0,0 +1,9 @@
// ok: frappe-missing-translate-function-js
frappe.msgprint('{{ _("Both login and password required") }}');
// ruleid: frappe-missing-translate-function-js
frappe.msgprint('What');
// ok: frappe-missing-translate-function-js
frappe.throw(' {{ _("Both login and password required") }}. ');