aboutsummaryrefslogtreecommitdiffstats
path: root/.semgrep.yml
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-09-03 21:17:38 +0100
committerMatthew Wild <mwild1@gmail.com>2022-09-03 21:17:38 +0100
commit928fe5d0598c7d2348497a508f11b97a757543f5 (patch)
tree872e8da621e14cec966b9325176dc1536ca6a346 /.semgrep.yml
parenta3e182ffa1718472d8bae11b27004f6c6311b4a3 (diff)
downloadprosody-928fe5d0598c7d2348497a508f11b97a757543f5.tar.gz
prosody-928fe5d0598c7d2348497a508f11b97a757543f5.zip
semgrep: Catch stanza:text() (assuming it's meant to be :get_text())
Diffstat (limited to '.semgrep.yml')
-rw-r--r--.semgrep.yml6
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]