remove false positive in missingSpaceInAppend by requring the presence of a word-like fragment

This commit is contained in:
Erik Krogh Kristensen
2019-09-25 13:34:18 +02:00
parent b85896299d
commit 69365ccd03
5 changed files with 54 additions and 7 deletions

View File

@@ -11,3 +11,4 @@
| missing.js:24:5:24:21 | `missing a space` | This string appears to be missing a space after 'space'. |
| missing.js:26:5:26:21 | "missing a space" | This string appears to be missing a space after 'space'. |
| missing.js:28:5:28:21 | `missing a space` | This string appears to be missing a space after 'space'. |
| missing.js:31:7:31:12 | "h. 0" | This string appears to be missing a space after '0'. |

View File

@@ -27,3 +27,5 @@ s = "missing a space" +
`here`;
s = `missing a space` +
`here`;
s = (("h. 0" + "h")) + "word"

View File

@@ -8,4 +8,7 @@ s = "the class java.util." +
s = "some data: a,b,c," +
"d,e,f";
s = "overflow: scroll;" +
"position: absolute;";
"position: absolute;";
s = "h. 0" + "h"
s = ((("h. 0"))) + (("h")) + ("h")