Skip to content

Commit 601194e

Browse files
committed
JS: Accept raw test output
1 parent ced213f commit 601194e

File tree

197 files changed

+7128
-4308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+7128
-4308
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
#select
12
| bad.js:14:7:14:23 | $compile(element) | This call to $compile may cause double compilation of 'element'. |
3+
testFailures
4+
| bad.js:14:7:14:23 | This call to $compile may cause double compilation of 'element'. | Unexpected result: Alert |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
#select
12
| duplicates.js:2:5:2:18 | function f(){} | This function has a duplicate dependency $@. | duplicates.js:3:26:3:31 | 'dup5' | dup5 |
23
| duplicates.js:6:33:6:56 | functio ... up2b){} | This function has a duplicate dependency $@. | duplicates.js:6:24:6:30 | 'dup2a' | dup2a |
34
| duplicates.js:7:33:7:56 | functio ... up3b){} | This function has a duplicate dependency $@. | duplicates.js:7:24:7:30 | 'dup3b' | dup3b |
45
| duplicates.js:8:43:8:78 | functio ... up4C){} | This function has a duplicate dependency $@. | duplicates.js:8:35:8:40 | 'dup4' | dup4 |
56
| duplicates.js:15:35:15:113 | functio ... } | This function has a duplicate dependency $@. | duplicates.js:15:25:15:32 | 'dup11a' | dup11a |
7+
testFailures
8+
| duplicates.js:2:5:2:18 | This function has a duplicate dependency $@. | Unexpected result: Alert |
9+
| duplicates.js:3:35:3:44 | // $ Alert | Missing result: Alert |
10+
| duplicates.js:15:61:15:113 | // $ Al ... unction | Missing result: Alert |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
#select
12
| repeated-injection.js:6:5:6:31 | functio ... name){} | This function has $@ defined in multiple places. | repeated-injection.js:7:5:7:22 | $Injected2.$inject | dependency injections |
23
| repeated-injection.js:6:5:6:31 | functio ... name){} | This function has $@ defined in multiple places. | repeated-injection.js:8:54:8:73 | ['name', $Injected2] | dependency injections |
34
| repeated-injection.js:10:5:10:31 | functio ... name){} | This function has $@ defined in multiple places. | repeated-injection.js:11:5:11:22 | $Injected3.$inject | dependency injections |
45
| repeated-injection.js:10:5:10:31 | functio ... name){} | This function has $@ defined in multiple places. | repeated-injection.js:12:5:12:22 | $Injected3.$inject | dependency injections |
56
| repeated-injection.js:33:5:33:85 | functio ... n\\n } | This function has $@ defined in multiple places. | repeated-injection.js:35:5:35:23 | $Injected10.$inject | dependency injections |
67
| repeated-injection.js:33:5:33:85 | functio ... n\\n } | This function has $@ defined in multiple places. | repeated-injection.js:36:56:36:76 | ['name' ... cted10] | dependency injections |
8+
testFailures
9+
| repeated-injection.js:33:33:33:85 | // $ Al ... unction | Missing result: Alert |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
#select
12
| unused-angular-dependency.js:5:17:5:23 | unused7 | Unused dependency unused7. |
23
| unused-angular-dependency.js:14:14:14:39 | ["unuse ... n() {}] | This function has 0 parameters, but 1 dependency is injected into it. |
34
| unused-angular-dependency.js:16:14:16:53 | ["used2 ... d2) {}] | This function has 1 parameter, but 2 dependencies are injected into it. |
45
| unused-angular-dependency.js:17:14:17:52 | ["unuse ... n() {}] | This function has 0 parameters, but 2 dependencies are injected into it. |
56
| unused-angular-dependency.js:18:14:18:106 | ["used2 ... }] | This function has 1 parameter, but 2 dependencies are injected into it. |
7+
testFailures
8+
| unused-angular-dependency.js:18:54:18:106 | // $ Al ... unction | Missing result: Alert |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
#select
12
| tst2.html:3:6:3:24 | href={{help_url}} | Use 'ng-href' instead of 'href'. |
23
| tst.html:8:6:8:24 | href={{help_url}} | Use 'ng-href' instead of 'href'. |
34
| tst.html:10:40:10:83 | srcset=#/resources/pics-large/{{item._id}} | Use 'ng-srcset' instead of 'srcset'. |
45
| tst.html:11:10:11:52 | src=#/resources/pics-default/{{item._id}} | Use 'ng-src' instead of 'src'. |
56
| tst_fragment.html:3:6:3:24 | href={{help_url}} | Use 'ng-href' instead of 'href'. |
7+
testFailures
8+
| tst.html:8:6:8:24 | Use 'ng-href' instead of 'href'. | Unexpected result: Alert |
9+
| tst.html:10:40:10:83 | Use 'ng-srcset' instead of 'srcset'. | Unexpected result: Alert |
10+
| tst.html:11:10:11:52 | Use 'ng-src' instead of 'src'. | Unexpected result: Alert |
11+
| tst2.html:3:6:3:24 | Use 'ng-href' instead of 'href'. | Unexpected result: Alert |
12+
| tst_fragment.html:3:6:3:24 | Use 'ng-href' instead of 'href'. | Unexpected result: Alert |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
#select
12
| AmbiguousIdAttribute.html:4:5:4:14 | id=first | This element has the same id as $@. | AmbiguousIdAttribute.html:5:5:5:14 | id=first | another element |
23
| AmbiguousIdAttribute_fragment.html:2:7:2:16 | id=first | This element has the same id as $@. | AmbiguousIdAttribute_fragment.html:3:7:3:16 | id=first | another element |
34
| tst.js:17:22:17:33 | id="theDiff" | This element has the same id as $@. | tst.js:17:46:17:57 | id="theDiff" | another element |
5+
testFailures
6+
| AmbiguousIdAttribute.html:4:5:4:14 | This element has the same id as $@. | Unexpected result: Alert |
7+
| AmbiguousIdAttribute_fragment.html:2:7:2:16 | This element has the same id as $@. | Unexpected result: Alert |
8+
| tst.js:5:67:5:76 | // $ Alert | Missing result: Alert |
9+
| tst.js:7:68:7:77 | // $ Alert | Missing result: Alert |
10+
| tst.js:9:20:9:29 | // $ Alert | Missing result: Alert |
11+
| tst.js:12:60:12:69 | // $ Alert | Missing result: Alert |
12+
| tst.js:19:51:19:60 | // $ Alert | Missing result: Alert |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#select
12
| ConflictingAttributes.html:1:4:1:27 | href=http://semmle.com | This attribute has the same name as $@ of the same element, but a different value. | ConflictingAttributes.html:1:29:1:53 | href=https://semmle.com | another attribute |
23
| tst.js:5:4:5:27 | href="h ... le.com" | This attribute has the same name as $@ of the same element, but a different value. | tst.js:5:29:5:53 | href="h ... le.com" | another attribute |
34
| tst.js:12:4:12:27 | href="h ... le.com" | This attribute has the same name as $@ of the same element, but a different value. | tst.js:12:29:12:46 | href={someValue()} | another attribute |
5+
testFailures
6+
| ConflictingAttributes.html:1:4:1:27 | This attribute has the same name as $@ of the same element, but a different value. | Unexpected result: Alert |
7+
| tst.js:7:68:7:77 | // $ Alert | Missing result: Alert |
8+
| tst.js:9:20:9:29 | // $ Alert | Missing result: Alert |
9+
| tst.js:17:73:17:82 | // $ Alert | Missing result: Alert |
10+
| tst.js:19:51:19:60 | // $ Alert | Missing result: Alert |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#select
12
| DuplicateAttributes.html:1:4:1:28 | href=https://semmle.com | This attribute $@. | DuplicateAttributes.html:1:30:1:54 | href=https://semmle.com | is duplicated later |
23
| tst.js:7:4:7:28 | href="h ... le.com" | This attribute $@. | tst.js:7:30:7:54 | href="h ... le.com" | is duplicated later |
34
| tst.js:19:17:19:28 | id="theDiff" | This attribute $@. | tst.js:19:30:19:41 | id="theDiff" | is duplicated later |
5+
testFailures
6+
| DuplicateAttributes.html:1:4:1:28 | This attribute $@. | Unexpected result: Alert |
7+
| tst.js:5:67:5:76 | // $ Alert | Missing result: Alert |
8+
| tst.js:9:20:9:29 | // $ Alert | Missing result: Alert |
9+
| tst.js:12:60:12:69 | // $ Alert | Missing result: Alert |
10+
| tst.js:17:73:17:82 | // $ Alert | Missing result: Alert |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1+
#select
12
| AmbiguousIdAttributeGood.html:8:5:8:19 | id=invalid id | The value of the id attribute must not contain any space characters. |
23
| AmbiguousIdAttributeGood.html:9:5:9:19 | id=invalid id | The value of the id attribute must not contain any space characters. |
34
| MalformedIdAttribute.html:1:6:1:27 | id=heading important | The value of the id attribute must not contain any space characters. |
45
| tst.js:9:6:9:10 | id="" | The value of the id attribute must contain at least one character. |
56
| tst.js:10:6:10:13 | id="a b" | The value of the id attribute must not contain any space characters. |
7+
testFailures
8+
| AmbiguousIdAttributeGood.html:8:5:8:19 | The value of the id attribute must not contain any space characters. | Unexpected result: Alert |
9+
| AmbiguousIdAttributeGood.html:9:5:9:19 | The value of the id attribute must not contain any space characters. | Unexpected result: Alert |
10+
| MalformedIdAttribute.html:1:6:1:27 | The value of the id attribute must not contain any space characters. | Unexpected result: Alert |
11+
| tst.js:5:67:5:76 | // $ Alert | Missing result: Alert |
12+
| tst.js:7:68:7:77 | // $ Alert | Missing result: Alert |
13+
| tst.js:10:6:10:13 | The value of the id attribute must not contain any space characters. | Unexpected result: Alert |
14+
| tst.js:12:60:12:69 | // $ Alert | Missing result: Alert |
15+
| tst.js:17:73:17:82 | // $ Alert | Missing result: Alert |
16+
| tst.js:19:51:19:60 | // $ Alert | Missing result: Alert |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
#select
12
| tst.js:1:1:1:22 | window. ... ut(";") | Avoid using functions that evaluate strings as code. |
23
| tst.js:2:1:2:24 | setInte ... te();") | Avoid using functions that evaluate strings as code. |
34
| tst.js:4:1:4:31 | documen ... i!');") | Avoid using functions that evaluate strings as code. |
45
| tst.js:5:1:5:30 | window. ... gger;") | Avoid using functions that evaluate strings as code. |
56
| tst.js:9:3:9:33 | documen ... d = 2") | Avoid using functions that evaluate strings as code. |
7+
testFailures
8+
| tst.js:1:1:1:22 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert |
9+
| tst.js:2:1:2:24 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert |
10+
| tst.js:4:1:4:31 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert |
11+
| tst.js:5:1:5:30 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert |
12+
| tst.js:9:3:9:33 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert |

0 commit comments

Comments
 (0)