DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (1e1617c67238)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
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


def test_no_files_to_lint(lint, config, paths):
    ret = lint(paths('nolint'), root=build.topsrcdir)
    assert ret == []


if __name__ == '__main__':
    mozunit.main()