Closed
Description
Describe the bug
I'm not sure if this is a bug, a feature request, or an intentional decision for performance. 🙂
Scripts with a shebang but no file extension are not counted.
To Reproduce
[elindsey@worktop:~/.bin]
$ cat test.pl
#!/usr/bin/env perl
print "Hello, World!\n";
[elindsey@worktop:~/.bin]
$ scc test.pl
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
Perl 1 3 1 1 1 0
───────────────────────────────────────────────────────────────────────────────
Total 1 3 1 1 1 0
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $19
Estimated Schedule Effort 0.247114 months
Estimated People Required 0.009168
───────────────────────────────────────────────────────────────────────────────
[elindsey@worktop:~/.bin]
$ mv test.pl test
[elindsey@worktop:~/.bin]
$ scc test
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────────────────
Total 0 0 0 0 0 0
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $0
Estimated Schedule Effort 0.000000 months
Estimated People Required NaN
───────────────────────────────────────────────────────────────────────────────
[elindsey@worktop:~/.bin]
$ cloc test
1 text file.
1 unique file.
0 files ignored.
github.com/AlDanial/cloc v 1.84 T=0.01 s (191.1 files/s, 573.4 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Perl 1 1 0 2
-------------------------------------------------------------------------------
Expected behavior
It would be neat if scc could use shebang lines for language categorization.
Activity