def _build_linters(self): underscore_linter = UnderscoreTemplateLinter() python_linter = PythonLinter() javascript_linter = JavaScriptLinter( underscore_linter=underscore_linter) mako_linter = MakoTemplateLinter(javascript_linter=javascript_linter, python_linter=python_linter) return [ mako_linter, underscore_linter, javascript_linter, python_linter ]
'.pycharm_helpers', 'common/static/xmodule/modules', 'common/static/bundles', 'perf_tests', 'node_modules', 'reports/diff_quality', 'scripts/xsslint', 'spec', 'test_root', 'vendor', ) UNDERSCORE_SKIP_DIRS = SKIP_DIRS + ('test',) UNDERSCORE_LINTER = UnderscoreTemplateLinter( skip_dirs=UNDERSCORE_SKIP_DIRS ) JAVASCRIPT_SKIP_DIRS = SKIP_DIRS + ('i18n',) JAVASCRIPT_LINTER = JavaScriptLinter( underscore_linter=UNDERSCORE_LINTER, javascript_skip_dirs=JAVASCRIPT_SKIP_DIRS, ) PYTHON_SKIP_DIRS = SKIP_DIRS + ('tests', 'test/acceptance') PYTHON_LINTER = PythonLinter( skip_dirs=PYTHON_SKIP_DIRS )