Software /
code /
prosody
Comparison
.semgrep.yml @ 12717:898e99f49d80
semgrep: Catch stanza:text() (assuming it's meant to be :get_text())
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 03 Sep 2022 21:17:38 +0100 |
parent | 11289:c6965f3c321c |
comparison
equal
deleted
inserted
replaced
12716:0b68b021ce46 | 12717:898e99f49d80 |
---|---|
20 - pattern-not: module:get_option_string("...", host) | 20 - pattern-not: module:get_option_string("...", host) |
21 - pattern-not: module:get_option_string("...", module.host) | 21 - pattern-not: module:get_option_string("...", module.host) |
22 message: Non-string default from :get_option_string | 22 message: Non-string default from :get_option_string |
23 severity: ERROR | 23 severity: ERROR |
24 languages: [lua] | 24 languages: [lua] |
25 - id: stanza-empty-text-constructor | |
26 patterns: | |
27 - pattern: $A:text() | |
28 message: Use :get_text() to read text, or pass a value here to add text | |
29 severity: WARNING | |
30 languages: [lua] |