-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for files with a node shebang #19
Comments
Hello, Yes, depcheck only checks for js files. I'm not sure that It would be great if there was a command line parameter for forcing additional files that are not Something like: |
Since shebangs are only ever present at the beginning of a file, you can check the first line containing non-whitespace characters against a regular expression like |
+1 |
The acorn parse support |
Enable test coverage report.
I think version 0.5.9 has supported this now. Could anybody help to test it? I will add a test case to cover this later. UPDATE: The current version (0.5.9) has supported this. However, I have added a test case to assert the support. |
depcheck doesn't appear to take into account files without a
.js
extension but that contain a node shebang (eg#!/usr/bin/env node
). Example:Renaming
executable
toexecutable.js
resolves the problem, though.The text was updated successfully, but these errors were encountered: