RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

cppcheck: add rationale to suppressed warnings

Open N8Fear opened this issue 12 years ago • 12 comments

All suppressions for warnings/errors in cppcheck should be annotated with a rationale why the warning/error is suppressed instead of being fixed.

Also it would make sense to add a statement about this to the coding conventions in the wiki, if there is consent about this.

N8Fear avatar Oct 28 '14 20:10 N8Fear

:+1:

OlegHahm avatar Oct 29 '14 00:10 OlegHahm

I've added a section about Travis (that surely can be fleshed out more) with info on cppcheck suppression to https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions

N8Fear avatar Oct 29 '14 19:10 N8Fear

Great!

OlegHahm avatar Oct 30 '14 08:10 OlegHahm

What @OlegHahm said!

LudwigKnuepfer avatar Oct 30 '14 11:10 LudwigKnuepfer

@N8Fear can we close this issue?

PeterKietzmann avatar Mar 04 '15 13:03 PeterKietzmann

git grep ccpcheck-suppress still gives a big number of unexplained suppressions.

OlegHahm avatar Mar 05 '15 15:03 OlegHahm

Sure? Some of them are rationalized in the next line. Better check with git grep -A 1 ccpcheck-suppress

miri64 avatar Mar 05 '15 18:03 miri64

Actually I checked with -C 1. Same result.

OlegHahm avatar Mar 05 '15 19:03 OlegHahm

Still a lot unexplained.

miri64 avatar Oct 14 '16 06:10 miri64

Quick

git grep -C 1 cppcheck-suppress

revealed some of these still to be uncommented (and not in line with #6024)

miri64 avatar Oct 10 '17 18:10 miri64

Also a checker script that checks the format introduced in #6024 in the static tests would also be great.

miri64 avatar Oct 10 '17 18:10 miri64

How are we doing here?

kYc0o avatar Jan 29 '18 15:01 kYc0o