Skip to content

Commit 40f4e71

Browse files
authored
Merge branch 'main' into cwe-346
2 parents 58971f9 + ce1d8de commit 40f4e71

1,346 files changed

Lines changed: 115431 additions & 14682 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/codeql-analysis.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ name: "Code scanning - action"
22

33
on:
44
push:
5+
branches:
6+
- main
7+
- 'rc/*'
58
pull_request:
9+
branches:
10+
- main
11+
- 'rc/*'
612
schedule:
713
- cron: '0 9 * * 1'
814

@@ -14,16 +20,7 @@ jobs:
1420
steps:
1521
- name: Checkout repository
1622
uses: actions/checkout@v2
17-
with:
18-
# We must fetch at least the immediate parents so that if this is
19-
# a pull request then we can checkout the head.
20-
fetch-depth: 2
21-
22-
# If this run was triggered by a pull request event, then checkout
23-
# the head of the pull request instead of the merge commit.
24-
- run: git checkout HEAD^2
25-
if: ${{ github.event_name == 'pull_request' }}
26-
23+
2724
# Initializes the CodeQL tools for scanning.
2825
- name: Initialize CodeQL
2926
uses: github/codeql-action/init@v1

.github/workflows/generate-query-help-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
uses: ammaraskar/sphinx-action@8b4f60114d7fd1faeba1a712269168508d4750d2 # v0.4
5151
with:
5252
docs-folder: "query-help/"
53-
pre-build-command: "python -m pip install --upgrade recommonmark"
53+
pre-build-command: "python -m pip install --upgrade recommonmark && python -m pip install --upgrade sphinx-markdown-tables"
5454
build-command: "sphinx-build -b dirhtml . _build"
5555
- name: Upload HTML artifacts
5656
uses: actions/upload-artifact@v2

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
# Byte-compiled python files
1818
*.pyc
1919

20+
# python virtual environment folder
21+
.venv/
22+
2023
# It's useful (though not required) to be able to unpack codeql in the ql checkout itself
2124
/codeql/
2225

config/identical-files.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@
356356
],
357357
"Inline Test Expectations": [
358358
"cpp/ql/test/TestUtilities/InlineExpectationsTest.qll",
359+
"java/ql/test/TestUtilities/InlineExpectationsTest.qll",
359360
"python/ql/test/TestUtilities/InlineExpectationsTest.qll"
360361
],
361362
"C++ ExternalAPIs": [
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lgtm
2+
* A new query (`cpp/unsigned-difference-expression-compared-zero`) is run but not yet displayed on LGTM. The query finds unsigned subtractions used in relational comparisons with the value 0. This query was originally submitted as an experimental query by @ihsinme in https://github.com/github/codeql/pull/4745.

cpp/config/suites/cpp/correctness

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
+ semmlecode-cpp-queries/Likely Bugs/Underspecified Functions/MistypedFunctionArguments.ql: /Correctness/Dangerous Conversions
1111
+ semmlecode-cpp-queries/Security/CWE/CWE-253/HResultBooleanConversion.ql: /Correctness/Dangerous Conversions
1212
+ semmlecode-cpp-queries/Likely Bugs/OO/UnsafeUseOfThis.ql: /Correctness/Dangerous Conversions
13+
+ semmlecode-cpp-queries/Security/CWE/CWE-191/UnsignedDifferenceExpressionComparedZero.ql: /Correctness/Dangerous Conversions
1314
# Consistent Use
1415
+ semmlecode-cpp-queries/Critical/ReturnValueIgnored.ql: /Correctness/Consistent Use
1516
+ semmlecode-cpp-queries/Likely Bugs/InconsistentCheckReturnNull.ql: /Correctness/Consistent Use

cpp/ql/src/Architecture/General Class-Level Information/ClassHierarchies.ql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
* @kind graph
55
* @id cpp/architecture/class-hierarchies
66
* @graph.layout organic
7-
* @workingset jhotdraw
8-
* @result succeed 48
9-
* @result_ondemand succeed 48
107
* @tags maintainability
118
*/
129

cpp/ql/src/Architecture/General Class-Level Information/InheritanceDepthDistribution.ql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
* @kind chart
55
* @id cpp/architecture/inheritance-depth-distribution
66
* @chart.type line
7-
* @workingset jhotdraw
8-
* @result succeed 48
9-
* @result_ondemand succeed 48
107
* @tags maintainability
118
*/
129

cpp/ql/src/Architecture/General Namespace-Level Information/GlobalNamespaceClasses.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* @name Global namespace classes
33
* @description Finds classes that belong to no namespace.
4-
* @kind table
4+
* @kind problem
5+
* @problem.severity recommendation
56
* @id cpp/architecture/global-namespace-classes
67
* @tags maintainability
78
* modularity

cpp/ql/src/Architecture/Refactoring Opportunities/ClassesWithManyDependencies.ql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
* @kind problem
55
* @id cpp/architecture/classes-with-many-dependencies
66
* @problem.severity recommendation
7-
* @workingset jhotdraw
8-
* @result succeed 20
9-
* @result_ondemand succeed 20
107
* @tags maintainability
118
* statistical
129
* non-attributable

0 commit comments

Comments
 (0)