Skip to content

Ignore specific problems in code blocks #199

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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