Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | $(function() { |
||
7 | (function (w) { |
||
8 | var d = w.document, |
||
9 | headerList = d.querySelector('main').querySelectorAll("h2[id]"); |
||
10 | for (var i = 0, header, link; header = headerList[i]; ++i) { |
||
11 | link = d.createElement("a"); |
||
12 | link.className = "header-permalink"; |
||
13 | link.title = "Permalink"; |
||
14 | link.href = "#" + header.id; |
||
15 | link.innerHTML = "¶"; |
||
16 | header.appendChild(link); |
||
17 | } |
||
18 | })(window); |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.