Skip to content

Commit 0855543

Browse files
committed
CPP: Tag the JPL_C LOC-4 queries.
1 parent e6dddd9 commit 0855543

17 files changed

+50
-15
lines changed

cpp/ql/src/JPL_C/LOC-4/Rule 20/PreprocessorUse.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description The use of the preprocessor must be limited to inclusion of header files and simple macro definitions.
44
* @kind problem
55
* @id cpp/jpl-c/preprocessor-use
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags maintainability
8+
* readability
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-4/Rule 20/PreprocessorUseIfdef.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description The use of conditional compilation directives must be kept to a minimum -- e.g. for header guards only.
44
* @kind problem
55
* @id cpp/jpl-c/preprocessor-use-ifdef
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags maintainability
8+
* readability
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-4/Rule 20/PreprocessorUsePartial.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description Macros must expand to complete syntactic units -- "#define MY_IF if(" is not legal.
44
* @kind problem
55
* @id cpp/jpl-c/preprocessor-use-partial
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags maintainability
8+
* readability
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-4/Rule 20/PreprocessorUseUndisciplined.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description Macros are not allowed to use complex preprocessor features like variable argument lists and token pasting.
44
* @kind problem
55
* @id cpp/jpl-c/preprocessor-use-undisciplined
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags maintainability
8+
* readability
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-4/Rule 21/MacroInBlock.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description Macros shall not be #define'd within a function or a block.
44
* @kind problem
55
* @id cpp/jpl-c/macro-in-block
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags maintainability
8+
* readability
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-4/Rule 22/UseOfUndef.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description #undef shall not be used.
44
* @kind problem
55
* @id cpp/jpl-c/use-of-undef
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags maintainability
8+
* readability
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-4/Rule 23/MismatchedIfdefs.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* @kind problem
55
* @id cpp/jpl-c/mismatched-ifdefs
66
* @problem.severity warning
7+
* @tags maintainability
8+
* readability
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-4/Rule 24/MultipleStmtsPerLine.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description Putting more than one statement on a single line hinders program understanding.
44
* @kind problem
55
* @id cpp/jpl-c/multiple-stmts-per-line
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags maintainability
8+
* readability
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-4/Rule 24/MultipleVarDeclsPerLine.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description There should be no more than one variable declaration per line.
44
* @kind problem
55
* @id cpp/jpl-c/multiple-var-decls-per-line
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags maintainability
8+
* readability
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-4/Rule 25/FunctionSizeLimits.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description Function length should be limited to what can be printed on a single sheet of paper (60 lines). Number of parameters is limited to 6 or fewer.
44
* @kind problem
55
* @id cpp/jpl-c/function-size-limits
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags maintainability
8+
* readability
79
*/
810

911
import cpp

0 commit comments

Comments
 (0)