Skip to content

Commit d60f799

Browse files
authored
Merge pull request #80 from Lightning-Flow-Scanner/m2
add new rules to rulestore
2 parents fb1babd + f646081 commit d60f799

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lightning-flow-scanner-core",
3-
"version": "3.8.0",
3+
"version": "3.9.0",
44
"main": "out/**",
55
"types": "index.d.ts",
66
"scripts": {

src/main/rules/AutoLayout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class AutoLayout extends RuleCommon implements core.IRuleDefinition {
66
constructor() {
77
super({
88
name: 'AutoLayout',
9-
label: 'Use Auto-Layout Mode',
9+
label: 'Auto-Layout Mode',
1010
description: "With Canvas Mode set to Auto-Layout, Elements are spaced, connected, and aligned automatically, keeping your Flow neatly organized thus saving you time.",
1111
supportedTypes: core.FlowType.allTypes(),
1212
docRefs: [],

src/main/rules/ProcessBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class ProcessBuilder extends RuleCommon implements core.IRuleDefinition {
66
constructor() {
77
super({
88
name: 'ProcessBuilder',
9-
label: 'Do not use Process Builder',
9+
label: 'No Process Builder',
1010
description: "Salesforce is transitioning away from Workflow Rules and Process Builder in favor of Flow. Ensure you're prepared for this transition by migrating your organization's automation to Flow. Refer to official documentation for more information on the transition process and tools available.",
1111
supportedTypes: core.FlowType.processBuilder,
1212
docRefs: [{'label': 'Process Builder Retirement', 'path': 'https://help.salesforce.com/s/articleView?id=000389396&type=1'}],

src/main/store/DefaultRuleStore.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { FlowName } from '../rules/FlowName';
88
import { HardcodedId } from '../rules/HardcodedId';
99
import { MissingFaultPath } from '../rules/MissingFaultPath';
1010
import { MissingNullHandler } from '../rules/MissingNullHandler';
11+
import { ProcessBuilder } from '../rules/ProcessBuilder';
1112
import { SOQLQueryInLoop } from '../rules/SOQLQueryInLoop';
1213
import { UnconnectedElement } from '../rules/UnconnectedElement';
1314
import { UnusedVariable } from '../rules/UnusedVariable';
@@ -23,6 +24,7 @@ export const DefaultRuleStore: {} = {
2324
HardcodedId,
2425
MissingFaultPath,
2526
MissingNullHandler,
27+
ProcessBuilder,
2628
SOQLQueryInLoop,
2729
UnconnectedElement,
2830
UnusedVariable

0 commit comments

Comments
 (0)