Skip to content

Commit f5469cf

Browse files
author
Prabha Kylasamiyer Sundara Rajan
committed
Made changes after discussing with QE
Signed-off-by: Prabha Kylasamiyer Sundara Rajan <pkylasam@pkylasam-thinkpadp16vgen1.bengluru.csb>
1 parent b7a331c commit f5469cf

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

docs/topics/rules-development/yaml-dotnet-provider.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The `csharp` provider uses a gRPC interface to perform a semantic analysis of an
1313

1414
`referenced`::
1515

16-
The `csharp` provider supports `referenced` capability in rules to define fields such as `pattern`and `location` based on which the provider searches the code for violations.
16+
The `csharp` provider supports `referenced` capability in rules to define fields such as `pattern` and `location` based on which the provider searches the code for violations.
1717

1818
[source,yaml]
1919
----

docs/topics/rules-development/yaml-provider-conditions.adoc

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ when:
103103
|Search XML files using xpath queries.
104104

105105

106-
|`json`
106+
|json
107107
a|Search JSON files using `jsonpath` queries.
108108
For example,
109109
[source, yaml]
@@ -166,7 +166,7 @@ when:
166166
----
167167

168168
|`csharp`
169-
|references
169+
|referenced
170170
a|Find references to a pattern.
171171
For example,
172172
[source,yaml]
@@ -464,7 +464,7 @@ when:
464464

465465
|location
466466
|Yes
467-
a|Specify one of the following for which the search query must be run.
467+
a|Specify one of the following for which {ProductShortName} runs a search query.
468468

469469
* Type reference including classes, interfaces and structure types (struct)
470470

@@ -518,13 +518,5 @@ when:
518518
pattern: "System.Windows.Forms"
519519
----
520520

521-
* `ALL` - You can also specify `ALL` as `location` to run a search query namespaces, structure types, and interfaces.
522-
523-
For example,
524-
[subs="+quotes"]
525-
----
526-
when:
527-
csharp.referenced:
528-
location: ALL
529-
----
521+
* `ALL` - You can also specify `ALL` as `location` to run a search query on any location in the code, including namespaces, structure types, and interfaces.
530522
|===

0 commit comments

Comments
 (0)