diff --git a/PRESUBMIT.cfg b/PRESUBMIT.cfg new file mode 100644 index 0000000000..91b4973415 --- /dev/null +++ b/PRESUBMIT.cfg @@ -0,0 +1,6 @@ +[Hook Overrides] +cargo_clippy_check: true + +[Hook Overrides Options] +cargo_clippy_check: + --project=.:bin/preupload-clippy diff --git a/bin/preupload-clippy b/bin/preupload-clippy new file mode 100755 index 0000000000..ea32f93de4 --- /dev/null +++ b/bin/preupload-clippy @@ -0,0 +1,8 @@ +#!/bin/bash + +# Copyright 2020 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +SCRIPT_PATH="$(dirname "$(realpath "$0")")" +exec "${SCRIPT_PATH}"/clippy --use-cache "$@"