You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can test the scanner by simply opening an existing project that contains flows and running the scan without any configurations or parameters. This way all the default rules are autmatically included in the scan.
65
+
You can test the scanner by simply opening an existing project that contains flows and running the scan without any configurations or parameters. This way all the default rules are autmatically included in the scan.
Create a .flow-scanner.json file in order to configure:
79
-
- The ruleset to be executed.
80
-
- The severity of violating any specific rule.
81
-
- Custom expressions or rule implementations.
82
-
- Any known exceptions that should be ignored during scanning.
82
+
83
+
- The ruleset to be executed.
84
+
- The severity of violating any specific rule.
85
+
- Custom expressions or rule implementations.
86
+
- Any known exceptions that should be ignored during scanning.
83
87
84
88
```json
85
89
{
@@ -96,7 +100,7 @@ _Note: if you prefer YAML format, you can create a `.flow-scanner.yml` file usin
96
100
97
101
### Defining the severity per rule
98
102
99
-
When the severity is not provided it will be `error` by default. Other available values for severity are `warning` and `note`. Define the severity per rule as shown in the following example.
103
+
When the severity is not provided it will be `error` by default. Other available values for severity are `warning` and `note`. Define the severity per rule as shown in the following example.
100
104
101
105
```json
102
106
{
@@ -110,6 +114,7 @@ When the severity is not provided it will be `error` by default. Other available
110
114
}
111
115
}
112
116
```
117
+
113
118
### Specifying an exception
114
119
115
120
Specifying exceptions can be done by flow, rule and result(s), as shown in the following example.
@@ -130,6 +135,7 @@ Specifying exceptions can be done by flow, rule and result(s), as shown in the f
130
135
}
131
136
}
132
137
```
138
+
133
139
### Configuring an expression
134
140
135
141
Some rules have additional attributes to configure, such as the expression, that will overwrite default values. These can be configured in the same way as severity as shown in the following example.
@@ -153,7 +159,7 @@ Some rules have additional attributes to configure, such as the expression, that
153
159
154
160
### Loading Custom Rules
155
161
156
-
To load custom rules using the Lightning Flow Scanner Core, you can utilize the `path` attribute within the rules section of your configurations. This attribute allows you to specify the path to your custom rule class, enabling seamless integration of organization-specific rule definitions into the scanner's ruleset.
162
+
To load custom rules using the Lightning Flow Scanner Core, you can utilize the `path` attribute within the rules section of your configurations. This attribute allows you to specify the path to your custom rule class, enabling seamless integration of organization-specific rule definitions into the scanner's ruleset.
157
163
158
164
```json
159
165
{
@@ -164,6 +170,7 @@ To load custom rules using the Lightning Flow Scanner Core, you can utilize the
164
170
}
165
171
}
166
172
```
173
+
167
174
Custom Rules can either leverage our Flow compiler or be completely customized typescript functions.
168
175
For more details and examples on custom rules, refer to our [Custom Rule Creation Guide](https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core/tree/master/docs/customruleguide.md)
0 commit comments