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/` still runs lint
TEST=Creating a CL that deletes a file after this one and seeing if repo
will upload it.

Change-Id: Ib5aa5d5b75c881fa664e680a802d61de64245053
Tested-by: Matt Tennant <>
Reviewed-by: David James <>
1 file changed