Kontrollerar ifall Javascript-koden är korrekt enligt Webperf-communityts egna Javascript-test. Testet är ett "lint"-test för att avgöra om det är korrekt Javascript och följer webbstandard.
Betyg: 3.06 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: fi, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: fi, antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #1: fi, antal grupperade fel: 6 ( 3.80 betyg )
- `< script src="...">` in: #1: fi, antal fel: 218 ( 1.00 betyg )
- X is defined but never used. (totalt 127 st)
- Unexpected console statement. (totalt 34 st)
- X is not defined. (totalt 24 st)
- X is assigned a value but never used. (totalt 19 st)
- Definition for rule X was not found. (totalt 13 st)
- Rule "no-unused-expressions" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 1 st)
- `< script>` in: #23: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #23: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: configuration.j, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #18: configuration.j, antal fel: 13 ( 2.40 betyg )
- X is not defined. (totalt 13 st)
- `content-type=".*javascript.*"` in: #19: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: cc.js, antal fel: 41 ( 1.00 betyg )
- X is not defined. (totalt 22 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: ss360-translati, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: ss360-translati, antal fel: 41 ( 1.00 betyg )
- X is not defined. (totalt 22 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: ss360-unibox-v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: ss360-unibox-v1, antal fel: 45 ( 1.00 betyg )
- X is not defined. (totalt 22 st)
- X is defined but never used. (totalt 13 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #37: ss360-styles-v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: ss360-styles-v1, antal fel: 46 ( 1.00 betyg )
- X is not defined. (totalt 22 st)
- X is defined but never used. (totalt 13 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 5 st)
Integritet & säkerhet
- `< script>` in: #1: fi, antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: fi, antal fel: 18 ( 1.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: fi, antal grupperade fel: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: fi, antal fel: 1794 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1308 st)
- Expected X and instead saw X. (totalt 419 st)
- Definition for rule X was not found. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Async method X has no X expression. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Rule "no-unused-expressions" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 1 st)
- `< script>` in: #23: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #23: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: cc.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #19: cc.js, antal fel: 348 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 307 st)
- Expected X and instead saw X. (totalt 36 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: ss360-translati, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #35: ss360-translati, antal fel: 348 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 307 st)
- Expected X and instead saw X. (totalt 36 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: ss360-unibox-v1, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #36: ss360-unibox-v1, antal fel: 450 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 397 st)
- Expected X and instead saw X. (totalt 47 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: ss360-styles-v1, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #37: ss360-styles-v1, antal fel: 457 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 403 st)
- Expected X and instead saw X. (totalt 48 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)