mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
Currently pathutils.filterpaths computes some extra paths that the underlying linter should try to exclude if it can. It sets these on lintargs['exclude'], and relies on the fact that it was passed by reference to work. However, it seems like pytest does some magic under the hood that prevents this value from being propagated back. It will also fail if 'filterpaths' was invoked in a subprocess. It's much simpler and cleaner to pass this value back directly, rather than rely on a reference. Differential Revision: https://phabricator.services.mozilla.com/D8850