← every case · 8000 · what the line counts as

8010-punctuation_only_line

a line holding only a brace. A definition, not a mistake: neither code nor comment to a counter that asks what a line says, code to one that asks whether the file would compile without it

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.c
1codeint main(void) {
2code return 0;
3code}

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask3 lines · 0 blanks · 3 code · 0 comments
it answers3 lines · 0 blanks · 3 code · 0 comments

cloc --json cases/8000-what_the_line_counts_as/8010-punctuation_only_line/input.c

mezura.content ✓ agrees
the rules ask3 lines · 2 code · 0 comments · 1 extra
it answers3 lines · 2 code · 0 comments · 1 extra

mezura cases/8000-what_the_line_counts_as/8010-punctuation_only_line/input.c --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask3 lines · 0 blanks · 3 code · 0 comments
it answers3 lines · 0 blanks · 3 code · 0 comments

mezura cases/8000-what_the_line_counts_as/8010-punctuation_only_line/input.c --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask3 lines · 0 blanks · 3 code · 0 comments
it answers3 lines · 0 blanks · 3 code · 0 comments

scc --format json cases/8000-what_the_line_counts_as/8010-punctuation_only_line/input.c

tokei.default ✓ agrees
the rules ask3 lines · 0 blanks · 3 code · 0 comments
it answers3 lines · 0 blanks · 3 code · 0 comments

tokei --output json cases/8000-what_the_line_counts_as/8010-punctuation_only_line/input.c