Skip to content

Commit b23b4cd

Browse files
committed
chore: refactor rule definition to only use advanced rule d
1 parent 8964d1f commit b23b4cd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/main/rules/DMLStatementInLoop.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { FlowType, IRuleDefinition } from "../internals/internals";
1+
import { FlowType } from "../internals/internals";
22
import { LoopRuleCommon } from "../models/LoopRuleCommon";
33

4-
export class DMLStatementInLoop extends LoopRuleCommon implements IRuleDefinition {
4+
export class DMLStatementInLoop extends LoopRuleCommon {
55
constructor() {
66
super({
77
autoFixable: false,

src/main/rules/DuplicateDMLOperation.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { AdvancedRule } from "../models/AdvancedRule";
21
import * as core from "../internals/internals";
2+
import { AdvancedRule } from "../models/AdvancedRule";
33

4-
export class DuplicateDMLOperation extends AdvancedRule implements core.IRuleDefinition {
4+
export class DuplicateDMLOperation extends AdvancedRule {
55
constructor() {
66
super({
7-
name: "DuplicateDMLOperation",
8-
label: "Duplicate DML Operation",
7+
autoFixable: false,
98
description:
109
"When the flow executes database changes or actions between two screens, it's important to prevent users from navigating back between screens. Failure to do so may result in duplicate database operations being performed within the flow.",
11-
supportedTypes: core.FlowType.visualTypes,
1210
docRefs: [],
1311
isConfigurable: false,
14-
autoFixable: false,
12+
label: "Duplicate DML Operation",
13+
name: "DuplicateDMLOperation",
14+
supportedTypes: core.FlowType.visualTypes,
1515
});
1616
}
1717

0 commit comments

Comments
 (0)