dzid26
310f1aa493
cppcheck with --project
...
CI: test misra with RELEASE=1
Generates compile db without ALLOW_DEBUG
(cherry picked from commit 0c67cebff8
)
2024-09-22 21:10:16 -07:00
Maxime Desroches
ed831773ea
misra21.15 ( #2030 )
...
* cast
* remove suppression
* make it more explicit
2024-09-19 10:35:11 -07:00
Maxime Desroches
ceb088ac4e
misra12.2 ( #2028 )
...
* 12.2
* remove supression
* new stm
2024-09-18 11:33:12 -07:00
dzid26
6f0d1efbd9
stricter misra config check - prevent quiet bail out
2024-09-05 21:49:30 -07:00
Adeeb Shihadeh
160ea08e8f
misra: bump to cppcheck 2.15.0 ( #2008 )
...
* misra: bump to latest cppcheck
* update checkers
2024-08-31 13:09:58 -07:00
Andrei Radulescu
0a0912234e
update bash scripts to #!/usr/bin/env bash ( #1987 )
...
* update bash shebang for better compatibility including macOS
* can't have anything after #bash
2024-08-26 17:25:15 -07:00
Adeeb Shihadeh
c4e75ee89c
remove cereal dependence ( #2000 )
...
* remove cereal
* rm more shit
* add back make
* python3
* python3
* fix that
* put that back
* rename
* fix that
* can't move it
2024-08-18 11:40:54 -07:00
dzid26
4df996cfd7
Cppcheck checklist bugfix ( #1969 )
...
* Fix cppcheck checklist diff
* cppcheck already has exitcode=2
2024-06-04 10:24:51 -07:00
dzid26
b6b8144523
misra mutations test - git diff error fix ( #1964 )
...
fix misra mutations - don't run git diff in temp folder
2024-06-03 22:31:53 -07:00
dzid26
d401ba169c
Enable misra-c2012-1.2 ( #1962 )
...
* misra-c2012-1.2 - allow __typeof__ compiler extension
* explicit c11
2024-05-30 22:13:47 -07:00
dzid26
9fdbb178c4
Generate cppcheck checkers list ( #1960 )
...
* cppcheck checkers list / coverage
* Update tests/misra/test_misra.sh
* Update tests/misra/test_misra.sh
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-05-29 19:42:40 -07:00
dzid26
6ff6733ba3
Cppcheck 2.14 ( #1951 )
...
* enable cppcheck 2.14
* cppcheck: Uninitialized variable
* cppcheck: variableScope
* cppcheck: misra-c2012-21.16
both arguments to memcmp() should be of compatible (matching) essential types
* cppcheck: misra-c2012-11.6
Avoid casting between pointer to void and an arithmetic type.
Refactor bootloader address casting for easier understanding.
* cppecheck 2.14.1
- force cppecheck tag fetch
2024-05-27 21:21:13 -07:00
Justin Newberry
698d17e021
fix inconsistent misra mutation tests ( #1935 )
...
* revert
* fix
2024-04-22 10:28:53 -07:00
Justin Newberry
4d60ae9c62
CI: fix misra mutation tests ( #1934 )
...
* fix that
* skip build, install first
* Revert "skip build, install first"
This reverts commit 01efdb77ce
.
* prune
2024-04-18 17:59:33 -07:00
Adeeb Shihadeh
01c54d1199
enable misra-c2012-11.8 ( #1916 )
...
* fix up harness_config definition
* enable misra-c2012-11.8
2024-03-24 12:38:25 -07:00
Adeeb Shihadeh
418fca3583
enable misra-config checks ( #1879 )
...
* mostly done
* fix rest of misra-config
* do other two in next pr
2024-03-24 12:10:37 -07:00
Adeeb Shihadeh
b08bc43a21
update cppcheck to 2.13.4 ( #1915 )
2024-03-23 18:23:44 -07:00
Adeeb Shihadeh
895a7001c9
Rename stm32fx/ -> stm32f4/ ( #1898 )
...
* Rename stm32fx/ -> stm32f4/
* jungle too
2024-03-11 16:18:56 -07:00
Aryan
4303ae1387
enable misra-c2012-10.6 ( #1811 )
...
* misra-c2012-10.6
* fixed uninitialized data error
* revert false positive
* enable 10.6
* update install.sh
* cleanup
* bug fix
* better fix ?
2024-02-27 10:32:28 -08:00
Aryan
b4442a7c93
enable misra-c2012-10.3 ( #1852 )
...
* enable misra-c2012-10.3
* fix that
* cleanup
* little more
* one more
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-18 11:56:44 -08:00
Adeeb Shihadeh
546db7b73b
set cppcheck platform
2024-02-18 11:43:25 -08:00
Adeeb Shihadeh
6eed036473
(almost) enable cppcheck unusedFunction ( #1875 )
...
* remove some unused
* more
* kinda works
* rest are false positives
* disable for now
* add back exhaustive
2024-02-17 14:16:15 -08:00
Adeeb Shihadeh
997b075349
misra: catch more cppcheck errors that don't change exit code
2024-02-17 12:53:28 -08:00
Adeeb Shihadeh
c076a9f2f6
remove pedal fw ( #1872 )
...
* remove pedal fw
* little more
* one more
* and tests
* rest of it
* little more
* fix linter
* more fix
2024-02-16 22:58:01 -08:00
Aryan
ef68fea95e
Make MISRA results consistent across cppcheck runs ( #1867 )
...
* fixed uninitialized data error
* update ci
* revert old changes
* add styling
* switch misra.py to misra
* remove cache from mutation.py
* works on local
* jobs increased to 8 for mutation test
* works locally
* add env variable back
* removed env variable
* cleanup
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-14 08:35:14 -08:00
Aryan
54459e694e
update cppcheck ( #1859 )
...
* update cppcheck
* Update tests/misra/install.sh
* delete cppcheck cache
* remove misra 5.8 erroors
* fixed uninitialized data error
* suppress misra-c2012-2.3 and misra-c2012-2.4
* reinstate cache to fix mutation test
* rerun for mutation test
* increase timeout for mutation test
* styling
* comments + variable name changes
* Update tests/misra/install.sh
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update install.sh
* more variable name changes
* condition on defining CANPacket_t
* just cherry pick
* fix build
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-10 14:50:36 -08:00
Ruben Medina
3bd980eb39
enable misra-c2012-17.3 ( #1806 )
2024-02-03 23:20:30 -08:00
Adeeb Shihadeh
5ab46d52fd
set cppcheck level to exhaustive ( #1846 )
2024-02-03 15:28:15 -08:00
Adeeb Shihadeh
a5604de24f
ensure cppcheck is always the right version ( #1843 )
2024-01-29 20:19:50 -08:00
Ruben Medina
7d99cb2ef3
enable misra-c2012-8.2 ( #1829 )
2024-01-21 16:19:16 -08:00
Ruben Medina
80731c0aa7
enable misra-constParameterCallback ( #1827 )
2024-01-20 22:22:11 -08:00
Ruben Medina
40671436ee
enable misra-constParameterPointer ( #1826 )
2024-01-20 21:50:42 -08:00
Ruben Medina
8347fa2621
enable misra-c2012-10.5 ( #1825 )
2024-01-20 17:05:12 -08:00
Adeeb Shihadeh
424882e0e7
enable knownConditionTrueFalse in cppcheck
2024-01-20 16:34:40 -08:00
Ruben Medina
229e8bb3a5
enable misra-c2012-12.2 ( #1824 )
...
* enable misra-c2012-12.2
* refactor: use 1UL in all FAULT defs
2024-01-20 16:19:34 -08:00
Hoang Bui
ced1fb3dee
Add more MISRA mutation tests ( #1818 )
...
* 9 added tests
* test speed with new del header
* mypy
* cleanup
* fix error in delete
* random
* change
* works on local
* sorted
* with order
* add pytest randomly
* test with ci
* remove sort
* cleanup
* all files
* no obj
* another bootstub
* fix
* cleanup
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-20 15:52:38 -08:00
Aryan
94c93f6974
enable misra-c2012-21.16 ( #1822 )
2024-01-18 21:54:57 -08:00
Aryan
a902a19ead
enable misra-c2012-21.2 ( #1819 )
...
* enable misra-c2012-21.2
* Add suppressions on memset and memcpy
* revert that
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-18 14:29:01 -08:00
Ruben Medina
5ddc0cf04f
enable misra-c2012-21.14 ( #1810 )
2024-01-18 14:10:17 -08:00
Ruben Medina
7ab3fcf5d2
enable misra-c2012-10.7 ( #1804 )
...
* enable misra-c2012-10.7
* cleanup
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-16 16:52:36 -08:00
Ruben Medina
53efbbbc98
enable misra-c2012-21.1 ( #1809 )
...
* enable misra-c2012-21.1
* comment
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-16 16:46:30 -08:00
Aryan
c118c2887d
enable misra-c2012-2.7 ( #1813 )
...
* cpp-check suppress
* enable misra-c2012-2.7
2024-01-16 16:02:48 -08:00
Hoang Bui
7e8b829fe8
enable misra-c2012-2.3 & misra-c2012-2.4 ( #1801 )
...
* enable misra-c2012-2.3
* enable misrac 2.4
* delete
* revert
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-16 15:59:15 -08:00
Aryan
369fd8c6d5
enable misra-c2012-7.2 ( #1807 )
...
* misra-c2012-7.2
* removed misra-c2012-7.2 from suppressions.txt
2024-01-16 15:49:13 -08:00
Adeeb Shihadeh
bc6eaf358e
enable misra-c2012-14.2 ( #1815 )
...
* enable misra-c2012-14.2 (#1805 )
* true
* while
---------
Co-authored-by: Ruben Medina <samrum@gmail.com>
2024-01-16 15:49:04 -08:00
Adeeb Shihadeh
6334ded34a
Revert "enable misra-c2012-14.2 ( #1805 )"
...
This reverts commit a8bc525d92
.
2024-01-16 15:39:30 -08:00
Ruben Medina
1bdefa9133
enable misra-c2012-8.6 ( #1808 )
2024-01-16 14:17:21 -08:00
Ruben Medina
a8bc525d92
enable misra-c2012-14.2 ( #1805 )
2024-01-15 21:20:39 -08:00
Ruben Medina
8c2b50fa2f
enable misra-c2012-10.1 ( #1803 )
2024-01-15 21:14:52 -08:00
Ruben Medina
07caaf6cfb
enable misra-c2012-5.6 ( #1802 )
2024-01-15 21:14:22 -08:00