Skip to content

Commit e35e611

Browse files
committed
new switch --ignore-regex, #862, #865, #868
1 parent 6040f51 commit e35e611

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

tests/inputs/issues/862/Fortran77.f

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
C from http://www.roesler-ac.de/wolfram/hello.htm
2+
C Hello World in Fortran 77
3+
4+
PROGRAM HELLO
5+
PRINT*, 'Hello World!'
6+
END

tests/inputs/issues/862/hello.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <stdio.h>
2+
#include <stdlib.h>
3+
4+
int main(void)
5+
{
6+
puts("Hello World!")
7+
;
8+
return EXIT_SUCCESS
9+
;
10+
}

tests/outputs/issues/862/results.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# github.com/AlDanial/cloc
3+
header :
4+
cloc_url : github.com/AlDanial/cloc
5+
cloc_version : 2.03
6+
elapsed_seconds : 0.0048370361328125
7+
n_files : 2
8+
n_lines : 16
9+
files_per_second : 413.476340694006
10+
lines_per_second : 3307.81072555205
11+
report_file : results.yaml
12+
'C' :
13+
nFiles: 1
14+
blank: 1
15+
comment: 4
16+
code: 5
17+
'Fortran 77' :
18+
nFiles: 1
19+
blank: 1
20+
comment: 3
21+
code: 2
22+
SUM:
23+
blank: 2
24+
comment: 7
25+
code: 7
26+
nFiles: 2

0 commit comments

Comments
 (0)