We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Python parser gets stuck in string state if it sees '' or ""
To Reproduce
Create tmp.py with this content and run scc tmp.py
scc tmp.py
a = '' # comment for i in range(10): print(i)
Expected behavior
This is the (wrong) output
─────────────────────────────────────────────────────────────────────────────── Language Files Lines Blanks Comments Code Complexity ─────────────────────────────────────────────────────────────────────────────── Python 1 6 0 0 6 0 ─────────────────────────────────────────────────────────────────────────────── Total 1 6 0 0 6 0 ───────────────────────────────────────────────────────────────────────────────
You get this if you change '' to str()
─────────────────────────────────────────────────────────────────────────────── Language Files Lines Blanks Comments Code Complexity ─────────────────────────────────────────────────────────────────────────────── Python 1 6 2 1 3 1 ─────────────────────────────────────────────────────────────────────────────── Total 1 6 2 1 3 1 ───────────────────────────────────────────────────────────────────────────────
Desktop (please complete the following information): Mac OS, tried version in brew and master
The text was updated successfully, but these errors were encountered:
That's an interesting one!
Sorry, something went wrong.
Recompute wrong slocs caused by a bug in SCC (boyter/scc#379)
b7d7a86
No branches or pull requests
Describe the bug
Python parser gets stuck in string state if it sees '' or ""
To Reproduce
Create tmp.py with this content and run
scc tmp.py
Expected behavior
This is the (wrong) output
You get this if you change '' to str()
Desktop (please complete the following information):
Mac OS, tried version in brew and master
The text was updated successfully, but these errors were encountered: