Total Complexity | 4 |
Complexity/F | 1.33 |
Lines of Code | 18 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | $(function() { |
||
2 | $('.versions').change(function (e) { |
||
|
|||
3 | location.href = $(this).find('option:selected').data('url'); |
||
4 | }); |
||
5 | }); |
||
6 | |||
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.