Skip to content

Commit 75c7623

Browse files
author
Prabha Kylasamiyer Sundara Rajan
committed
Made minor formatting changes
Signed-off-by: Prabha Kylasamiyer Sundara Rajan <pkylasam@pkylasam-thinkpadp16vgen1.bengluru.csb>
1 parent 9613c25 commit 75c7623

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

docs/topics/rules-development/create-go-custom-rule.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[role="_abstract"]
1010
You can create custom rules for Golang (Go) applications based on the following example.
1111

12-
You can use the following custom rule to check if {ProductShortName} triggers an incident when it detects the `v1beta1.CustomResourceDefinition` in the`go` file.
12+
You can use the following custom rule to check if {ProductShortName} triggers an incident when it detects the `v1beta1.CustomResourceDefinition` in the `go` file.
1313

1414
.Procedure
1515
. Create a `go-rule-001.yml` file in a directory.

docs/topics/rules-development/create-nodejs-custom-rule.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
= Creating a custom Node.js rule
88

99
[role="_abstract"]
10-
You must create custom rules to analyze `Node.js` applications by using {ProductShortName}. A `Node.js` rule can contain the `nodejs.referenced` capability which supports the `pattern` field.
10+
You must create custom rules to analyze `Node.js` applications by using {ProductShortName}. A `Node.js` rule can contain the `nodejs.referenced` capability which supports the `pattern` field.
1111

1212
The following example uses a custom rule to check if a `.tsx` file in the `Node.js` project imports the `React` framework.
1313

docs/topics/rules-development/yaml-chaining-condition-variables.adoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
You can use the output of one condition as the input for filtering another one in the `and` and `or` conditions. This is called *condition chaining*.
1111

1212

13-
.Example
14-
1513
[source,yaml]
1614
----
1715
when:
@@ -28,7 +26,6 @@ when:
2826

2927
In the above example, the output of the `builtin.file` condition is saved as `poms`:
3028

31-
+
3229
[source,yaml]
3330
----
3431
[...]
@@ -40,7 +37,6 @@ The variables of `builtin.file` can then be used in the `builtin.xml` condition,
4037

4138
This is how this particular condition knows how to use the variable set to the name `poms`.
4239

43-
+
4440
[source,yaml]
4541
----
4642
[...]
@@ -51,7 +47,6 @@ This is how this particular condition knows how to use the variable set to the n
5147
Then you can use the variables by setting them as mustached templates in
5248
any of the inputs to the _provider_ condition.
5349

54-
+
5550
[source,yaml]
5651
----
5752
[...]
@@ -64,7 +59,7 @@ any of the inputs to the _provider_ condition.
6459
If you only want to use the values of a condition as a chain, you can set `ignore: true`.
6560
6661
This will tell the engine not to use this condition to determine whether the rule has been violated or not:
67-
+
62+
6863
[source,yaml]
6964
----
7065
[...]

0 commit comments

Comments
 (0)