summaryrefslogtreecommitdiff
path: root/PREUPLOAD.cfg
blob: d43a1e90bafdc6dbc76747e984f624d5db506cb3 (plain)
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
[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}

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}