Add *.txt and test dir to exclusions

reviewable/pr18001/r3
Matt Martz 9 years ago committed by John Barker
parent cd88cb753c
commit 6bcc5e6f6a

@ -27,7 +27,7 @@ from utils import find_globals
import yaml import yaml
BLACKLIST_DIRS = frozenset(('.git',)) BLACKLIST_DIRS = frozenset(('.git', 'test'))
INDENT_REGEX = re.compile(r'([\t]*)') INDENT_REGEX = re.compile(r'([\t]*)')
BASIC_RESERVED = frozenset((r for r in dir(module_utils_basic) if r[0] != '_')) BASIC_RESERVED = frozenset((r for r in dir(module_utils_basic) if r[0] != '_'))
@ -89,7 +89,7 @@ class Validator(object):
class ModuleValidator(Validator): class ModuleValidator(Validator):
BLACKLIST_PATTERNS = ('.git*', '*.pyc', '*.pyo', '.*', '*.md') BLACKLIST_PATTERNS = ('.git*', '*.pyc', '*.pyo', '.*', '*.md', '*.txt')
BLACKLIST_FILES = frozenset(('.git', '.gitignore', '.travis.yml', BLACKLIST_FILES = frozenset(('.git', '.gitignore', '.travis.yml',
'.gitattributes', '.gitmodules', 'COPYING', '.gitattributes', '.gitmodules', 'COPYING',
'__init__.py', 'VERSION', 'test-docs.sh')) '__init__.py', 'VERSION', 'test-docs.sh'))

Loading…
Cancel
Save