# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1662236258 -3600
# Node ID 898e99f49d80b303d26cbfcaadba11a11e8e88cb
# Parent  0b68b021ce46c0455e577ab0a3bcafcd73564878
semgrep: Catch stanza:text() (assuming it's meant to be :get_text())

diff -r 0b68b021ce46 -r 898e99f49d80 .semgrep.yml
--- a/.semgrep.yml	Mon Jul 11 18:48:57 2022 +0200
+++ b/.semgrep.yml	Sat Sep 03 21:17:38 2022 +0100
@@ -22,3 +22,9 @@
   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]