Skip to content

Commit 30ed6a0

Browse files
authored
Merge pull request #4385 from aibaars/drop-queries
Drop 'tech-inventory' and 'code duplication' queries from the standard query suites
2 parents fce76e2 + daa1bcc commit 30ed6a0

File tree

50 files changed

+45
-17
lines changed

Some content is hidden

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

50 files changed

+45
-17
lines changed

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

cpp/ql/src/external/MostlySimilarFile.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 similar file
34
* @description There is another file that shares a lot of the code with this file. Notice that names of variables and types may have been changed. Merge the two files to improve maintainability.
45
* @kind problem

0 commit comments

Comments
 (0)