Add *.txt and test dir to exclusions

This commit is contained in:
Matt Martz 2016-02-16 16:05:40 -06:00 committed by John Barker
parent cd88cb753c
commit 6bcc5e6f6a

View file

@ -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'))