Commit c29da374 authored by Alex Light's avatar Alex Light
Browse files

Add a cpplint preupload hook.

This runs cpplint.py over modified .cc and .h files before uploading
them to gerrit. This generally takes ~1-2 seconds based on my testing
and the longest one I've been able to find was ~10 seconds.

Test: PREUPLOAD_COMMIT=d9911eec ./tools/cpplint_presubmit.py
Test: PREUPLOAD_COMMIT=40528478 ./tools/cpplint_presubmit.py
Test: PREUPLOAD_COMMIT=9763f2eb ./tools/cpplint_presubmit.py
Test: Manual

Bug: 35810246
Bug: 36855589

Change-Id: Ie0ed9136bdde15d78f2aa40c73fef97e12d12dda
parent 02311bd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment