1
0
Fork 0
Commit graph

667 commits

Author SHA1 Message Date
temi54c1l8
f6535def56 CO_fifo: static analysis: increment/decrement operation combined with other operation with side-effects [MISRA 2012 Rule 13.3, advisory] 2024-06-26 13:13:54 +02:00
temi54c1l8
376d86a5a4 CO_fifo: static analysis: side effects on right hand of logical operator, '||' [MISRA 2012 Rule 13.5, required]
(cherry picked from commit ea89548ebae934dc3acbcfd6fea15107389f8fd7)
2024-06-26 13:02:51 +02:00
temi54c1l8
c46bb96292 CO_fifo: static analysis: side effects on right hand of logical operator, '&&' [MISRA 2012 Rule 13.5, required]
(cherry picked from commit bd20c9d7dcf935bc81fb70d0a82df14f9c4442d5)
2024-06-26 13:02:36 +02:00
Janez
7850623700
Update CO_PDO.c: make eventTime, inhibitTime and syncStartValue optional in object dictionary. 2024-06-26 12:40:17 +02:00
Janez
3e08dd45d5
Update CO_Emergency.h: fix doxygen documentation comments 2024-06-26 12:27:02 +02:00
Janez
c643683b24
Update CO_ODinterface.c: fix memcpy boundary verification 2024-06-26 12:15:30 +02:00
temi54c1l8
11771f889c CO_fifo: fix doxygen documentation comments 2024-06-26 11:45:23 +02:00
temi54c1l8
4bef46fb46 CO_fifo: static analysis: refactoring CO_fifo_readToken for loss of sign 2024-06-26 11:43:41 +02:00
temi54c1l8
d96ac7719e CO_fifo: static analysis: body should be a compound statement [MISRA 2012 Rule 15.6, required] 2024-06-26 11:00:19 +02:00
temi54c1l8
29156e8ed7 CO_fifo: static analysis: refactoring changed enum with define to be able to use bitwise operators 2024-06-26 10:48:52 +02:00
temi54c1l8
1e9b6da4f3 CO_fifo: static analysis: ignoring return value of functions [MISRA 2012 Directive 4.7, required], [MISRA 2012 Rule 17.7, required] 2024-06-26 10:33:50 +02:00
temi54c1l8
5cf08656e1 Fix commit 29bb7992d2 won't respond with abort message, if segmented transfer is not supported 2024-06-26 08:50:45 +02:00
temi54c1l8
f7c7f9c104 Add more static analysis and MISRA.md
(cherry picked from commit ad337c3e9c4e879721ec432bc9a5d9a84a53c573)

