Skip to content

Ignore specific problems in code blocks #199

@vincent-legoll

Description

@vincent-legoll

Is it possible to ignore specific problems in code blocks ?

for example as in the following (contrived):

.. code-block:: console

$ echo "trailing spaces are not always evil    "
trailing spaces are not always evil    

I think something along the line of the following would be nice to have:

$ doc8 --ignore-in-code-block=D002 file_with_trailing_spaces.rst

It looks like line length is not checked for code blocks, this is kind of similar...

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions