Skip to content

Commit fc45b6c

Browse files
committed
Drop 'tech-inventory' and 'code duplication' queries from the standard query suites
1 parent 060c19a commit fc45b6c

40 files changed

+35
-17
lines changed

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

csharp/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 and whitespace lines,
45
* which are duplicated in at least one other place.

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
tags contain:
88
- ide-contextual-queries/local-definitions
99
- ide-contextual-queries/local-references
10-
- query: Metrics/Dependencies/ExternalDependencies.ql
11-
- query: Metrics/Dependencies/ExternalDependenciesSourceLinks.ql
1210
- query: Metrics/Files/FLinesOfCode.ql
1311
- query: Metrics/Files/FLinesOfCommentedCode.ql
1412
- query: Metrics/Files/FLinesOfComment.ql
15-
- query: Metrics/Files/FLinesOfDuplicatedCode.ql
1613
- query: Metrics/Files/FNumberOfTests.ql

0 commit comments

Comments
 (0)