# Conflicts:
#	CANopen.c
2024-06-24 17:46:34 +02:00
temi54c1l8
8cccf6f379 minor fix after static analysis 2024-06-14 13:46:21 +02:00
temi54c1l8
f9d8bdeff3 static analysys: local variable 'data' could be pointer to const [MISRA 2012 Rule 8.13, advisory]
refactory CO_CANrxMsg_readData return const
2024-06-14 11:27:22 +02:00
temi54c1l8
d2770c4917 CO_SDOserver: static analysis: named parameter 'calculateCrc' of 'non-virtual' function 'readFromOd' not subsequently referenced [MISRA 2012 Rule 2.7, advisory] 2024-06-14 11:15:41 +02:00
temi54c1l8
c41aa14680 CO_PDO: static analysis: named parameter 'timerNext_us' of 'non-virtual' function 'CO_RPDO_process' not subsequently referenced [MISRA 2012 Rule 2.7, advisory] 2024-06-14 11:09:31 +02:00
temi54c1l8
8cc4dc1601 CO_HBconsumer: static analysis: local variable 'data' could be pointer to const [MISRA 2012 Rule 8.13, advisory] 2024-06-14 11:03:51 +02:00
temi54c1l8
41c9e742f8 CO_Emergency: static analysis: named parameter 'timeDifference_us' of 'non-virtual' function 'CO_EM_process' not subsequently referenced [MISRA 2012 Rule 2.7, advisory] 2024-06-14 10:59:43 +02:00
temi54c1l8
cac0f78b10 CO_LSSslave: static analysis: ANSI/ISO minimum translation limit of 31 'significant characters in an external identifier' exceeded, processing is unaffected 2024-06-14 10:42:39 +02:00
temi54c1l8
29bb7992d2 CO_SDOserver: static analysis: enum constants not used within default switch 2024-06-14 09:49:21 +02:00
temi54c1l8
cbf3df74e9 CO_SDOserver: static analysis: result of assignment operator used in right operand to '=' operator [MISRA 2012 Rule 13.4, advisory] 2024-06-14 09:47:16 +02:00
temi54c1l8
42cea36f3b CO_LSSmaster and CO_LSSslave: static analysis: repeated include file 'string.h' 2024-06-14 09:12:52 +02:00
temi54c1l8
06834c1d14 O_SDOserver: static analysis: side effects on right hand of logical operator, '&&' [MISRA 2012 Rule 13.5, required]
because SDO->state is volatile
2024-06-14 09:02:17 +02:00
temi54c1l8
ab26145597 CO_Emergency: static analysis: side effects on right hand of logical operator, '&&' [MISRA 2012 Rule 13.5, required]
because em->CANtxBuff->bufferFull is volatile
2024-06-14 08:56:03 +02:00
temi54c1l8
35cefe09c3 CO_SDOserver: static analysis: cannot cast 'unsigned8' to wider essential type 'unsigned32' [MISRA 2012 Rule 10.8, required] 2024-06-14 08:52:07 +02:00
temi54c1l8
4cef8205c8 CO_ODinterface: static analysis: fix cast to correct address assignment and 'OD_IO_t::write' is potentially uninitialized [MISRA 2012 Rule 9.1, mandatory] 2024-06-14 08:43:01 +02:00
temi54c1l8
75909f4fa2 CO_ODinterface: static analysis: implicit conversion of enum 'ODR_t' to integral type 'int' 2024-06-14 08:29:04 +02:00
temi54c1l8
8af3ef3c6b CO_SDOserver: static analysis: taking address of array 2024-06-14 08:26:34 +02:00
temi54c1l8
284ba1a41f CO_LSSslave: static analysis: remove cast unnecessary 2024-06-14 08:20:26 +02:00
temi54c1l8
6990e11e7f CO_LSSslave: static analysis: an unsigned value and a signed value cannot be used together as operands to - [MISRA 2012 Rule 10.4, required] 2024-06-14 08:13:08 +02:00
temi54c1l8
d4b4d29f0b CO_LSSmaster and CO_LSSslave: static analysis: cannot assign 'enum' to different essential type [MISRA 2012 Rule 10.3, required]
refactoring convert enum to macro
2024-06-14 08:12:08 +02:00
temi54c1l8
47461cf08a CO_LSSmaster: static analysis: cannot assign 'enum' to different essential type [MISRA 2012 Rule 10.3, required]
refactoring convert enum to macro
2024-06-13 16:30:10 +02:00
temi54c1l8
79aa366627 CO_LSSmaster: style changed , add space on if condition 2024-06-13 16:21:12 +02:00
temi54c1l8
22fe7b9bc6 CO_LSSmaster: static analysis: statement or comment should appear in default case [MISRA 2012 Rule 16.1, required], [MISRA 2012 Rule 16.4, required] 2024-06-13 16:12:13 +02:00
temi54c1l8
6ebd390160 CO_LSSmaster: departure from MISRA switch syntax: missing break or throw from switch-case [MISRA 2012 Rule 16.1, required]
refactoring change switch to if condition
2024-06-13 16:10:56 +02:00
temi54c1l8
bad7521985 CO_LSSmaster: static analysis: no 'else' at end of 'if ... else if' chain [MISRA 2012 Rule 15.7, required] 2024-06-13 16:07:28 +02:00
temi54c1l8
5a62e186b9 CO_LSSmaster: static analysis: missing unconditional break from final switch case [MISRA 2012 Rule 16.1, required], [MISRA 2012 Rule 16.3, required] 2024-06-13 16:04:10 +02:00
temi54c1l8
29673b0304 CO_LSSmaster: static analysis: an unsigned value and a signed value cannot be used together as operands [MISRA 2012 Rule 10.4, required] 2024-06-13 15:13:01 +02:00
temi54c1l8
f322d42c2c CO_LSSmaster: static analysis: ignoring return value of function 'CO_LSSmaster_FsScanInitiate' [MISRA 2012 Directive 4.7, required], [MISRA 2012 Rule 17.7, required] 2024-06-13 15:09:30 +02:00
temi54c1l8
f54f919c1c CO_LSSmaster: static analysis: use of modifier or type 'int' outside of a typedef [MISRA 2012 Directive 4.6, advisory] 2024-06-13 15:07:55 +02:00
temi54c1l8
5907aa27cf CO_storageEeprom: static analysis: unsigned integer literal without a 'U' suffix [MISRA 2012 Rule 7.2, required] 2024-06-13 15:03:54 +02:00
temi54c1l8
2f8f4395cf CO_storage: static analysis: refactoring OD_extension_init with ignore return value because verify arguments at function entry 2024-06-13 15:01:19 +02:00
temi54c1l8
d0718824f2 CO_storage: static analysis: body should be a compound statement [MISRA 2012 Rule 15.6, required] 2024-06-13 14:55:36 +02:00
temi54c1l8
d64f0dcc41 CO_LSSslave: static analysis: taking address of array 2024-06-13 14:50:32 +02:00
temi54c1l8
f1e68448c1 CO_LSSslave: static analysis: unsigned integer literal without a 'U' suffix [MISRA 2012 Rule 7.2, required] 2024-06-13 14:48:23 +02:00
temi54c1l8
cd1f389719 CO_LSSslave: static analysis: cannot assign 'enum' to different essential type [MISRA 2012 Rule 10.3, required] 2024-06-13 14:46:02 +02:00
temi54c1l8
08e7903332 CO_LSSslave: static analysis argument 1 is not compatible with argument 2 in call to function 'memcpy' 2024-06-13 14:41:34 +02:00
temi54c1l8
2d03662a23 CO_LSSslave: static analysis: statement or comment should appear in default case [MISRA 2012 Rule 16.1, required], [MISRA 2012 Rule 16.4, required] 2024-06-13 14:37:28 +02:00
temi54c1l8
5337877ac7 CO_SRDO: static analysis: cannot assign 'enum (OD_attributes_t)' to different essential type 'unsigned8' [MISRA 2012 Rule 10.3, required] 2024-06-13 14:29:24 +02:00