mirror of
https://github.com/bjc/prosody.git
synced 2025-04-07 07:07:38 +03:00
semgrep: Catch stanza:text() (assuming it's meant to be :get_text())
This commit is contained in:
parent
a3e182ffa1
commit
928fe5d059
1 changed files with 6 additions and 0 deletions
|
@ -22,3 +22,9 @@ rules:
|
|||
message: Non-string default from :get_option_string
|
||||
severity: ERROR
|
||||
languages: [lua]
|
||||
- id: stanza-empty-text-constructor
|
||||
patterns:
|
||||
- pattern: $A:text()
|
||||
message: Use :get_text() to read text, or pass a value here to add text
|
||||
severity: WARNING
|
||||
languages: [lua]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue