← every case

sccgithub.com

measured at scc version 4.1.0 · downloaded from github-release-asset as boyter/scc

What it fails

scc.default.svgdoes not agree on 30 of 107 cases

1240-a_comment_opener_inside_a_vector_type ✗the <* of the vector type opens a documentation comment, which the one below the macro closes, so the four lines of the macro under it are counted as comment. The same file with int[<4>] comes out right
1260-pod_closer_indented_inside_the_documentation ✗the indented =cut of the example closes the documentation, so the sentence under it and the real =cut count as code. With that line written as plain text the file reads right
1280-matlab_block_markers_sharing_their_line ✗the %} with words after it on line 3 closes the block, so those words and line 4 count as code, and the %{ with words after it on line 6 opens one over line 7. With the words on those two lines written as plain text the file reads right
2062-template_hole_written_over_several_lines ✗the template is read as text from one backtick to the next, hole included, so the comment line inside the hole counts as code. With that line taken out the file is counted right
2064-template_inside_a_template_hole ✗the backticks pair off in order, hole or no hole, so the second one ends the outer template and the line inside the inner template counts as a comment. The file is counted the same with the ${ taken out
2072-verbatim_string_holding_a_doubled_quote ✗the verbatim string ends at the first quote of the first doubled pair, so the two lines below count as comments and the real comment counts as code
2077-interpolation_hole_holding_the_strings_own_quote ✗the quote of the character in the hole ends the string, and the apostrophes after it are read as quotes that cross lines. Three of them leave one open, which keeps the two lines below inside a string by chance and swallows the real comment under the closing quote
2085-raw_string_ending_in_a_quote ✗its Kotlin has no raw string, so the quotes of the first line pair off two by two, the /* falls inside one of the pairs, and the quote left over opens a string that runs to the end of the file
2110-here_string_holding_an_apostrophe ✗it reads no here strings, so the line beginning with # inside one counts as a comment, and it answers the same with the apostrophe taken out
2120-heredoc_holding_an_apostrophe ✗it reads no heredocs, so the apostrophe opens a string and every line under it is counted as code. Without the apostrophe the line beginning with # inside the heredoc counts as a comment
2125-operator_spelled_like_a_heredoc_opener ✗reads no heredoc in Ruby, so the apostrophe of it's on line 11 opens a string that runs to the end of the file, and the comment on line 15 counts as code
2127-heredoc_closing_word_indented_only_after_a_tilde_or_dash ✗reads no heredoc in Ruby, so the apostrophe of it's on line 3 opens a string that the one on line 11 closes. The blank line 7 inside it counts as code, and line 13, beginning with #, as a comment
2200-line_string_holding_a_comment_symbol_and_a_quote ✗the \\ on line 2 opens a string that does not close when the line ends, so every line from there to the end of the file counts as code, and the answer is the same with the quote on line 3 taken out
3020-multiline_string_ending_in_backslash ✗its Odin has a double quoted string and no backtick one, so the // on line 3, inside the raw string, is read as a comment. The same /* comes out as code between double quotes and opens a comment between backticks
4010-char_literal_holding_a_quote ✗the quote opens a string, so the comment after it and the one under it are counted as code
4020-two_char_literals_holding_escapes ✗the quote inside '"' opens a string that is still open when the line ends, so the comment after it and every comment under it count as code. Without that character literal the line reads right
4030-character_written_with_a_backslash ✗its Clojure has no string at all, so line 2, inside the string opened on line 1, begins with ; and is read as a comment
4055-apostrophe_inside_a_comment ✗the double quote inside the character literal '"' opens a string that runs to the end of the file, so the three comment lines at the bottom count as code. With both apostrophes taken out the answer is the same
6030-opening_tag_split_over_two_lines ✗the block is not found, so the comment inside it is read with the page's symbols, and HTML has no //
6040-script_tag_in_upper_case ✗no script block is separated out of any page, whatever case its tag is written in, so the comment inside it counts as markup
6050-script_closer_written_with_a_space ✗the block is not found, so its line is counted as the page and not as JavaScript
6080-block_named_by_a_mime_type ✗the block is not found, so the comment inside it counts as markup
6090-vue_blocks_count_as_their_own_languages ✗the file is counted as one language from beginning to end, so neither block is found. The totals come out right because Vue's own table carries all three comment symbols and only the double quote as a string
6100-block_language_named_by_the_tag ✗the file is counted as one language from beginning to end. The totals come out right because both block comment symbols happen to be the ones Vue's own markup already declares, and neither block is found
6105-block_language_named_on_a_middle_line_of_the_tag ✗the file is counted as one language from beginning to end. The totals come out right because Vue's own symbols already count // as a comment, and the block is not found
6110-php_block_holding_html_around_it ✗the file is read as php from beginning to end, so the html comment is counted as code
6115-php_closing_tag_on_the_closing_line_of_a_heredoc ✗the file is read as php from beginning to end, so the html comment is counted as code
6120-script_inside_html_inside_php ✗it has no notion of a file holding a second language, and the js comment survives only because php spells its line comment the same way
7010-regex_literal_holding_a_quote ✗the quote opens a string that runs on, so the comment after it is counted as code
7020-regex_holding_a_comment_opener ✗the /* opens a comment that swallows the two lines under it, and the comment ending the file closes it

The rules it is judged by

default ruleset

code
anything-outside-spans-is-code
take the strings and the comments away and something is still there
code
a-plain-string-is-code
part of the line is inside a string
the line is not inside a block that opened with three quotes at the start of a line
comments
a-doc-string-is-documentation
the line is inside a block that opened with three quotes at the start of a line
take the strings and the comments away and nothing is left but spaces
comments
a-comment-alone-is-comments
part of the line is inside a comment
take the strings and the comments away and nothing is left but spaces
no part of the line is inside a string
blanks
blank-outside-everything-is-blank
the line is nothing but spaces and tabs
no part of the line is inside a comment
no part of the line is inside a string