Skip to content
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 option to explain lines #175

Open
1 task
roskakori opened this issue Dec 10, 2024 · 0 comments
Open
1 task

Add option to explain lines #175

roskakori opened this issue Dec 10, 2024 · 0 comments

Comments

@roskakori
Copy link
Owner

roskakori commented Dec 10, 2024

Background

Sometimes the numbers pygount produces are not obvious, and users would like to know how a certain line is counted. Sometimes even developers (see #171).

Goals

  • When the command line option --explain is specified, pygount prints each analyzed line and how it did count it.

Example output

For the source code

"""Test"""
print("Hello World")

The output would be something like:

d 1 """Test"""
c 2 print("Hello World")

with c=code, d=documentation, and 1 resp. 2 being line numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant