Skip to content

Commit 4dfb2c4

Browse files
committed
loc: Semicolon not a statement for JavaScript
1 parent f3c31de commit 4dfb2c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/metrics/loc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,24 +1853,24 @@ mod tests {
18531853
[
18541854
(sloc, 5, usize), // The number of lines is 5
18551855
(ploc, 5, usize), // The number of code lines is 5
1856-
(lloc, 7, usize), // The number of statements is 7
1856+
(lloc, 6, usize), // The number of statements is 6
18571857
(cloc, 0, usize), // The number of comments is 0
18581858
(blank, 0, usize), // The number of blank lines is 0
18591859
(sloc_min, 5, usize),
18601860
(ploc_min, 5, usize),
1861-
(lloc_min, 6, usize),
1861+
(lloc_min, 5, usize),
18621862
(cloc_min, 0, usize),
18631863
(blank_min, 0, usize),
18641864
(sloc_max, 5, usize),
18651865
(ploc_max, 5, usize),
1866-
(lloc_max, 6, usize),
1866+
(lloc_max, 5, usize),
18671867
(cloc_max, 0, usize),
18681868
(blank_max, 0, usize)
18691869
],
18701870
[
18711871
(sloc_average, 2.5), // The number of spaces is 2
18721872
(ploc_average, 2.5),
1873-
(lloc_average, 3.5),
1873+
(lloc_average, 3.0),
18741874
(cloc_average, 0.0),
18751875
(blank_average, 0.0)
18761876
]

0 commit comments

Comments
 (0)