Skip to content

Commit

Permalink
[FIX] rst-syntax-error: Skip unknown roles
Browse files Browse the repository at this point in the history
  • Loading branch information
moylop260 committed Sep 14, 2016
1 parent f04bbef commit 91a0d89
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pylint_odoo/checkers/modules_odoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,11 @@ def _check_rst_syntax_error(self):
os.path.join(self.module_path, rst_file))
for error in errors:
msg = error.full_message
res = re.search(r'No directive entry for "([\w|\-]+)"|'
r'Unknown directive type "([\w|\-]+)"', msg)
res = re.search(
r'No directive entry for "([\w|\-]+)"|'
r'Unknown directive type "([\w|\-]+)"|'
r'No role entry for "([\w|\-]+)"|'
r'Unknown interpreted text role "([\w|\-]+)"', msg)
# TODO: Add support for sphinx directives after fix
# https://github.com/twolfson/restructuredtext-lint/issues/29
if res:
Expand Down
8 changes: 8 additions & 0 deletions pylint_odoo/test_repo/broken_module2/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ Developer's guide

guides/concepts.rst
guides/code_overview.rst

******************
Indices and tables
******************

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

0 comments on commit 91a0d89

Please sign in to comment.