mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
ci(semgrep): fix false positives (#25823)
This commit is contained in:
4
.github/helper/semgrep_rules/translate.yml
vendored
4
.github/helper/semgrep_rules/translate.yml
vendored
@@ -44,8 +44,8 @@ rules:
|
||||
pattern-either:
|
||||
- pattern: _(...) + _(...)
|
||||
- pattern: _("..." + "...")
|
||||
- pattern-regex: '_\([^\)]*\\\s*' # lines broken by `\`
|
||||
- pattern-regex: '_\(\s*\n' # line breaks allowed by python for using ( )
|
||||
- pattern-regex: '[\s\.]_\([^\)]*\\\s*' # lines broken by `\`
|
||||
- pattern-regex: '[\s\.]_\(\s*\n' # line breaks allowed by python for using ( )
|
||||
message: |
|
||||
Do not split strings inside translate function. Do not concatenate using translate functions.
|
||||
Please refer: https://frappeframework.com/docs/user/en/translations
|
||||
|
||||
Reference in New Issue
Block a user