File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # Copyright (c) 2018 The Bitcoin Core developers
4
+ # Distributed under the MIT software license, see the accompanying
5
+ # file COPYING or http://www.opensource.org/licenses/mit-license.php.
6
+ #
7
+ # Make sure only lowercase alphanumerics (a-z0-9), underscores (_),
8
+ # hyphens (-) and dots (.) are used in source code filenames.
9
+
10
+ export LC_ALL=C
11
+
12
+ EXIT_CODE=0
13
+ OUTPUT=$( git ls-files -- " *.cpp" " *.h" " *.py" " *.sh" | grep -vE ' ^[a-z0-9_./-]+$' | grep -vE ' src/(secp256k1|univalue)/' )
14
+ if [[ ${OUTPUT} != " " ]]; then
15
+ echo " Use only lowercase alphanumerics (a-z0-9), underscores (_), hyphens (-) and dots (.)"
16
+ echo " in source code filenames:"
17
+ echo
18
+ echo " ${OUTPUT} "
19
+ EXIT_CODE=1
20
+ fi
21
+ exit ${EXIT_CODE}
You can’t perform that action at this time.
0 commit comments