summaryrefslogtreecommitdiff
path: root/.checkpatch.conf
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-04-27 09:29:20 +0100
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-04-27 13:53:54 +0100
commit90582e4db3f132091c8d4c94834a7df9f08acd23 (patch)
treec0b8009fd5ca32f5cdbaabb5660059f6a82f4887 /.checkpatch.conf
parenta8d9550b527107b85703d7b4e93073e653ae95f7 (diff)
checkpatch: Ignore SPDX_LICENSE_TAG
The Linux kernel expects the SPDX license tag in the first line of each source code file in a comment. In the context of the Linux kernel repository this makes sense because they have many different license headers across their codebase. Moving the tag to the first line of the source code files makes it easier for analyzers to see the license of each file. In the Trusted Firmware, we control all headers and make sure that they follow the same pattern, so this is not needed. Change-Id: Ie19802c7b65b1bdd63da9ece64311aec1f8ad7fe Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to '.checkpatch.conf')
-rw-r--r--.checkpatch.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/.checkpatch.conf b/.checkpatch.conf
index e92b96f3..63bdf7b4 100644
--- a/.checkpatch.conf
+++ b/.checkpatch.conf
@@ -36,6 +36,10 @@
# This is not Linux so don't expect a Linux tree!
--no-tree
+# The Linux kernel expects the SPDX license tag in the first line of each file.
+# We don't follow this in the Trusted Firmware.
+--ignore SPDX_LICENSE_TAG
+
# This clarifes the lines indications in the report.
#
# E.g.: