1
0
Fork 0
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:
Matthew Wild 2022-09-03 21:17:38 +01:00
parent a3e182ffa1
commit 928fe5d059

View file

@ -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]