Skip to content
Browse files

Fixed validation issues

  • Loading branch information...
1 parent 06fa5f3 commit 77560c86bbd5e5eb4ac3b6efe8a6f11ee3e07d5a @miohtama committed Apr 9, 2012
Showing with 10 additions and 7 deletions.
  1. +0 −4 README.rst
  2. +10 −3 vvv/scripts/validaterst.py
View
4 README.rst
@@ -41,10 +41,6 @@ Documentation
Please see the `VVV documentation on readthedocs.org <http://readthedocs.org/docs/vvv/en/latest/>`_
-Bad block::
-
-Foobar
-
Author
===============
View
13 vvv/scripts/validaterst.py
@@ -27,12 +27,16 @@
# 'No directive entry for "automodule" in module "docutils.parsers.rst.languages.en".\nTrying "automodule" as canonical directive name.'
# <string>:23: (ERROR/3) Unknown interpreted text role "ref"
+# 'No role entry for "doc" in module "docutils.parsers.rst.languages.en".\nTrying "doc" as canonical role name.'
def filter_message(message):
"""
Return True if message is valid output
"""
# <string>:7: (ERROR/3) Unknown directive type "automodule".
- if "No directive entry for" in message or "Unknown directive type" in message or "Unknown interpreted text role" in message:
+ if "No directive entry for" in message or "Unknown directive type" in message \
+ or "Unknown interpreted text role" in message \
+ or "No role entry for" in message:
+
return False
return True
@@ -45,10 +49,13 @@ def system_message(self, level, message, *children, **kwargs):
if filter_message(message):
+
result = orignal_system_message(self, level, message, *children, **kwargs)
- # Collect to internal message log
- reports.append(message)
+ if level >= self.WARNING_LEVEL:
+
+ # Collect to internal message log
+ reports.append(message)
else:
# We don't want to see the filtered messages

0 comments on commit 77560c8

Please sign in to comment.
Something went wrong with that request. Please try again.