blob: 63c51b0c22165dc983cb734a1d9527658715c578 [file] [log] [blame]
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02001#
2# Configure how the Linux checkpatch script should be invoked in the context of
3# the TFTF source tree.
4#
5
6# This is not Linux so don't expect a Linux tree!
7--no-tree
8
9# This clarifes the lines indications in the report.
10#
11# E.g.:
12# Without this option, we have the following output:
13# #333: FILE: drivers/arm/gic/arm_gic_v2v3.c:160:
14# So we have 2 lines indications (333 and 160), which is confusing.
15# We only care about the position in the source file.
16#
17# With this option, it becomes:
18# drivers/arm/gic/arm_gic_v2v3.c:160:
19--showfile
20
21# Don't show some messages like the list of ignored types or the suggestion to
22# use "--fix" or report changes to the maintainers.
23--quiet
24
25#
26# Ignore the following message types, as they don't necessarily make sense in
27# the context of the TFTF.
28#
29
30# The Linux kernel expects the SPDX license tag in the first line of each file.
31# We don't follow this convention here.
32--ignore SPDX_LICENSE_TAG
33
34# COMPLEX_MACRO generates false positives.
35--ignore COMPLEX_MACRO
36
37# TFTF commit messages are expected to have a Gerrit Change-Id.
38--ignore GERRIT_CHANGE_ID
39
40# FILE_PATH_CHANGES reports this kind of message:
41# "added, moved or deleted file(s), does MAINTAINERS need updating?"
42# We do not use this MAINTAINERS file process in TFTF.
43--ignore FILE_PATH_CHANGES
44
45# AVOID_EXTERNS reports this kind of messages:
46# "externs should be avoided in .c files"
47# We don't follow this convention in TFTF.
48--ignore AVOID_EXTERNS
49
50# NEW_TYPEDEFS reports this kind of messages:
51# "do not add new typedefs"
52# We allow adding new typedefs in TFTF.
53--ignore NEW_TYPEDEFS
54
55# Avoid "Does not appear to be a unified-diff format patch" message
56--ignore NOT_UNIFIED_DIFF
57
58# VOLATILE reports this kind of messages:
59# "Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt"
60# We allow the usage of the volatile keyword in TFTF.
61--ignore VOLATILE