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

False positive: role-with-double-backticks #34

Closed
hugovk opened this issue Jun 6, 2022 · 3 comments
Closed

False positive: role-with-double-backticks #34

hugovk opened this issue Jun 6, 2022 · 3 comments

Comments

@hugovk
Copy link
Collaborator

hugovk commented Jun 6, 2022

The valid text has :all: at the end of an inline code block (it's a pip option) is reported as invalid.

Small reproducer:

Only by specifying ``--only-binary :all:`` can you ...

#. Install the requirements file using
   ``pip install --require-hashes --no-deps --only-binary :all:``
$ sphinx-lint 1.rst
1.rst:1: role use a single backtick, double backtick found. (role-with-double-backticks)
1.rst:4: role use a single backtick, double backtick found. (role-with-double-backticks)

To reproduce on a real-life file:

$ wget --quiet https://raw.githubusercontent.com/python/peps/ebefef14d5df408a4a0f8644a454073338fa41aa/pep-0665.rst
$ sphinx-lint pep-0665.rst
pep-0665.rst:190: role use a single backtick, double backtick found. (role-with-double-backticks)
pep-0665.rst:198: role use a single backtick, double backtick found. (role-with-double-backticks)

Links to file:

Preview of the valid :all: at the end of a code block:

image

@JulienPalard
Copy link
Collaborator

Thanks for this issue! I resolved it (but not released yet).

@CAM-Gerlach
Copy link

Thanks!

@JulienPalard
Copy link
Collaborator

(Released as 0.6.6.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants