Skip to content

Commit c757813

Browse files
committed
Merge branch 'main' into map
2 parents 2dc8fba + e660ac5 commit c757813

File tree

66 files changed

+1381
-1142
lines changed

Some content is hidden

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

66 files changed

+1381
-1142
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
44
// List of extensions which should be recommended for users of this workspace.
55
"recommendations": [
6-
"github.vscode-codeql"
6+
"GitHub.vscode-codeql"
77
],
88
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
99
"unwantedRecommendations": []
10-
}
10+
}

cpp/ql/src/Metrics/Dependencies/ExternalDependencies.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @deprecated
23
* @name External dependencies
34
* @description Count the number of dependencies a C/C++ source file has on external libraries.
45
* @kind treemap

cpp/ql/src/Metrics/Dependencies/ExternalDependenciesSourceLinks.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @deprecated
23
* @name External dependency source links
34
* @kind source-link
45
* @metricType externalDependency

cpp/ql/src/Metrics/Files/FLinesOfDuplicatedCode.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @deprecated
23
* @name Duplicated lines in files
34
* @description The number of lines in a file, including code, comment
45
* and whitespace lines, which are duplicated in at least

cpp/ql/src/codeql-suites/cpp-lgtm-full.qls

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
tags contain:
1010
- ide-contextual-queries/local-definitions
1111
- ide-contextual-queries/local-references
12-
- query: Metrics/Dependencies/ExternalDependencies.ql
13-
- query: Metrics/Dependencies/ExternalDependenciesSourceLinks.ql
1412
- query: Metrics/Files/FLinesOfCode.ql
1513
- query: Metrics/Files/FLinesOfCommentedOutCode.ql
1614
- query: Metrics/Files/FLinesOfComments.ql
17-
- query: Metrics/Files/FLinesOfDuplicatedCode.ql
1815
- query: Metrics/Files/FNumberOfTests.ql

cpp/ql/src/external/DuplicateBlock.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @deprecated
23
* @name Duplicate code
34
* @description This block of code is duplicated elsewhere. If possible, the shared code should be refactored so there is only one occurrence left. It may not always be possible to address these issues; other duplicate code checks (such as duplicate function, duplicate class) give subsets of the results with higher confidence.
45
* @kind problem

cpp/ql/src/external/DuplicateFunction.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @deprecated
23
* @name Duplicate function
34
* @description There is another identical implementation of this function. Extract the code to a common file or superclass or delegate to improve sharing.
45
* @kind problem

cpp/ql/src/external/MostlyDuplicateClass.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @deprecated
23
* @name Mostly duplicate class
34
* @description More than 80% of the methods in this class are duplicated in another class. Create a common supertype to improve code sharing.
45
* @kind problem

cpp/ql/src/external/MostlyDuplicateFile.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @deprecated
23
* @name Mostly duplicate file
34
* @description There is another file that shares a lot of the code with this file. Merge the two files to improve maintainability.
45
* @kind problem

cpp/ql/src/external/MostlyDuplicateFunction.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @deprecated
23
* @name Mostly duplicate function
34
* @description There is another function that shares a lot of the code with this one. Extract the code to a common file/superclass or delegate to improve sharing.
45
* @kind problem

0 commit comments

Comments
 (0)