← 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 14 of 84 cases

1240-a_comment_opener_inside_a_vector_type ✗the <* of the vector type opens a documentation comment that nothing closes, so the four lines of the macro under it are counted as comment. The same file with int[<4>] comes out right
2120-heredoc_holding_an_apostrophe ✗the apostrophe opens a string and every comment under it is counted as code
4010-char_literal_holding_a_quote ✗the quote opens a string, so both comments under it are counted as code
4020-two_char_literals_holding_escapes ✗every comment under the line is lost
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
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
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 under it is counted as code
7020-regex_holding_a_comment_opener ✗the /* opens a comment and swallows the two lines under 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