-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Feature request - Include code in strings #382
Comments
Thanks. So... this is possible to do, and I think tokei does to an extent for things like markdown files by looking for the embedding as you have in the above. I know tools like intellij can do this, so perhaps whatever technique they use (they do parse the code but that shouldn't give sql information) might be something to copy. Something to investigate there. Not saying no to this, just not sure how to go about doing it yet. |
Thank you for the reply. My naive approach would be to "tag" the string with a comment, and count the lines inside the quotes, as if they were regular lines in a regular file. The same logic used for the files can be applied to the string text. I really appreciate and am grateful for the existing features, and this was just something I wanted to mention, if you felt bored xD. Thanks again. |
Hah bored... sometimes. What I really want to do is bring in the changes I have been working on to have correct .gitignore support. Soon. Then I can get some other bugs sorted out. |
I tried
scc
on my project and I like what it outputs.What I've noticed is that it gives me 90 SQL lines (those in
.sql
files), while the app has almost the same amount of SQL (in strings) as Javascript.Here's an example of the SQL code I am talking about...
The SQL in the string is not counted at all.
This is probably impossible to pull off, I just wanted to point it out.
It could be made easier if we declare the language used. Ex.
The text was updated successfully, but these errors were encountered: