Ignore Folders without TF-M Code in Static Checks
Following folders do not include TF-M code:
platform/ext
bl2/ext
docs
lib
tools
These folders need to be ignored in cppcheck and checkpatch.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I602a365f64f45688e9259062113bf23aa8e881c7
diff --git a/run-checkpatch.sh b/run-checkpatch.sh
index 2661332..1ca32e4 100755
--- a/run-checkpatch.sh
+++ b/run-checkpatch.sh
@@ -1,6 +1,6 @@
#!/bin/bash
#-------------------------------------------------------------------------------
-# Copyright (c) 2018-2019, Arm Limited and Contributors. All rights reserved.
+# Copyright (c) 2018-2021, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -24,7 +24,7 @@
##
#This is needed for Doxygen for now.
#!string SKIP_PATHS;
-SKIP_PATHS='./build-\*:./test/\*:./platform/\*:*/tz_\*:./lib/ext/\*:./platform/ext/\*:./bl2/ext/\*'
+SKIP_PATHS='./build-\*:./platform/\*:*/tz_\*:./lib/\*:./platform/ext/\*:./bl2/ext/\*:./docs/\*:./tools/\*'
##@var TFM_DIRECTORY_NAME
##@brief Default path to tf-m source code.