blob: bc4d54c81df0820da6cf7717f7bb8c915bf4e110 [file] [log] [blame]
Hugo L'Hostis8c7cb642021-04-22 12:12:05 +01001########
2Cppcheck
3########
4cppcheck is a tool used to check a number of checks on the codebase. The list
5of all the checks is available at :
6https://sourceforge.net/p/cppcheck/wiki/ListOfChecks/
7
8******************
9tool configuration
10******************
11
12This tool is using the pre-existing cppcheck configurations
13(arm-cortex-m.cfg/tfm-suppress-list.txt), implementing the developer's
14guidelines, as used by the TF-M CI.
15
16The suppression list contains:
17
18 - Files that are not guaranteed to comply with the TF-M rules.
19 - Files under directories that correspond to external libraries.
20
21The files utils.sh, arm-cortex-cfg.cfg and tfm-suppress-list.txt were copied
22from the CI scripts repo :
23https://review.trustedfirmware.org/admin/repos/ci/tf-m-ci-scripts
24
25***************
26Using this tool
27***************
28
29This script must be launched from the TFM repo and the reports will be stored
30under checks_reports if the xml option is selected. The possible parameters are
31the following:
32
33 - '-h' display the help for this tool
34 - '-r' select the raw output option. If this parameter is selected, the
35 output will be displayed in the console instead of stored in an xml file
36
37
38
39--------------
40
41*Copyright (c) 2021, Arm Limited. All rights reserved.*
42*SPDX-License-Identifier: BSD-3-Clause*