mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 06:08:24 +02:00
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
15 lines
297 B
Python
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()
|