src/foo.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 0

Size

Lines of Code 8
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 3
wmc 3
eloc 4
c 1
b 0
f 1
nc 6
mnd 2
bc 2
fnc 0
dl 0
loc 8
rs 10
bpm 0
cpm 0
noi 3
1
while (true) {
0 ignored issues
show
Bug introduced by
The condition true seems to be always true, making it impossible for the loop to be exited. Are you sure about that?
Loading history...
2
  alert(101);
0 ignored issues
show
Debugging Code Best Practice introduced by
The alert UI element is often considered obtrusive and is generally only used as a temporary measure. Consider replacing it with another UI element.
Loading history...
3
}
4
5
// unreachable
6
if (window.bla) {
7
  console.log(window.bla ? 123 : 456);
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
8
}
9
10