doc8 icon indicating copy to clipboard operation
doc8 copied to clipboard

All directives are ignored for line-length check

Open mskrip opened this issue 6 years ago • 2 comments

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

mskrip avatar Sep 11 '19 13:09 mskrip

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

mskrip avatar Sep 12 '19 11:09 mskrip

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.

h1nk avatar Sep 27 '19 17:09 h1nk