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

All directives are ignored for line-length check #19

Open
mskrip opened this issue Sep 11, 2019 · 2 comments
Open

All directives are ignored for line-length check #19

mskrip opened this issue Sep 11, 2019 · 2 comments
Labels
bug This issue/PR relates to a bug.

Comments

@mskrip
Copy link

mskrip commented Sep 11, 2019

Example:

.. note:: This is an example not that should be too long for a single line and the linter should report it

IMO directive code should be ignored but others shouldn't

@stephenfin stephenfin added the bug This issue/PR relates to a bug. label Sep 11, 2019
@mskrip
Copy link
Author

mskrip commented Sep 12, 2019

Or maybe the list of directives that should be checked / ignored should be configurable. What do you think?

@h1nk
Copy link

h1nk commented Sep 27, 2019

Something seems very incorrect with how doc8 (I'm using version 0.8.0) is parsing directives that contain blocks of content. It doesn't seem to know when directive blocks like code-block:: and testcode:: end. In this fragment from some documentation I wrote you can clearly see that lines 36-47 contain multiple line-length violations, but no errors are accumulated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants