@flow-scanner/lightning-flow-scanner-core 6.11.5 → 6.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -216,7 +216,7 @@ By default, all default rules are executed. You can customize individual rules a
216
216
  ```json
217
217
  {
218
218
  "rules": {
219
- "<RuleName>": {
219
+ "<RuleId>": {
220
220
  "severity": "<Severity>", // Override severity level
221
221
  "expression": "<Expression>", // Override rule expression
222
222
  "enabled": "false" // Disable this rule
@@ -232,10 +232,10 @@ When the severity is not provided it will be `warning` by default. Other availab
232
232
  ```json
233
233
  {
234
234
  "rules": {
235
- "FlowDescription": {
235
+ "missing-flow-description": {
236
236
  "severity": "error"
237
237
  },
238
- "UnusedVariable": {
238
+ "unused-variable": {
239
239
  "severity": "note"
240
240
  }
241
241
  }
@@ -249,10 +249,10 @@ Some rules have an expression to configure, such as the expression, that will ov
249
249
  ```json
250
250
  {
251
251
  "rules": {
252
- "APIVersion": {
252
+ "invalid-api-version": {
253
253
  "expression": "===58" // comparison operator
254
254
  },
255
- "FlowName": {
255
+ "invalid-naming-convention": {
256
256
  "expression": "[A-Za-z0-9]" // regular expression
257
257
  }
258
258
  }
@@ -267,7 +267,7 @@ Defining exceptions allows you to exclude specific scenarios from rule enforceme
267
267
  {
268
268
  "exceptions": {
269
269
  "<FlowName>": {
270
- "<RuleName>": [
270
+ "<RuleId>": [
271
271
  "<ResultName>", // Suppress a result
272
272
  "*", // Wildcard to suppress all results
273
273
  ...
@@ -284,8 +284,8 @@ _Example_
284
284
  {
285
285
  "exceptions": {
286
286
  "MyFlow": {
287
- "HardcodedId": ["Old_Lookup_1"]
288
- "MissingNullHandler": ["*"],
287
+ "hardcoded-id": ["Old_Lookup_1"],
288
+ "missing-null-handler": ["*"]
289
289
  }
290
290
  }
291
291
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flow-scanner/lightning-flow-scanner-core",
3
3
  "description": "A lightweight engine for Flow metadata in Node.js, and browser environments. Assess and enhance Salesforce Flow automations for best practices, security, governor limits, and performance issues.",
4
- "version": "6.11.5",
4
+ "version": "6.12.0",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": {