gecko-dev/tools/lint/test/test_eslint.py
Andrew Halberstadt 7b0d039311 Bug 1509391 - [eslint] Ignore excluded files that mozlint wasn't able to handle automatically r=Standard8
Normally eslint handles its own file exclusions, but there are still some
globally excluded paths that |mach lint| passes in (e.g objdirs and things in
ThirdPartyPaths.txt).

This makes sure that if they show up in the 'config', we handle them.

Differential Revision: https://phabricator.services.mozilla.com/D12712

--HG--
extra : moz-landing-system : lando
2018-11-28 15:16:19 +00:00

15 lines
297 B
Python

import mozunit
from conftest import build
LINTER = 'eslint'
def test_lint_with_global_exclude(lint, config, paths):
config['exclude'] = ['subdir']
results = lint(paths(), config=config, root=build.topsrcdir)
assert len(results) == 0
if __name__ == '__main__':
mozunit.main()