GeezerVison is showing github.com — CPP: Tag the JPL_C LOC-3 queries. · github/codeql@17560cf
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: cpp/ql/src/JPL_C/LOC-3/Rule 13/ExternDeclsInHeader.ql +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | * @kind problem |
5 | 5 | * @id cpp/jpl-c/extern-decls-in-header |
6 | 6 | * @problem.severity warning |
| 7 | + * @tags maintainability |
7 | 8 | */ |
8 | 9 |
|
9 | 10 | import cpp |
|
Collapse file
Copy file name to clipboardExpand all lines: cpp/ql/src/JPL_C/LOC-3/Rule 13/LimitedScopeFile.ql +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
3 | 3 | * @description Global variables that are not accessed outside their own file should be made static to promote information hiding. |
4 | 4 | * @kind problem |
5 | 5 | * @id cpp/jpl-c/limited-scope-file |
6 | | - * @problem.severity warning |
| 6 | + * @problem.severity recommendation |
| 7 | + * @precision low |
| 8 | + * @tags maintainability |
| 9 | + * modularity |
7 | 10 | */ |
8 | 11 |
|
9 | 12 | import cpp |
|
Collapse file
Copy file name to clipboardExpand all lines: cpp/ql/src/JPL_C/LOC-3/Rule 13/LimitedScopeFunction.ql +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
3 | 3 | * @description Global and file-scope variables that are accessed by only one function should be scoped within that function. |
4 | 4 | * @kind problem |
5 | 5 | * @id cpp/jpl-c/limited-scope-function |
6 | | - * @problem.severity warning |
| 6 | + * @problem.severity recommendation |
| 7 | + * @precision low |
| 8 | + * @tags maintainability |
7 | 9 | */ |
8 | 10 |
|
9 | 11 | import cpp |
|
Collapse file
Copy file name to clipboardExpand all lines: cpp/ql/src/JPL_C/LOC-3/Rule 13/LimitedScopeLocalHidesGlobal.ql +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
3 | 3 | * @description A local variable or parameter that hides a global variable of the same name. |
4 | 4 | * @kind problem |
5 | 5 | * @id cpp/jpl-c/limited-scope-local-hides-global |
6 | | - * @problem.severity warning |
| 6 | + * @problem.severity recommendation |
| 7 | + * @tags maintainability |
| 8 | + * readability |
7 | 9 | */ |
8 | 10 | import cpp |
9 | 11 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: cpp/ql/src/JPL_C/LOC-3/Rule 14/CheckingReturnValues.ql +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | * @kind problem |
5 | 5 | * @id cpp/jpl-c/checking-return-values |
6 | 6 | * @problem.severity warning |
| 7 | + * @tags correctness |
| 8 | + * reliability |
7 | 9 | */ |
8 | 10 |
|
9 | 11 | import cpp |
|
Collapse file
Copy file name to clipboardExpand all lines: cpp/ql/src/JPL_C/LOC-3/Rule 15/CheckingParameterValues.ql +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | * @kind problem |
5 | 5 | * @id cpp/jpl-c/checking-parameter-values |
6 | 6 | * @problem.severity warning |
| 7 | + * @tags correctness |
| 8 | + * reliability |
7 | 9 | */ |
8 | 10 |
|
9 | 11 | import JPL_C.Tasks |
|
Collapse file
Copy file name to clipboardExpand all lines: cpp/ql/src/JPL_C/LOC-3/Rule 16/UseOfAssertionsConstant.ql +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | * @kind problem |
5 | 5 | * @id cpp/jpl-c/use-of-assertions-constant |
6 | 6 | * @problem.severity warning |
| 7 | + * @tags maintainability |
| 8 | + * reliability |
7 | 9 | */ |
8 | 10 |
|
9 | 11 | import semmle.code.cpp.commons.Assertions |
|
Collapse file
Copy file name to clipboardExpand all lines: cpp/ql/src/JPL_C/LOC-3/Rule 16/UseOfAssertionsDensity.ql +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
3 | 3 | * @description All functions of more than 10 lines should have at least one assertion. |
4 | 4 | * @kind problem |
5 | 5 | * @id cpp/jpl-c/use-of-assertions-density |
6 | | - * @problem.severity warning |
| 6 | + * @problem.severity recommendation |
| 7 | + * @tags maintainability |
| 8 | + * reliability |
7 | 9 | */ |
8 | 10 |
|
9 | 11 | import semmle.code.cpp.commons.Assertions |
|
Collapse file
Copy file name to clipboardExpand all lines: cpp/ql/src/JPL_C/LOC-3/Rule 16/UseOfAssertionsNonBoolean.ql +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | * @kind problem |
5 | 5 | * @id cpp/jpl-c/use-of-assertions-non-boolean |
6 | 6 | * @problem.severity warning |
| 7 | + * @tags correctness |
7 | 8 | */ |
8 | 9 |
|
9 | 10 | import semmle.code.cpp.commons.Assertions |
|
Collapse file
Copy file name to clipboardExpand all lines: cpp/ql/src/JPL_C/LOC-3/Rule 16/UseOfAssertionsSideEffect.ql +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | * @kind problem |
5 | 5 | * @id cpp/jpl-c/use-of-assertions-side-effect |
6 | 6 | * @problem.severity warning |
| 7 | + * @tags correctness |
7 | 8 | */ |
8 | 9 |
|
9 | 10 | import semmle.code.cpp.commons.Assertions |
|