diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-09-03 21:17:38 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-09-03 21:17:38 +0100 |
commit | 928fe5d0598c7d2348497a508f11b97a757543f5 (patch) | |
tree | 872e8da621e14cec966b9325176dc1536ca6a346 | |
parent | a3e182ffa1718472d8bae11b27004f6c6311b4a3 (diff) | |
download | prosody-928fe5d0598c7d2348497a508f11b97a757543f5.tar.gz prosody-928fe5d0598c7d2348497a508f11b97a757543f5.zip |
semgrep: Catch stanza:text() (assuming it's meant to be :get_text())
-rw-r--r-- | .semgrep.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.semgrep.yml b/.semgrep.yml index de1ef89e..22bfcfea 100644 --- a/.semgrep.yml +++ b/.semgrep.yml @@ -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] |