Skip to content

Commit b20c44f

Browse files
committed
Also ignore official roles.
1 parent 6fce1f2 commit b20c44f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/antsibull_docs/lint_plugin_docs.py

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
from antsibull_core.compat import asyncio_run
1616
from antsibull_core.venv import FakeVenvRunner
1717

18+
from sphinx_antsibull_ext import roles as antsibull_roles
19+
1820
from .lint_helpers import (
1921
load_collection_info,
2022
)
@@ -161,6 +163,7 @@ def _lint_collection_plugin_docs(collections_dir: str, collection_name: str,
161163
rst_results = check_rst_content(
162164
rst_content, filename=path,
163165
ignore_directives=['rst-class'],
166+
ignore_roles=list(antsibull_roles.ROLES),
164167
)
165168
result.extend([(path, result[0], result[1], result[2]) for result in rst_results])
166169
return result

0 commit comments

Comments
 (0)