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

D401 reports incorrect line number #83

Closed
adrianmoisey opened this issue Dec 8, 2014 · 4 comments
Closed

D401 reports incorrect line number #83

adrianmoisey opened this issue Dec 8, 2014 · 4 comments

Comments

@adrianmoisey
Copy link

@adrianmoisey adrianmoisey commented Dec 8, 2014

When reporting a D401, the line number returned is the line of the function, not the line number for the docstring

@artloder

This comment has been minimized.

Copy link
Contributor

@artloder artloder commented Feb 6, 2015

This isn't specific to D401; the function's line number is reported for others as well.

@Nurdok Nurdok closed this Sep 10, 2015
@adrianmoisey

This comment has been minimized.

Copy link
Author

@adrianmoisey adrianmoisey commented Sep 11, 2015

Is this fixed now?

@Nurdok

This comment has been minimized.

Copy link
Member

@Nurdok Nurdok commented Sep 12, 2015

Nope, I accidentally closed it while going over some issues. Reopened.

@Nurdok Nurdok reopened this Sep 12, 2015
lordmauve added a commit to lordmauve/pydocstyle that referenced this issue Feb 27, 2017
lordmauve added a commit to lordmauve/pydocstyle that referenced this issue Feb 27, 2017
@achan1989

This comment has been minimized.

Copy link

@achan1989 achan1989 commented May 26, 2017

A test case:

#!/usr/bin/env python3

"""
Overly-long module summary that is longer
than one line.

More details...
"""

# code here

Pydocstyle reports D400 and D205, but shows the error as being on the shebang line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.