1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

26 Commits

Author SHA1 Message Date
Martine Lenders
ca32d7704f
cppcheck: output all annotations as error on script error
`cppcheck` has a non-zero exit code even on warnings, so to not confuse
contributors, align the annotation output with that.
2021-11-04 15:43:02 +01:00
Martine Lenders
1c310c6926
dist/tools/cppcheck: annotate errors in Github Action 2021-01-11 16:58:47 +01:00
smlng
3f811c44db cppcheck: extend cppcheck README example
Extend the cppcheck suppression example to show that each suppression
should have a reason describing the intentional suppression of a
cppcheck warning or error.
2018-09-25 12:03:58 +02:00
smlng
1adb5852ec tools: allow static checks to be run from any directory 2018-06-06 14:03:31 +02:00
Gaëtan Harter
ef13d91bed
tools/check: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-14 15:47:53 +02:00
Lucas Jenss
556baf07a1 dist/tools/cppcheck: Allow individual files to be cppchecked 2017-10-10 10:59:02 -07:00
9b045c127f dist/tools/cppcheck: use changed_files.sh 2017-05-11 12:12:54 +02:00
1ec3c0a57a Revert "dist: cppcheck: switch back to 8 jobs"
This reverts commit ec97a94626.

(The commit seems to cause trouble. Furthermore, there's no reference to
either the issue or how it was solved in the original commit message).
2017-04-25 19:31:02 +02:00
Oleg Hahm
ec97a94626 dist: cppcheck: switch back to 8 jobs 2017-04-14 14:36:17 +02:00
Neil Jones
65911f3499 cppcheck: Don't Run cppcheck on ASM files.
cppcheck doesn't understand ASM style comments beginning with '#' and tries to
parse them:

I get this error:
 cpu/mips_pic32_common/reset_mod.S:84: error (syntaxError): syntax error
from this line:
 beqz s1, init_resources # Branch if this is NOT an NMI exception.

If I place the comment inside C-style comments cppcheck passes, ie

 beqz s1, init_resources # /*Branch if this is NOT an NMI exception.*/

Note current in-tree ASM files fail cppcheck (they must have been added before
this check) for example:

cpu/lpc2387/asmfunc.s
2017-03-29 15:14:43 +01:00
Hauke Petersen
0fb3ee3b9b dist/cppcheck: exclude only vendor headers 2017-03-07 08:55:15 +01:00
Joakim Nohlgård
9ed393426e dist/tools/cppcheck: Add missing hpp file name pattern 2017-02-16 17:09:25 +01:00
Matthias Miehl
3203a4b6f5 dist/tools/cppcheck: suppress negatives (uninitvar) (#5807) 2016-10-31 22:49:17 +01:00
Ludwig Knüpfer
eda6328e21 documentation: update my name (Ortmann -> Knüpfer) 2015-09-27 18:58:30 +02:00
622acc74e5 dist: tools: cppcheck: exclude saml21 atmel headers from check 2015-05-22 11:47:51 +02:00
Joakim Gebart
e9c567107d all: remove extra blank lines at the end 2015-05-09 09:10:08 +02:00
Ludwig Ortmann
4ebeee7582 dist/tools/cppcheck: add license 2014-11-28 18:05:02 +01:00
Hinnerk van Bruinehsen
ed9834c7ff dist: run cppcheck with only one job (triage #2089) 2014-11-27 08:58:34 +01:00
Ludwig Ortmann
e343f114f4 dist/cppcheck: handle unhandled condition
When no arguments are given at all, the script would shift when there
is nothing to shift. This results in a failure on debian stable:
```
./dist/tools/cppcheck/check.sh: 20: shift: can't shift that many
```
2014-11-21 18:43:26 +01:00
Hinnerk van Bruinehsen
edd948c176 dist: default cppcheck to ignore unusedStructMember 2014-11-19 11:22:42 +01:00
Hinnerk van Bruinehsen
75c02c937a lint: suppress unusedStructMember in vendor files 2014-10-31 01:24:32 +01:00
Ludwig Ortmann
6424ba0665 cppcheck: handle --diff-filter option
Add the possibility to the cppcheck script to pass git's
`--diff-filter` option.
Also improve comments a bit.
2014-10-24 11:40:18 +02:00
Ludwig Ortmann
95a3d48367 SQUASHME: tool -> tools path typo 2014-09-06 16:32:48 +02:00
Ludwig Ortmann
ba854a5423 SQUASHME: add documentation 2014-09-06 11:27:16 +02:00
Ludwig Ortmann
500d6bfa8b SQUASHME: file(line) -> file:line
Addresses https://github.com/RIOT-OS/RIOT/pull/1604#discussion_r16936195
2014-09-01 07:23:25 +02:00
Ludwig Ortmann
e0712ccc84 dist/tools: add cppcheck script
enables easy linting of the whole tree or just one branches changes against
another
2014-08-25 14:53:31 +02:00