Skip to content

Commit 3ebb9e1

Browse files
committed
C#: Update query id/tags and documentation
1 parent 044fb9f commit 3ebb9e1

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

csharp/ql/src/utils/modeleditor/ApplicationModeEndpoints.ql

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
/**
2-
* @name Fetch model editor methods (application mode)
3-
* @description A list of 3rd party APIs used in the codebase. Excludes test and generated code.
2+
* @name Fetch endpoints for use in the model editor (application mode)
3+
* @description A list of 3rd party endpoints (methods and attributes) used in the codebase. Excludes test and generated code.
44
* @kind problem
55
* @problem.severity recommendation
6-
* @id csharp/utils/modeleditor/fetch-application-mode-methods
7-
* @tags modeleditor fetch methods application-mode
6+
* @id csharp/utils/modeleditor/application-mode-endpoints
7+
* @tags modeleditor endpoints application-mode
88
*/
99

1010
private import csharp
1111
private import ModelEditor
1212

1313
class ExternalEndpoint extends Endpoint {
14-
ExternalEndpoint() {
15-
this.fromLibrary()
16-
}
14+
ExternalEndpoint() { this.fromLibrary() }
1715
}
1816

1917
private Call aUsage(ExternalEndpoint api) { result.getTarget().getUnboundDeclaration() = api }

csharp/ql/src/utils/modeleditor/FrameworkModeEndpoints.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* @name Fetch model editor methods (framework mode)
3-
* @description A list of APIs callable by consumers. Excludes test and generated code.
2+
* @name Fetch endpoints for use in the model editor (framework mode)
3+
* @description A list of endpoints accessible (methods and attributes) for consumers of the library. Excludes test and generated code.
44
* @kind problem
55
* @problem.severity recommendation
6-
* @id csharp/utils/modeleditor/fetch-framework-mode-methods
7-
* @tags modeleditor fetch methods framework-mode
6+
* @id csharp/utils/modeleditor/framework-mode-endpoints
7+
* @tags modeleditor endpoints framework-mode
88
*/
99

1010
private import csharp

0 commit comments

Comments
 (0)