Skip to content

Commit 645a1d7

Browse files
committed
Fix swapped name and description
1 parent 8b5733a commit 645a1d7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cpp/misra/src/rules/RULE-11-6-1/UninitializedVariable.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* @id cpp/misra/uninitialized-variable
3-
* @name RULE-11-6-1: All variables should be initialized, otherwise it may lead to a read of uninitialized memory which is undefined behavior.
4-
* @description All variables should be initialized
3+
* @name RULE-11-6-1: All variables should be initialized
4+
* @description All variables should be initialized, otherwise it may lead to a read of
5+
* uninitialized memory which is undefined behavior.
56
* @kind problem
67
* @precision very-high
78
* @problem.severity error

rule_packages/cpp/Declarations7.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
},
88
"queries": [
99
{
10-
"description": "All variables should be initialized",
10+
"description": "All variables should be initialized, otherwise it may lead to a read of uninitialized memory which is undefined behavior.",
1111
"kind": "problem",
12-
"name": "All variables should be initialized, otherwise it may lead to a read of uninitialized memory which is undefined behavior.",
12+
"name": "All variables should be initialized",
1313
"precision": "very-high",
1414
"severity": "error",
1515
"short_name": "UninitializedVariable",

0 commit comments

Comments
 (0)