Riccardo
62e2f5caac
update cppcheck commit
2019-10-15 13:57:36 -07:00
rbiasini
fac0277169
Misra update ( #280 )
...
* Updated cppcheck ref. New rules to be fixed
* changed 2 MACRO names that had more than 31 characters in common
* Fix newly popped 10.4: same type on arithmetic ops
* Fix 18.4: operators should not be applied to an expression
* ensure a NULL pointer isn't dereferenced
2019-09-27 17:18:02 -07:00
Riccardo
578b95ee33
Misra table of coverage added
2019-09-27 11:11:16 -07:00
Riccardo
c597dcc897
VERSION update after health packet changes and minor misra test change
2019-07-12 12:04:21 -07:00
rbiasini
01072bec0b
Misra 11.x: pointer usage. ( #250 )
...
* RDLR, RDHR gone from safety
* back at not failing misra safety
* fix safety tests
* did not mean this
* Use get-bytes in pedal too
* Ignore Misra 11.5 and Fix 11.8 violaitons
* Fix 11.3 violations
* Neglect Misra 11.4, fix pointer issue in bootstub and rutn on Werror for pedal builds
* Fix Misra 11.6: can't assign number to void pointer
* Fix test after changing honda_moving name
* for loop is better
* Fix bugs from fbck
2019-07-10 20:56:03 -07:00
Riccardo
ce1daf2062
Misra check only done for EON config
2019-07-10 12:02:50 -07:00
Riccardo
04756a037f
Turning back Misra check: unvoluntarily change
2019-07-09 16:18:44 -07:00
Riccardo
b983cc8fe6
Re-wrote test_misra.sh
2019-07-09 14:37:26 -07:00
Riccardo
4be858224f
Update cppcheck commit and pass predefined params to avoid impossible combinations of configs
2019-07-08 18:20:00 -07:00
Riccardo
1cd34e5645
Explicitly set the define and undefine for unknown configs in misra checks
2019-07-08 15:32:55 -07:00
rbiasini
1f40d1e6a6
Misra pedal ( #245 )
...
* Fix misra on pedal
2019-07-07 16:59:31 -07:00
Riccardo
a4554e3e69
Ignore advisory Misra 19.2: the union keyword should not be used
2019-07-07 16:31:06 -07:00
Riccardo
fc8b9e49bd
Cppcheck: also check pedal
2019-07-04 02:58:17 -07:00
Riccardo
c6ec11e17f
fixed tab
2019-06-17 20:06:14 -07:00
Riccardo
0a77dffc9a
change test and see if we get a failure now
2019-06-17 19:50:03 -07:00
Riccardo
6cd5a4fcd0
Update cppcheck commit in test_misra.sh
2019-06-17 18:54:05 -07:00
Riccardo
05487e29d7
More complete Misra check on safety code (better than running cppcheck on sfaety.h only, with broken dependencies)
2019-06-17 14:27:01 -07:00
Riccardo
37576ef3b4
Allow inline suppress for the cppcheck
2019-06-12 13:16:23 -07:00
Riccardo
55679532aa
Fix Misra 20.1 violations: Moved safety declarations in its own header and qdded optional input to run misra tests for safety code only.
2019-06-12 06:35:47 -07:00
Riccardo
38f4288f1e
running misra also specifically for safety code
2019-06-10 21:58:01 -07:00
Riccardo
274f9ce06d
Misra: separately save the cppcheck output in its own artifact
2019-06-07 15:39:30 -07:00
Riccardo
20171596f7
update cppcheck ref to have more comprehensive misra checks
2019-06-06 16:00:53 -07:00
rbiasini
1aa00c95ee
Misra c2012 ( #192 )
...
* Started making panda misra compliant: this fixes some of 12.1 warnings
* Also added a regression test for strict compiler warning
2019-05-20 22:13:45 -07:00