Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

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

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

@artloder
Copy link
Contributor

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 as completed Sep 10, 2015
@adrianmoisey
Copy link
Author

Is this fixed now?

@Nurdok
Copy link
Member

Nurdok commented Sep 12, 2015

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

@Nurdok Nurdok reopened this Sep 12, 2015
@achan1989
Copy link

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants