Skip to content

Commit c6ce829

Browse files
committed
EssentialTypes: Update metadata
1 parent cf12521 commit c6ce829

12 files changed

+110
-55
lines changed

c/misra/src/rules/RULE-10-1/OperandsOfAnInappropriateEssentialType.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
/**
22
* @id c/misra/operands-of-an-inappropriate-essential-type
33
* @name RULE-10-1: Operands shall not be of an inappropriate essential type
4-
* @description
4+
* @description Using an inappropriate essential type operand may lead to confusing or unexpected
5+
* behavior when the operand is converted.
56
* @kind problem
67
* @precision very-high
7-
* @problem.severity error
8+
* @problem.severity warning
89
* @tags external/misra/id/rule-10-1
10+
* maintainability
911
* external/misra/obligation/required
1012
*/
1113

c/misra/src/rules/RULE-10-1/PointerTypeOnLogicalOperator.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
/**
22
* @id c/misra/pointer-type-on-logical-operator
33
* @name RULE-10-1: Logical operators should not be used with pointer types
4-
* @description
4+
* @description Using pointer types with logical operators should be avoid because it can cause
5+
* confusing behavior.
56
* @kind problem
67
* @precision very-high
7-
* @problem.severity error
8+
* @problem.severity warning
89
* @tags external/misra/id/rule-10-1
10+
* correctness
911
* external/misra/obligation/required
1012
*/
1113

c/misra/src/rules/RULE-10-2/AdditionSubtractionOnEssentiallyCharType.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/**
22
* @id c/misra/addition-subtraction-on-essentially-char-type
3-
* @name RULE-10-2: Expressions of essentially character type shall not be used inappropriately in addition and
3+
* @name RULE-10-2: Inappropriate use of essentially character type operands in addition and subtraction operations
44
* @description Expressions of essentially character type shall not be used inappropriately in
55
* addition and subtraction operations
66
* @kind problem
77
* @precision very-high
88
* @problem.severity error
99
* @tags external/misra/id/rule-10-2
10+
* maintainability
11+
* correctness
1012
* external/misra/obligation/required
1113
*/
1214

c/misra/src/rules/RULE-10-3/AssignmentOfIncompatibleEssentialType.ql

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/**
22
* @id c/misra/assignment-of-incompatible-essential-type
3-
* @name RULE-10-3: The value of an expression shall not be assigned to an object with a narrower essential type or of a
3+
* @name RULE-10-3: Do not assign to an object with a different essential type category or narrower essential type
44
* @description The value of an expression shall not be assigned to an object with a narrower
55
* essential type or of a different essential type category
66
* @kind problem
7-
* @precision high
8-
* @problem.severity error
7+
* @precision very-high
8+
* @problem.severity warning
99
* @tags external/misra/id/rule-10-3
10+
* maintainability
11+
* correctness
1012
* external/misra/obligation/required
1113
*/
1214

c/misra/src/rules/RULE-10-4/OperandsWithMismatchedEssentialTypeCategory.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/**
22
* @id c/misra/operands-with-mismatched-essential-type-category
3-
* @name RULE-10-4: Both operands of an operator in which the usual arithmetic conversions are performed shall have the
3+
* @name RULE-10-4: Operator with usual arithmetic conversions shall have operands with the same essential type category
44
* @description Both operands of an operator in which the usual arithmetic conversions are performed
55
* shall have the same essential type category
66
* @kind problem
77
* @precision very-high
8-
* @problem.severity error
8+
* @problem.severity warning
99
* @tags external/misra/id/rule-10-4
10+
* maintainability
11+
* correctness
1012
* external/misra/obligation/required
1113
*/
1214

c/misra/src/rules/RULE-10-5/InappropriateEssentialTypeCast.ql

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
/**
22
* @id c/misra/inappropriate-essential-type-cast
33
* @name RULE-10-5: The value of an expression should not be cast to an inappropriate essential type
4-
* @description
4+
* @description Casting the value of an expression to an inappropriate essential type may lead to
5+
* confusing or unexpected behavior in the way the value is converted.
56
* @kind problem
67
* @precision very-high
7-
* @problem.severity error
8+
* @problem.severity warning
89
* @tags external/misra/id/rule-10-5
10+
* maintainability
11+
* correctness
912
* external/misra/obligation/advisory
1013
*/
1114

c/misra/src/rules/RULE-10-6/AssignmentToWiderEssentialType.ql

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
/**
22
* @id c/misra/assignment-to-wider-essential-type
33
* @name RULE-10-6: The value of a composite expression shall not be assigned to an object with wider essential type
4-
* @description
4+
* @description Assigning a composite expression to an object with wider essential type can cause
5+
* some unexpected conversions.
56
* @kind problem
67
* @precision very-high
7-
* @problem.severity error
8+
* @problem.severity warning
89
* @tags external/misra/id/rule-10-6
10+
* maintainability
11+
* correctness
912
* external/misra/obligation/required
1013
*/
1114

c/misra/src/rules/RULE-10-7/ImplicitConversionOfCompositeExpression.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
/**
22
* @id c/misra/implicit-conversion-of-composite-expression
3-
* @name RULE-10-7: If a composite expression is used as one operand of an operator in which the usual arithmetic
3+
* @name RULE-10-7: Implicit conversion of composite expression operand to wider essential type
44
* @description If a composite expression is used as one operand of an operator in which the usual
55
* arithmetic conversions are performed then the other operand shall not have wider
66
* essential type
77
* @kind problem
88
* @precision very-high
9-
* @problem.severity error
9+
* @problem.severity warning
1010
* @tags external/misra/id/rule-10-7
11+
* maintainability
12+
* correctness
1113
* external/misra/obligation/required
1214
*/
1315

c/misra/src/rules/RULE-10-8/InappropriateCastOfCompositeExpression.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/**
22
* @id c/misra/inappropriate-cast-of-composite-expression
3-
* @name RULE-10-8: The value of a composite expression shall not be cast to a different essential type category or a
3+
* @name RULE-10-8: Composite expression explicitly casted to wider or different essential type
44
* @description The value of a composite expression shall not be cast to a different essential type
55
* category or a wider essential type
66
* @kind problem
77
* @precision very-high
8-
* @problem.severity error
8+
* @problem.severity warning
99
* @tags external/misra/id/rule-10-8
10+
* maintainability
11+
* correctness
1012
* external/misra/obligation/required
1113
*/
1214

c/misra/src/rules/RULE-14-1/LoopOverEssentiallyFloatType.ql

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
/**
22
* @id c/misra/loop-over-essentially-float-type
33
* @name RULE-14-1: A loop counter shall not have essentially floating type
4-
* @description
4+
* @description A floating point loop counter can cause confusing behavior when incremented.
55
* @kind problem
6-
* @precision high
7-
* @problem.severity error
6+
* @precision very-high
7+
* @problem.severity warning
88
* @tags external/misra/id/rule-14-1
9+
* maintainability
10+
* correctness
911
* external/misra/obligation/required
1012
*/
1113

0 commit comments

Comments
 (0)