mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Add @ids for metric queries and filter queries.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* @tags testability
|
||||
* complexity
|
||||
* maintainability
|
||||
* @deprecated
|
||||
* @id cs/cyclomatic-complexity-per-function
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* complexity
|
||||
* @deprecated
|
||||
* @id cs/lines-of-code-per-function
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* documentation
|
||||
* @deprecated
|
||||
* @id cs/lines-of-comment-per-function
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* @tags testability
|
||||
* complexity
|
||||
* maintainability
|
||||
* @deprecated
|
||||
* @id cs/parameters-per-function
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricType callable
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* @deprecated
|
||||
* @id cs/statements-per-function
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg max
|
||||
* @tags maintainability
|
||||
* documentation
|
||||
* @deprecated
|
||||
* @id cs/comment-ratio-per-type
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg max
|
||||
* @tags maintainability
|
||||
* complexity
|
||||
* @deprecated
|
||||
* @id cs/statement-nesting-depth-per-function
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg max
|
||||
* @tags maintainability
|
||||
* documentation
|
||||
* @deprecated
|
||||
* @id cs/comment-ratio-per-file
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg max
|
||||
* @tags testability
|
||||
* complexity
|
||||
* @deprecated
|
||||
* @id cs/average-cyclomatic-complexity-per-file
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @treemap.warnOn highValues
|
||||
* @metricType file
|
||||
* @metricAggregate avg sum max
|
||||
* @deprecated
|
||||
* @id cs/lines-per-file
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @metricType file
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* @deprecated
|
||||
* @id cs/classes-per-file
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @metricType file
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* @deprecated
|
||||
* @id cs/interfaces-per-file
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @metricType file
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* @deprecated
|
||||
* @id cs/structs-per-file
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @metricType file
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* @deprecated
|
||||
* @id cs/using-namespaces-per-file
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg max
|
||||
* @tags portability
|
||||
* modularity
|
||||
* @deprecated
|
||||
* @id cs/source-dependency-ratio-per-file
|
||||
*/
|
||||
import csharp
|
||||
import semmle.code.csharp.metrics.Coupling
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @treemap.warnOn highValues
|
||||
* @metricType file
|
||||
* @metricAggregate avg sum max
|
||||
* @deprecated
|
||||
* @id cs/vcs/churn-per-file
|
||||
*/
|
||||
import csharp
|
||||
import external.VCS
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @treemap.warnOn highValues
|
||||
* @metricType file
|
||||
* @metricAggregate avg sum max
|
||||
* @deprecated
|
||||
* @id cs/vcs/added-lines-per-file
|
||||
*/
|
||||
import csharp
|
||||
import external.VCS
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @treemap.warnOn highValues
|
||||
* @metricType file
|
||||
* @metricAggregate avg sum max
|
||||
* @deprecated
|
||||
* @id cs/vcs/deleted-lines-per-file
|
||||
*/
|
||||
import csharp
|
||||
import external.VCS
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @treemap.warnOn highValues
|
||||
* @metricType file
|
||||
* @metricAggregate avg min max
|
||||
* @deprecated
|
||||
* @id cs/vcs/authors-per-file
|
||||
*/
|
||||
import csharp
|
||||
import external.VCS
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @treemap.warnOn highValues
|
||||
* @metricType file
|
||||
* @metricAggregate avg min max sum
|
||||
* @deprecated
|
||||
* @id cs/vcs/commits-per-file
|
||||
*/
|
||||
import csharp
|
||||
import external.VCS
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @treemap.warnOn highValues
|
||||
* @metricType file
|
||||
* @metricAggregate avg min max
|
||||
* @deprecated
|
||||
* @id cs/vcs/co-commits-per-file
|
||||
*/
|
||||
import csharp
|
||||
import external.VCS
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @treemap.warnOn highValues
|
||||
* @metricType file
|
||||
* @metricAggregate avg min max
|
||||
* @deprecated
|
||||
* @id cs/vcs/recommits-per-file
|
||||
*/
|
||||
import csharp
|
||||
import external.VCS
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @treemap.warnOn highValues
|
||||
* @metricType file
|
||||
* @metricAggregate avg min max sum
|
||||
* @deprecated
|
||||
* @id cs/vcs/recent-commits-per-file
|
||||
*/
|
||||
import csharp
|
||||
import external.VCS
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg max
|
||||
* @tags changeability
|
||||
* modularity
|
||||
* @deprecated
|
||||
* @id cs/incoming-type-dependencies
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* @tags testability
|
||||
* modularity
|
||||
* maintainability
|
||||
* @deprecated
|
||||
* @id cs/outgoing-type-dependencies
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg max
|
||||
* @tags changeability
|
||||
* modularity
|
||||
* @deprecated
|
||||
* @id cs/inheritance-depth
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg max
|
||||
* @tags modularity
|
||||
* maintainability
|
||||
* @deprecated
|
||||
* @id cs/lack-of-cohesion-ck
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @metricType reftype
|
||||
* @metricAggregate avg max
|
||||
* @tags modularity
|
||||
* @deprecated
|
||||
* @id cs/lack-of-cohesion-hs
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @metricType reftype
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* @deprecated
|
||||
* @id cs/functions-per-type
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @metricType reftype
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* @deprecated
|
||||
* @id cs/events-per-type
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* complexity
|
||||
* @deprecated
|
||||
* @id cs/fields-per-type
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @metricType reftype
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* @deprecated
|
||||
* @id cs/indexers-per-type
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @treemap.warnOn highValues
|
||||
* @metricType reftype
|
||||
* @metricAggregate avg sum max
|
||||
* @deprecated
|
||||
* @id cs/nonconst-fields-per-type
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @metricType reftype
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* @deprecated
|
||||
* @id cs/properties-per-type
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @metricType reftype
|
||||
* @metricAggregate avg sum max
|
||||
* @tags maintainability
|
||||
* @deprecated
|
||||
* @id cs/statements-per-type
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg max
|
||||
* @tags maintainability
|
||||
* complexity
|
||||
* @deprecated
|
||||
* @id cs/response-per-type
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg sum max
|
||||
* @tags testability
|
||||
* modularity
|
||||
* @deprecated
|
||||
* @id cs/public-functions-per-type
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @metricAggregate avg max
|
||||
* @tags modularity
|
||||
* maintainability
|
||||
* @deprecated
|
||||
* @id cs/type-specialization-index
|
||||
*/
|
||||
import csharp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @metricType reftype
|
||||
* @metricAggregate sum
|
||||
* @tags reliability
|
||||
* @deprecated
|
||||
* @id cs/externs-per-type
|
||||
*/
|
||||
|
||||
import csharp
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @name Filter: only keep results from source that have been changed since the base line
|
||||
* @description Exclude results that have not changed since the base line.
|
||||
* @deprecated
|
||||
* @id cs/changed-lines-filter
|
||||
* @kind problem
|
||||
*/
|
||||
import csharp
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @name Filter: only keep results from source that have been changed since the base line
|
||||
* @description Exclude results that have not changed since the base line.
|
||||
* @deprecated
|
||||
* @id cs/changed-lines-metric-filter
|
||||
* @kind treemap
|
||||
*/
|
||||
import csharp
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @name Filter: only keep results from source
|
||||
* @description Exclude results that do not come from source code files.
|
||||
* @kind problem
|
||||
* @deprecated
|
||||
* @id cs/source-filter
|
||||
*/
|
||||
import csharp
|
||||
import external.DefectFilter
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @name Filter: only keep metric results from source
|
||||
* @description Exclude results that do not come from source code files.
|
||||
* @kind treemap
|
||||
* @deprecated
|
||||
* @id cs/source-metric-filter
|
||||
*/
|
||||
import csharp
|
||||
import external.MetricFilter
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @name Filter: only keep results in non-generated files
|
||||
* @description Exclude results that come from generated code.
|
||||
* @kind problem
|
||||
* @deprecated
|
||||
* @id cs/not-generated-file-filter
|
||||
*/
|
||||
import semmle.code.csharp.commons.GeneratedCode
|
||||
import external.DefectFilter
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @name Filter: only keep metric results in non-generated files
|
||||
* @description Exclude results that come from generated code.
|
||||
* @kind treemap
|
||||
* @deprecated
|
||||
* @id cs/not-generated-file-metric-filter
|
||||
*/
|
||||
import semmle.code.csharp.commons.GeneratedCode
|
||||
import external.MetricFilter
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @name Filter: only keep results that are outside of test files
|
||||
* @description Exclude results in test files.
|
||||
* @kind problem
|
||||
* @deprecated
|
||||
* @id cs/test-file-filter
|
||||
*/
|
||||
import csharp
|
||||
import semmle.code.csharp.frameworks.Test
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @name Filter: only keep results that are outside of test files
|
||||
* @description Exclude results in test files.
|
||||
* @kind treemap
|
||||
* @deprecated
|
||||
* @id cs/test-file-metric-filter
|
||||
*/
|
||||
import csharp
|
||||
import semmle.code.csharp.frameworks.Test
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @name Filter: only keep results that are outside of test methods
|
||||
* @description Exclude results in test methods.
|
||||
* @kind problem
|
||||
* @deprecated
|
||||
* @id cs/test-method-filter
|
||||
*/
|
||||
import csharp
|
||||
import semmle.code.csharp.frameworks.Test
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @name Filter: only keep results that are outside of a test method expecting an exception
|
||||
* @description Exclude results in test methods expecting exceptions.
|
||||
* @kind problem
|
||||
* @deprecated
|
||||
* @id cs/test-method-exception-filter
|
||||
*/
|
||||
import csharp
|
||||
import semmle.code.csharp.frameworks.Test
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @name Filter: only files recently edited
|
||||
* @description Filter a defect query to only include results in files that have been changed recently, and modify the message.
|
||||
* @kind problem
|
||||
* @deprecated
|
||||
* @id cs/recently-changed-file-filter
|
||||
*/
|
||||
import csharp
|
||||
import external.DefectFilter
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @name Filter: only keep results from source that have not changed since the base line
|
||||
* @description Complement of ChangedLines.ql.
|
||||
* @kind problem
|
||||
* @deprecated
|
||||
* @id cs/unchanged-lines-filter
|
||||
*/
|
||||
import csharp
|
||||
import external.ExternalArtifact
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @name Filter: only keep results from source that have not changed since the base line
|
||||
* @description Complement of ChangedLinesForMetric.ql.
|
||||
* @kind treemap
|
||||
* @deprecated
|
||||
* @id cs/unchanged-lines-metric-filter
|
||||
*/
|
||||
import csharp
|
||||
import external.ExternalArtifact
|
||||
|
||||
Reference in New Issue
Block a user