← every case · 8000 · what the line counts as

8020-blank_line_inside_block_comment

a blank line inside a block comment. A definition, not a mistake: blank to a counter that asks what a line says, comment to one that asks which block it sits in

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.c
1comments/* a block comment with a blank line inside it
2blanks
3commentsand text after the blank */
4codeint x = 1;

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask4 lines · 1 blanks · 1 code · 2 comments
it answers4 lines · 1 blanks · 1 code · 2 comments

cloc --json cases/8000-what_the_line_counts_as/8020-blank_line_inside_block_comment/input.c

mezura.content ✓ agrees
the rules ask4 lines · 1 code · 2 comments · 1 extra
it answers4 lines · 1 code · 2 comments · 1 extra

mezura cases/8000-what_the_line_counts_as/8020-blank_line_inside_block_comment/input.c --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

mezura cases/8000-what_the_line_counts_as/8020-blank_line_inside_block_comment/input.c --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

scc --format json cases/8000-what_the_line_counts_as/8020-blank_line_inside_block_comment/input.c

tokei.default ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

tokei --output json cases/8000-what_the_line_counts_as/8020-blank_line_inside_block_comment/input.c