@flow-scanner/lightning-flow-scanner-core 6.4.2 → 6.5.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.
- package/README.md +51 -14
- package/index.d.ts +4 -3
- package/index.js +4 -4
- package/main/interfaces/IRulesConfig.d.ts +6 -0
- package/main/interfaces/IRulesConfig.js +11 -0
- package/main/internals/internals.d.ts +6 -5
- package/main/internals/internals.js +11 -7
- package/main/libs/GetRuleDefinitions.d.ts +1 -1
- package/main/libs/GetRuleDefinitions.js +5 -6
- package/main/libs/ScanFlows.js +29 -3
- package/main/libs/exportAsDetails.d.ts +2 -15
- package/main/libs/exportAsDetails.js +69 -26
- package/main/libs/exportAsSarif.js +19 -18
- package/main/models/FlatViolation.d.ts +7 -0
- package/main/models/Flow.d.ts +18 -10
- package/main/models/Flow.js +82 -61
- package/main/models/LoopRuleCommon.d.ts +2 -2
- package/main/models/LoopRuleCommon.js +8 -10
- package/main/models/RuleCommon.d.ts +14 -2
- package/main/models/RuleCommon.js +16 -3
- package/main/models/RuleResult.d.ts +3 -3
- package/main/models/ScanResult.d.ts +1 -1
- package/main/models/Violation.d.ts +12 -0
- package/main/models/Violation.js +101 -0
- package/main/rules/APIVersion.d.ts +3 -3
- package/main/rules/APIVersion.js +20 -24
- package/main/rules/ActionCallsInLoop.js +1 -1
- package/main/rules/AutoLayout.d.ts +1 -3
- package/main/rules/AutoLayout.js +10 -20
- package/main/rules/CopyAPIName.d.ts +1 -1
- package/main/rules/CopyAPIName.js +4 -13
- package/main/rules/CyclomaticComplexity.d.ts +4 -4
- package/main/rules/CyclomaticComplexity.js +19 -27
- package/main/rules/DuplicateDMLOperation.d.ts +2 -2
- package/main/rules/DuplicateDMLOperation.js +53 -56
- package/main/rules/FlowDescription.d.ts +1 -1
- package/main/rules/FlowDescription.js +8 -12
- package/main/rules/FlowName.d.ts +2 -2
- package/main/rules/FlowName.js +12 -18
- package/main/rules/GetRecordAllFields.d.ts +1 -1
- package/main/rules/GetRecordAllFields.js +11 -21
- package/main/rules/HardcodedId.d.ts +1 -1
- package/main/rules/HardcodedId.js +4 -15
- package/main/rules/HardcodedUrl.d.ts +2 -2
- package/main/rules/HardcodedUrl.js +4 -17
- package/main/rules/InactiveFlow.d.ts +1 -1
- package/main/rules/InactiveFlow.js +7 -10
- package/main/rules/MissingFaultPath.d.ts +1 -1
- package/main/rules/MissingFaultPath.js +22 -24
- package/main/rules/MissingNullHandler.d.ts +1 -1
- package/main/rules/MissingNullHandler.js +67 -70
- package/main/rules/ProcessBuilder.d.ts +1 -3
- package/main/rules/ProcessBuilder.js +4 -8
- package/main/rules/RecursiveAfterUpdate.d.ts +1 -1
- package/main/rules/RecursiveAfterUpdate.js +29 -31
- package/main/rules/SameRecordFieldUpdates.d.ts +1 -1
- package/main/rules/SameRecordFieldUpdates.js +15 -21
- package/main/rules/TriggerOrder.d.ts +1 -1
- package/main/rules/TriggerOrder.js +8 -13
- package/main/rules/UnconnectedElement.d.ts +1 -1
- package/main/rules/UnconnectedElement.js +12 -15
- package/main/rules/UnsafeRunningContext.d.ts +1 -1
- package/main/rules/UnsafeRunningContext.js +12 -13
- package/main/rules/UnusedVariable.d.ts +1 -1
- package/main/rules/UnusedVariable.js +23 -27
- package/main/store/DefaultRuleStore.js +2 -3
- package/package.json +6 -7
- package/main/interfaces/AutoFixable.d.ts +0 -10
- package/main/models/ResultDetails.d.ts +0 -10
- package/main/models/ResultDetails.js +0 -57
- /package/main/{interfaces/AutoFixable.js → models/FlatViolation.js} +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "ResultDetails", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return ResultDetails;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
function _define_property(obj, key, value) {
|
|
12
|
-
if (key in obj) {
|
|
13
|
-
Object.defineProperty(obj, key, {
|
|
14
|
-
value: value,
|
|
15
|
-
enumerable: true,
|
|
16
|
-
configurable: true,
|
|
17
|
-
writable: true
|
|
18
|
-
});
|
|
19
|
-
} else {
|
|
20
|
-
obj[key] = value;
|
|
21
|
-
}
|
|
22
|
-
return obj;
|
|
23
|
-
}
|
|
24
|
-
let ResultDetails = class ResultDetails {
|
|
25
|
-
constructor(violation){
|
|
26
|
-
_define_property(this, "violation", void 0);
|
|
27
|
-
_define_property(this, "name", void 0);
|
|
28
|
-
_define_property(this, "type", void 0);
|
|
29
|
-
_define_property(this, "metaType", void 0);
|
|
30
|
-
_define_property(this, "details", void 0);
|
|
31
|
-
this.violation = violation;
|
|
32
|
-
this.name = violation.name;
|
|
33
|
-
this.metaType = violation.metaType;
|
|
34
|
-
this.type = violation.subtype;
|
|
35
|
-
if (violation.metaType === "variable") {
|
|
36
|
-
const element = violation;
|
|
37
|
-
this.details = {
|
|
38
|
-
dataType: element.dataType
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
if (violation.metaType === "node") {
|
|
42
|
-
var _element_connectors;
|
|
43
|
-
const element = violation;
|
|
44
|
-
this.details = {
|
|
45
|
-
locationX: element.locationX,
|
|
46
|
-
locationY: element.locationY,
|
|
47
|
-
connectsTo: (_element_connectors = element.connectors) === null || _element_connectors === void 0 ? void 0 : _element_connectors.map((connector)=>connector.reference)
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
if (violation.metaType === "attribute") {
|
|
51
|
-
const element = violation;
|
|
52
|
-
this.details = {
|
|
53
|
-
expression: element.expression
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
File without changes
|