Completed
Branch master (b4ab83)
by Mikołaj
03:16
created

app/component/ErrorHandler/Resources/js/checkargs.js   A

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 8
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 3
mnd 1
bc 3
fnc 2
bpm 1.5
cpm 1.5
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A pre[i].addEventListener(ꞌclickꞌ) 0 4 1
1
var pre = document.querySelectorAll('.trace li');
2
3
for (var i = 0; i < pre.length; i++) {
4
  pre[i].addEventListener('click', function(event) {
0 ignored issues
show
Unused Code introduced by
The parameter event is not used and could be removed.

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.

Loading history...
5
    this.classList.toggle('show');
6
    this.querySelector('pre').addEventListener('click', function(e){e.stopPropagation();})
7
  });
8
}