~aleteoryx/muditaos

ref: ba591b8115ff4957b85cd4fe483c538b3ef5761d muditaos/config/pre-commit.hook -rwxr-xr-x 704 bytes
ba591b81 — Kuba Kleczkowski [MOS-177] Fix request factory UT are uncommented 2 years ago
                                                                                
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
28
29
#!/bin/bash
# Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved. 
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#run pre-commit hooks

if [[ $# -ne 0 ]]; then
    cat <<-HELP_MSG &>1
	This script doesn't support any parameters.
	
	If you are trying to check style call:
	    ./config/style_check_hook.sh
	
	If you are trying to check license header call:
	    ./config/license_header_check.sh
	HELP_MSG
fi


set -e 
L_GIT_DIR=$(git rev-parse --show-toplevel)
pushd $L_GIT_DIR
echo "=== check copyright ==="
./config/license_header_check.sh --hook
echo "=== check style ==="
./config/style_check_hook.sh
echo "=== binary blobs check ==="
./config/bin_blob_check.sh
popd