-
Notifications
You must be signed in to change notification settings - Fork 0
/
PREUPLOAD.cfg
59 lines (54 loc) · 1.93 KB
/
PREUPLOAD.cfg
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[Hook Scripts]
check_generated_tests_up_to_date = tools/test_presubmit.py
hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
# TODO(b/189484095): Port libnativebridge tests to atest and enable in presubmit
# so we don't need the custom runtests script and this check.
check_libnativebridge_test_field = libnativebridge/tests/preupload_check_test_tag.sh ${PREUPLOAD_COMMIT_MESSAGE} ${PREUPLOAD_FILES}
check_expectation_jsons = tools/check_presubmit_json_expectations.sh ${REPO_ROOT} ${PREUPLOAD_FILES}
[Builtin Hooks]
bpfmt = true
clang_format = true
cpplint = true
gofmt = true
[Builtin Hooks Options]
# Enable clang-format in all directories except test/, because there are many
# test Java files with 2 space indent which won't be handled well if they
# change. Unfortunately there is no way to exclude a directory for a builtin
# hook.
clang_format = --commit ${PREUPLOAD_COMMIT} --style file
adbconnection/
artd/
benchmark/
build/
cmdline/
compiler/
dalvikvm/
dex2oat/
dexdump/
dexlayout/
dexlist/
dexoptanalyzer/
disassembler/
dt_fd_forward/
imgdiag/
libartbase/
libartpalette/
libartservice/
libarttools/
libdexfile/
libelffile/
libnativebridge/
libnativeloader/
libprofile/
oatdump/
odrefresh/
openjdkjvm/
openjdkjvmti/
perfetto_hprof/
profman/
runtime/
sigchainlib/
simulator/
tools/
# Cpplint prints nothing unless there were errors.
cpplint = --quiet ${PREUPLOAD_FILES}