зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1544208 - inform the user who tries to use `mach static-analysis check ...` of when there are no files eligible for analysis. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D28032 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
466dc4b001
Коммит
8d5f50af08
|
@ -1846,6 +1846,9 @@ class StaticAnalysis(MachCommandBase):
|
||||||
total = total + 1
|
total = total + 1
|
||||||
|
|
||||||
if not total:
|
if not total:
|
||||||
|
self.log(logging.INFO, 'static-analysis', {},
|
||||||
|
"There are no files eligible for analysis. Please note that 'header' files "
|
||||||
|
"cannot be used for analysis since they do not consist compilation units.")
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
cwd = self.topobjdir
|
cwd = self.topobjdir
|
||||||
|
|
Загрузка…
Ссылка в новой задаче