Total Complexity | 5 |
Complexity/F | 5 |
Lines of Code | 13 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | module.exports = $ => { |
||
2 | const result = [] |
||
3 | if ($('head title').length === 0) { |
||
4 | result.push('header that doesn’t have <title> tag') |
||
5 | } |
||
6 | if ($('head meta[name="descriptions"]').length === 0) { |
||
7 | result.push('header that doesn’t have descriptions <meta> tag') |
||
8 | } |
||
9 | if ($('head meta[name="keywords"]').length === 0) { |
||
10 | result.push('header that doesn’t have keywords <meta> tag') |
||
11 | } |
||
12 | return result.length ? result.join('\r\n') : null |
||
13 | } |
||
14 |