← every case · 2000 · string forms
a triple quoted string opened on one line and closed on another keeps the lines between out of the comment count, since a string is not a comment
| 1 | codecodecodecodecodecode | a = """one""" |
| 2 | codecodecodecodecodecode | b = """two |
| 3 | codecodecodecodecodecode | still inside the docstring |
| 4 | codecodecodecodecodecode | """ |
| 5 | commentscommentscommentscommentscommentscomments | # a real comment |
stringcommentthe tag around another language
a triple quoted string is read as documentation wherever it opens, the middle of a line of code included, so the lines holding its text and its closing quotes are added to the comment count
cloc --json cases/2000-string_forms/2080-odd_triple_quote_count/input.py
--strip-str-comments
a triple quoted string is read as documentation wherever it opens, the middle of a line of code included, so the lines holding its text and its closing quotes are added to the comment count
cloc --json cases/2000-string_forms/2080-odd_triple_quote_count/input.py --strip-str-comments
cloc --json cases/2000-string_forms/2080-odd_triple_quote_count/input.py --docstring-as-code
mezura cases/2000-string_forms/2080-odd_triple_quote_count/input.py --output json --hide timing --no-default-config --no-local --counting content
mezura cases/2000-string_forms/2080-odd_triple_quote_count/input.py --output json --hide timing --no-default-config --no-local --counting region
scc --format json cases/2000-string_forms/2080-odd_triple_quote_count/input.py
tokei --output json cases/2000-string_forms/2080-odd_triple_quote_count/input.py