зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1568535 - Output relative paths in mach static-analysis check, r=andi
Differential Revision: https://phabricator.services.mozilla.com/D39197 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
08c32bbebe
Коммит
6621e16e02
|
@ -79,6 +79,10 @@ class StaticAnalysisMonitor(object):
|
||||||
self._warnings_database = WarningsDatabase()
|
self._warnings_database = WarningsDatabase()
|
||||||
|
|
||||||
def on_warning(warning):
|
def on_warning(warning):
|
||||||
|
|
||||||
|
# Output paths relative to repository root
|
||||||
|
warning['filename'] = os.path.relpath(warning['filename'], srcdir)
|
||||||
|
|
||||||
self._warnings_database.insert(warning)
|
self._warnings_database.insert(warning)
|
||||||
|
|
||||||
self._warnings_collector = WarningsCollector(on_warning, objdir=objdir)
|
self._warnings_collector = WarningsCollector(on_warning, objdir=objdir)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче