Bug 1231720 - Log when ESLint finishes running. r=nalexander

This commit is contained in:
Felipe Gomes 2015-12-10 14:31:14 -05:00
parent 2703258570
commit ae6ed21c61

View File

@ -200,11 +200,16 @@ class MachCommands(MachCommandBase):
'--ext', ext, # This keeps ext as a single argument.
] + args
return self.run_process(cmd_args,
success = self.run_process(cmd_args,
pass_thru=True, # Allow user to run eslint interactively.
ensure_exit_code=False, # Don't throw on non-zero exit code.
require_unix_environment=True # eslint is not a valid Win32 binary.
)
self.log(logging.INFO, 'eslint', {'msg': ('No errors' if success == 0 else 'Errors')},
'Finished eslint. {msg} encountered.')
return success
def eslint_setup(self, update_only=False):
"""Ensure eslint is optimally configured.