Make lint report total app counts as well

This commit is contained in:
Daniel Martí 2014-10-24 22:24:11 +02:00
parent 3829896a8a
commit 5df1d89c8e

View file

@ -171,6 +171,8 @@ def main():
if app['Disabled']: if app['Disabled']:
continue continue
count['app_total'] += 1
for build in app['builds']: for build in app['builds']:
if build['commit'] and not build['disable']: if build['commit'] and not build['disable']:
lastcommit = build['commit'] lastcommit = build['commit']
@ -251,7 +253,8 @@ def main():
if not curid: if not curid:
print print
logging.info("Found a total of %i warnings in %i apps." % (count['warn'], count['app'])) logging.info("Found a total of %i warnings in %i apps out of %i total." % (
count['warn'], count['app'], count['app_total']))
if __name__ == "__main__": if __name__ == "__main__":
main() main()