cros lint: Do not error out if no files provided.
The "cros lint" command is used as a repo upload hook, and in some cases
there are no files provided for a commit (if the commit only deletes
files). This change makes "cros lint" accept a lack of arguments
without complaint, only issuing a warning for any human looking at the
TEST=`cros lint` does not fail, but issues warning
TEST=`cros lint scripts/cbuildbot.py` still runs lint
TEST=Creating a CL that deletes a file after this one and seeing if repo
will upload it.
Tested-by: Matt Tennant <firstname.lastname@example.org>
Reviewed-by: David James <email@example.com>
1 file changed