-
Notifications
You must be signed in to change notification settings - Fork 0
/
pre-commit
executable file
·27 lines (21 loc) · 1.13 KB
/
pre-commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#################################################################
# #
# Copyright (c) 2020 YottaDB LLC and/or its subsidiaries. #
# All rights reserved. #
# #
# This source code contains the intellectual property #
# of its copyright holder(s), and is made available #
# under a license. If you do not know the terms of #
# the license, please stop and do not read further. #
# #
#################################################################
set -e
# Check copyrights first
tests/copyright.sh
# Check formatting
cargo fmt -- --check
# Do some lint checks using clippy
cargo clippy --no-default-features -- --deny clippy::all
# Previously we had a call to "cargo test" here. But it is a heavyweight task to run all tests for every commit
# Since the pipeline does run "cargo test", that is considered good enough and the "cargo test" call here has been removed.