You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: