Allow include/exclude options in several checks.

check_no_long_lines, check_no_stray_whitespace, check_no_tabs,
check_tabbed_indents will accept options to include/exclude
specific files from checking.

We can often run better checks (e.g. pylint) than those naive
checks. In such cases, it is a good idea to exclude files from
checks partially (e.g. *.py only), rather than totally opting
out.

BUG=None
TEST=pre-upload_unittest.py

Change-Id: Ie3015e1d30064e3335d677657b7613f0315e4df0
Reviewed-on: https://chromium-review.googlesource.com/564925
Commit-Ready: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Shuhei Takahashi <nya@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
2 files changed