seitime-frappe/.github/helper/semgrep_rules/ux.js
Ankush Menat 889e8aacb7
ci(semgrep): false +ve translation on templates
separated JS and python rules for granuarilty.

Ignore matches with microtemplating that have this structure: `{{.*_.*}}` in string.
2021-05-25 12:53:37 +05:30

9 lines
294 B
JavaScript

// 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") }}. ');