Total Complexity | 3 |
Complexity/F | 1.5 |
Lines of Code | 8 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | var pre = document.querySelectorAll('.trace li'); |
||
2 | |||
3 | for (var i = 0; i < pre.length; i++) { |
||
4 | pre[i].addEventListener('click', function(event) { |
||
|
|||
5 | this.classList.toggle('show'); |
||
6 | this.querySelector('pre').addEventListener('click', function(e){e.stopPropagation();}) |
||
7 | }); |
||
8 | } |
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.