Run loc foo.py. You'll get the expected result, 1 line of Python. Now run mv foo.py foo and run loc foo. The result shows 0 lines of anything.
This may be out of scope for loc (detecting filetypes without an extension can be hard), but it does mess up counts for codebases with scripts named without extensions, e.g. run_task, etc.
What would be required for loc to return counts for files without extensions?
This may be by design, but:
Write the following to a file named e.g.
foo.py
:Run
loc foo.py
. You'll get the expected result, 1 line of Python. Now runmv foo.py foo
and runloc foo
. The result shows 0 lines of anything.This may be out of scope for
loc
(detecting filetypes without an extension can be hard), but it does mess up counts for codebases with scripts named without extensions, e.g.run_task
, etc.What would be required for
loc
to return counts for files without extensions?