@flow-scanner/lightning-flow-scanner-core 6.17.1 → 6.17.2
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 +642 -0
- package/package.json +9 -58
- package/.husky/pre-commit +0 -1
- package/.husky/pre-push +0 -1
- package/.prettierignore +0 -5
- package/.swcrc +0 -26
- package/.turbo/turbo-build.log +0 -17
- package/.turbo/turbo-test.log +0 -144
- package/.turbo/turbo-vite$colon$dist.log +0 -21
- package/coverage/coverage-final.json +0 -63
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -236
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -210
- package/coverage/lcov-report/src/index.html +0 -116
- package/coverage/lcov-report/src/index.ts.html +0 -238
- package/coverage/lcov-report/src/main/adapters/RegexAdapter.ts.html +0 -118
- package/coverage/lcov-report/src/main/adapters/index.html +0 -116
- package/coverage/lcov-report/src/main/config/NodeIcons.ts.html +0 -376
- package/coverage/lcov-report/src/main/config/RuleRegistry.ts.html +0 -646
- package/coverage/lcov-report/src/main/config/VariableIcons.ts.html +0 -253
- package/coverage/lcov-report/src/main/config/index.html +0 -146
- package/coverage/lcov-report/src/main/enums/MetaType.ts.html +0 -100
- package/coverage/lcov-report/src/main/enums/MetadataType.ts.html +0 -103
- package/coverage/lcov-report/src/main/enums/MetadataTypes.ts.html +0 -100
- package/coverage/lcov-report/src/main/enums/index.html +0 -116
- package/coverage/lcov-report/src/main/interfaces/IRulesConfig.ts.html +0 -133
- package/coverage/lcov-report/src/main/interfaces/index.html +0 -116
- package/coverage/lcov-report/src/main/internals/index.html +0 -116
- package/coverage/lcov-report/src/main/internals/internals.ts.html +0 -190
- package/coverage/lcov-report/src/main/libs/BuildFlow.ts.html +0 -127
- package/coverage/lcov-report/src/main/libs/Compiler.ts.html +0 -241
- package/coverage/lcov-report/src/main/libs/ConvertFlowNodes.ts.html +0 -97
- package/coverage/lcov-report/src/main/libs/DynamicRule.ts.html +0 -118
- package/coverage/lcov-report/src/main/libs/ExportDetails.ts.html +0 -256
- package/coverage/lcov-report/src/main/libs/ExportDiagram.ts.html +0 -331
- package/coverage/lcov-report/src/main/libs/ExportSarif.ts.html +0 -358
- package/coverage/lcov-report/src/main/libs/FixFlows.ts.html +0 -265
- package/coverage/lcov-report/src/main/libs/GenerateMarkdown.ts.html +0 -331
- package/coverage/lcov-report/src/main/libs/GetRuleDefinitions.ts.html +0 -274
- package/coverage/lcov-report/src/main/libs/ParseFlows.ts.html +0 -184
- package/coverage/lcov-report/src/main/libs/RuleDocumentation.ts.html +0 -190
- package/coverage/lcov-report/src/main/libs/ScanFlows.ts.html +0 -508
- package/coverage/lcov-report/src/main/libs/exportAsDetails.ts.html +0 -160
- package/coverage/lcov-report/src/main/libs/exportAsSarif.ts.html +0 -346
- package/coverage/lcov-report/src/main/libs/index.html +0 -251
- package/coverage/lcov-report/src/main/models/FlatViolation.ts.html +0 -106
- package/coverage/lcov-report/src/main/models/Flow.ts.html +0 -1057
- package/coverage/lcov-report/src/main/models/FlowAttribute.ts.html +0 -115
- package/coverage/lcov-report/src/main/models/FlowElement.ts.html +0 -133
- package/coverage/lcov-report/src/main/models/FlowElementConnector.ts.html +0 -169
- package/coverage/lcov-report/src/main/models/FlowGraph.ts.html +0 -1672
- package/coverage/lcov-report/src/main/models/FlowMetadata.ts.html +0 -106
- package/coverage/lcov-report/src/main/models/FlowNode.ts.html +0 -1252
- package/coverage/lcov-report/src/main/models/FlowResource.ts.html +0 -106
- package/coverage/lcov-report/src/main/models/FlowType.ts.html +0 -244
- package/coverage/lcov-report/src/main/models/FlowVariable.ts.html +0 -553
- package/coverage/lcov-report/src/main/models/LoopRuleCommon.ts.html +0 -235
- package/coverage/lcov-report/src/main/models/ParsedFlow.ts.html +0 -121
- package/coverage/lcov-report/src/main/models/RuleCommon.ts.html +0 -442
- package/coverage/lcov-report/src/main/models/RuleResult.ts.html +0 -172
- package/coverage/lcov-report/src/main/models/ScanResult.ts.html +0 -121
- package/coverage/lcov-report/src/main/models/Violation.ts.html +0 -316
- package/coverage/lcov-report/src/main/models/index.html +0 -341
- package/coverage/lcov-report/src/main/rules/APIVersion.ts.html +0 -361
- package/coverage/lcov-report/src/main/rules/ActionCallsInLoop.ts.html +0 -157
- package/coverage/lcov-report/src/main/rules/AutoLayout.ts.html +0 -220
- package/coverage/lcov-report/src/main/rules/CopyAPIName.ts.html +0 -175
- package/coverage/lcov-report/src/main/rules/CyclomaticComplexity.ts.html +0 -292
- package/coverage/lcov-report/src/main/rules/DMLStatementInLoop.ts.html +0 -163
- package/coverage/lcov-report/src/main/rules/DuplicateDMLOperation.ts.html +0 -334
- package/coverage/lcov-report/src/main/rules/FlowDescription.ts.html +0 -184
- package/coverage/lcov-report/src/main/rules/FlowName.ts.html +0 -229
- package/coverage/lcov-report/src/main/rules/GetRecordAllFields.ts.html +0 -280
- package/coverage/lcov-report/src/main/rules/HardcodedId.ts.html +0 -238
- package/coverage/lcov-report/src/main/rules/HardcodedSecret.ts.html +0 -238
- package/coverage/lcov-report/src/main/rules/HardcodedUrl.ts.html +0 -247
- package/coverage/lcov-report/src/main/rules/InactiveFlow.ts.html +0 -184
- package/coverage/lcov-report/src/main/rules/MissingFaultPath.ts.html +0 -397
- package/coverage/lcov-report/src/main/rules/MissingFilterRecordTrigger.ts.html +0 -229
- package/coverage/lcov-report/src/main/rules/MissingMetadataDescription.ts.html +0 -211
- package/coverage/lcov-report/src/main/rules/MissingNullHandler.ts.html +0 -460
- package/coverage/lcov-report/src/main/rules/MissingRecordTriggerFilter.ts.html +0 -235
- package/coverage/lcov-report/src/main/rules/ProcessBuilder.ts.html +0 -190
- package/coverage/lcov-report/src/main/rules/RecordIdAsString.ts.html +0 -274
- package/coverage/lcov-report/src/main/rules/RecursiveAfterUpdate.ts.html +0 -364
- package/coverage/lcov-report/src/main/rules/SOQLQueryInLoop.ts.html +0 -160
- package/coverage/lcov-report/src/main/rules/SameRecordFieldUpdates.ts.html +0 -283
- package/coverage/lcov-report/src/main/rules/TransformInsteadOfLoop.ts.html +0 -250
- package/coverage/lcov-report/src/main/rules/TriggerOrder.ts.html +0 -238
- package/coverage/lcov-report/src/main/rules/UnconnectedElement.ts.html +0 -178
- package/coverage/lcov-report/src/main/rules/UnsafeRunningContext.ts.html +0 -226
- package/coverage/lcov-report/src/main/rules/UnusedVariable.ts.html +0 -283
- package/coverage/lcov-report/src/main/rules/index.html +0 -521
- package/coverage/lcov-report/src/main/store/DefaultRuleStore.ts.html +0 -265
- package/coverage/lcov-report/src/main/store/RuleRegistry.ts.html +0 -118
- package/coverage/lcov-report/src/main/store/index.html +0 -116
- package/coverage/lcov.info +0 -6261
- package/eslint.config.mjs +0 -36
- package/jest.config.cjs +0 -32
- package/jest.env-setup.js +0 -101
- package/lint-staged.config.mjs +0 -8
- package/prettier.config.mjs +0 -5
- package/src/index.ts +0 -52
- package/src/main/config/NodeIcons.ts +0 -98
- package/src/main/config/RegexAdapter.ts +0 -98
- package/src/main/config/RuleRegistry.ts +0 -188
- package/src/main/config/VariableIcons.ts +0 -57
- package/src/main/enums/MetadataTypes.ts +0 -6
- package/src/main/interfaces/IExceptions.ts +0 -6
- package/src/main/interfaces/IRuleConfig.ts +0 -6
- package/src/main/interfaces/IRuleDefinition.ts +0 -15
- package/src/main/interfaces/IRuleOptions.ts +0 -5
- package/src/main/interfaces/IRulesConfig.ts +0 -17
- package/src/main/internals/internals.ts +0 -35
- package/src/main/libs/BuildFlow.ts +0 -14
- package/src/main/libs/Compiler.ts +0 -53
- package/src/main/libs/ExportDetails.ts +0 -58
- package/src/main/libs/ExportDiagram.ts +0 -83
- package/src/main/libs/ExportSarif.ts +0 -92
- package/src/main/libs/FixFlows.ts +0 -61
- package/src/main/libs/GetRuleDefinitions.ts +0 -64
- package/src/main/libs/ParseFlows.ts +0 -34
- package/src/main/libs/RuleDocumentation.ts +0 -35
- package/src/main/libs/ScanFlows.ts +0 -142
- package/src/main/models/FlatViolation.ts +0 -16
- package/src/main/models/Flow.ts +0 -325
- package/src/main/models/FlowAttribute.ts +0 -11
- package/src/main/models/FlowElement.ts +0 -16
- package/src/main/models/FlowElementConnector.ts +0 -28
- package/src/main/models/FlowGraph.ts +0 -530
- package/src/main/models/FlowMetadata.ts +0 -8
- package/src/main/models/FlowNode.ts +0 -390
- package/src/main/models/FlowResource.ts +0 -8
- package/src/main/models/FlowType.ts +0 -53
- package/src/main/models/FlowVariable.ts +0 -157
- package/src/main/models/LoopRuleCommon.ts +0 -51
- package/src/main/models/ParsedFlow.ts +0 -13
- package/src/main/models/RuleCommon.ts +0 -120
- package/src/main/models/RuleInfo.ts +0 -54
- package/src/main/models/RuleResult.ts +0 -29
- package/src/main/models/ScanResult.ts +0 -12
- package/src/main/models/Violation.ts +0 -78
- package/src/main/rules/APIVersion.ts +0 -93
- package/src/main/rules/ActionCallsInLoop.ts +0 -25
- package/src/main/rules/AutoLayout.ts +0 -46
- package/src/main/rules/CopyAPIName.ts +0 -31
- package/src/main/rules/CyclomaticComplexity.ts +0 -70
- package/src/main/rules/DMLStatementInLoop.ts +0 -26
- package/src/main/rules/DuplicateDMLOperation.ts +0 -83
- package/src/main/rules/FlowDescription.ts +0 -34
- package/src/main/rules/FlowName.ts +0 -49
- package/src/main/rules/GetRecordAllFields.ts +0 -65
- package/src/main/rules/HardcodedId.ts +0 -51
- package/src/main/rules/HardcodedSecret.ts +0 -51
- package/src/main/rules/HardcodedUrl.ts +0 -54
- package/src/main/rules/InactiveFlow.ts +0 -33
- package/src/main/rules/MissingFaultPath.ts +0 -105
- package/src/main/rules/MissingMetadataDescription.ts +0 -42
- package/src/main/rules/MissingNullHandler.ts +0 -126
- package/src/main/rules/MissingRecordTriggerFilter.ts +0 -51
- package/src/main/rules/ProcessBuilder.ts +0 -35
- package/src/main/rules/RecordIdAsString.ts +0 -64
- package/src/main/rules/RecursiveAfterUpdate.ts +0 -94
- package/src/main/rules/SOQLQueryInLoop.ts +0 -26
- package/src/main/rules/SameRecordFieldUpdates.ts +0 -66
- package/src/main/rules/TransformInsteadOfLoop.ts +0 -56
- package/src/main/rules/TriggerOrder.ts +0 -51
- package/src/main/rules/UnconnectedElement.ts +0 -32
- package/src/main/rules/UnsafeRunningContext.ts +0 -47
- package/src/main/rules/UnusedVariable.ts +0 -66
- package/stryker.config.mjs +0 -23
- package/tests/APIVersion.test.ts +0 -87
- package/tests/AutoLayout.test.ts +0 -41
- package/tests/Config.test.ts +0 -122
- package/tests/ConfigBetaMode.test.ts +0 -26
- package/tests/CopyAPIName.test.ts +0 -45
- package/tests/CyclomaticComplexity.test.ts +0 -125
- package/tests/DMLStatementInLoop.test.ts +0 -32
- package/tests/DuplicateDMLOperation.test.ts +0 -43
- package/tests/EnabledFalse.test.ts +0 -63
- package/tests/Exceptions.test.ts +0 -815
- package/tests/ExportSarif.test.ts +0 -62
- package/tests/FlowDescription.test.ts +0 -44
- package/tests/FlowDocumentation.test.ts +0 -74
- package/tests/FlowName.test.ts +0 -61
- package/tests/GetRecordElementAllFields.test.ts +0 -182
- package/tests/HardcodedId.test.ts +0 -16
- package/tests/HardcodedSecret.test.ts +0 -32
- package/tests/HardcodedUrl.test.ts +0 -253
- package/tests/InactiveFlow.test.ts +0 -103
- package/tests/MissingFaultPath.test.ts +0 -52
- package/tests/MissingMetadataDescription.test.ts +0 -25
- package/tests/MissingNullHandler.test.ts +0 -45
- package/tests/MissingRecordTriggerFilter.test.ts +0 -54
- package/tests/RecordIdAsString.test.ts +0 -60
- package/tests/RecursiveAfterUpdate.test.ts +0 -183
- package/tests/SOQLQueryInLoop.test.ts +0 -33
- package/tests/SameRecordFieldUpdates.test.ts +0 -205
- package/tests/SanityTest.test.ts +0 -15
- package/tests/TransformInsteadOfLoop.test.ts +0 -33
- package/tests/TriggerOrder.test.ts +0 -112
- package/tests/UnconnectedElement.test.ts +0 -76
- package/tests/UnsafeRunningContext.test.ts +0 -46
- package/tests/UnusedVariable.test.ts +0 -59
- package/tests/UnusedVariableExceptions.test.ts +0 -87
- package/tests/jsonfiles/MissingFaultPath_BeforeSave_Bypass.json +0 -128
- package/tests/jsonfiles/MissingFaultPath_WaitConditions.json +0 -102
- package/tests/jsonfiles/MissingFaultPath_WaitDate.json +0 -88
- package/tests/jsonfiles/MissingFaultPath_WaitDuration.json +0 -90
- package/tests/models/Flow.test.ts +0 -107
- package/tests/models/LoopRuleCommon.test.ts +0 -246
- package/tests/models/RuleCommon.test.ts +0 -41
- package/tsconfig.json +0 -28
- package/tsconfig.types.json +0 -26
- package/types/index.d.ts +0 -27
- package/types/index.d.ts.map +0 -1
- package/types/main/adapters/RegexAdapter.d.ts +0 -33
- package/types/main/adapters/RegexAdapter.d.ts.map +0 -1
- package/types/main/config/NodeIcons.d.ts +0 -25
- package/types/main/config/NodeIcons.d.ts.map +0 -1
- package/types/main/config/RegexAdapter.d.ts +0 -33
- package/types/main/config/RegexAdapter.d.ts.map +0 -1
- package/types/main/config/RuleRegistry.d.ts +0 -23
- package/types/main/config/RuleRegistry.d.ts.map +0 -1
- package/types/main/config/VariableIcons.d.ts +0 -26
- package/types/main/config/VariableIcons.d.ts.map +0 -1
- package/types/main/enums/MetadataTypes.d.ts +0 -7
- package/types/main/enums/MetadataTypes.d.ts.map +0 -1
- package/types/main/interfaces/IExceptions.d.ts +0 -6
- package/types/main/interfaces/IExceptions.d.ts.map +0 -1
- package/types/main/interfaces/IRuleConfig.d.ts +0 -7
- package/types/main/interfaces/IRuleConfig.d.ts.map +0 -1
- package/types/main/interfaces/IRuleDefinition.d.ts +0 -18
- package/types/main/interfaces/IRuleDefinition.d.ts.map +0 -1
- package/types/main/interfaces/IRuleOptions.d.ts +0 -5
- package/types/main/interfaces/IRuleOptions.d.ts.map +0 -1
- package/types/main/interfaces/IRulesConfig.d.ts +0 -16
- package/types/main/interfaces/IRulesConfig.d.ts.map +0 -1
- package/types/main/internals/internals.d.ts +0 -19
- package/types/main/internals/internals.d.ts.map +0 -1
- package/types/main/libs/BuildFlow.d.ts +0 -2
- package/types/main/libs/BuildFlow.d.ts.map +0 -1
- package/types/main/libs/Compiler.d.ts +0 -8
- package/types/main/libs/Compiler.d.ts.map +0 -1
- package/types/main/libs/ConvertFlowNodes.d.ts +0 -2
- package/types/main/libs/ConvertFlowNodes.d.ts.map +0 -1
- package/types/main/libs/DynamicRule.d.ts +0 -5
- package/types/main/libs/DynamicRule.d.ts.map +0 -1
- package/types/main/libs/ExportDetails.d.ts +0 -4
- package/types/main/libs/ExportDetails.d.ts.map +0 -1
- package/types/main/libs/ExportDiagram.d.ts +0 -42
- package/types/main/libs/ExportDiagram.d.ts.map +0 -1
- package/types/main/libs/ExportSarif.d.ts +0 -3
- package/types/main/libs/ExportSarif.d.ts.map +0 -1
- package/types/main/libs/FixFlows.d.ts +0 -4
- package/types/main/libs/FixFlows.d.ts.map +0 -1
- package/types/main/libs/GetRuleDefinitions.d.ts +0 -5
- package/types/main/libs/GetRuleDefinitions.d.ts.map +0 -1
- package/types/main/libs/ParseFlows.d.ts +0 -3
- package/types/main/libs/ParseFlows.d.ts.map +0 -1
- package/types/main/libs/RuleDocumentation.d.ts +0 -21
- package/types/main/libs/RuleDocumentation.d.ts.map +0 -1
- package/types/main/libs/ScanFlows.d.ts +0 -5
- package/types/main/libs/ScanFlows.d.ts.map +0 -1
- package/types/main/libs/exportAsDetails.d.ts +0 -4
- package/types/main/libs/exportAsDetails.d.ts.map +0 -1
- package/types/main/libs/exportAsSarif.d.ts +0 -3
- package/types/main/libs/exportAsSarif.d.ts.map +0 -1
- package/types/main/models/FlatViolation.d.ts +0 -16
- package/types/main/models/FlatViolation.d.ts.map +0 -1
- package/types/main/models/Flow.d.ts +0 -70
- package/types/main/models/Flow.d.ts.map +0 -1
- package/types/main/models/FlowAttribute.d.ts +0 -6
- package/types/main/models/FlowAttribute.d.ts.map +0 -1
- package/types/main/models/FlowElement.d.ts +0 -11
- package/types/main/models/FlowElement.d.ts.map +0 -1
- package/types/main/models/FlowElementConnector.d.ts +0 -16
- package/types/main/models/FlowElementConnector.d.ts.map +0 -1
- package/types/main/models/FlowGraph.d.ts +0 -86
- package/types/main/models/FlowGraph.d.ts.map +0 -1
- package/types/main/models/FlowMetadata.d.ts +0 -5
- package/types/main/models/FlowMetadata.d.ts.map +0 -1
- package/types/main/models/FlowNode.d.ts +0 -66
- package/types/main/models/FlowNode.d.ts.map +0 -1
- package/types/main/models/FlowResource.d.ts +0 -5
- package/types/main/models/FlowResource.d.ts.map +0 -1
- package/types/main/models/FlowType.d.ts +0 -24
- package/types/main/models/FlowType.d.ts.map +0 -1
- package/types/main/models/FlowVariable.d.ts +0 -64
- package/types/main/models/FlowVariable.d.ts.map +0 -1
- package/types/main/models/LoopRuleCommon.d.ts +0 -15
- package/types/main/models/LoopRuleCommon.d.ts.map +0 -1
- package/types/main/models/ParsedFlow.d.ts +0 -8
- package/types/main/models/ParsedFlow.d.ts.map +0 -1
- package/types/main/models/RuleCommon.d.ts +0 -58
- package/types/main/models/RuleCommon.d.ts.map +0 -1
- package/types/main/models/RuleInfo.d.ts +0 -50
- package/types/main/models/RuleInfo.d.ts.map +0 -1
- package/types/main/models/RuleResult.d.ts +0 -15
- package/types/main/models/RuleResult.d.ts.map +0 -1
- package/types/main/models/ScanResult.d.ts +0 -8
- package/types/main/models/ScanResult.d.ts.map +0 -1
- package/types/main/models/Violation.d.ts +0 -12
- package/types/main/models/Violation.d.ts.map +0 -1
- package/types/main/rules/APIVersion.d.ts +0 -10
- package/types/main/rules/APIVersion.d.ts.map +0 -1
- package/types/main/rules/ActionCallsInLoop.d.ts +0 -7
- package/types/main/rules/ActionCallsInLoop.d.ts.map +0 -1
- package/types/main/rules/AutoLayout.d.ts +0 -8
- package/types/main/rules/AutoLayout.d.ts.map +0 -1
- package/types/main/rules/CopyAPIName.d.ts +0 -8
- package/types/main/rules/CopyAPIName.d.ts.map +0 -1
- package/types/main/rules/CyclomaticComplexity.d.ts +0 -12
- package/types/main/rules/CyclomaticComplexity.d.ts.map +0 -1
- package/types/main/rules/DMLStatementInLoop.d.ts +0 -7
- package/types/main/rules/DMLStatementInLoop.d.ts.map +0 -1
- package/types/main/rules/DuplicateDMLOperation.d.ts +0 -9
- package/types/main/rules/DuplicateDMLOperation.d.ts.map +0 -1
- package/types/main/rules/FlowDescription.d.ts +0 -8
- package/types/main/rules/FlowDescription.d.ts.map +0 -1
- package/types/main/rules/FlowName.d.ts +0 -16
- package/types/main/rules/FlowName.d.ts.map +0 -1
- package/types/main/rules/GetRecordAllFields.d.ts +0 -8
- package/types/main/rules/GetRecordAllFields.d.ts.map +0 -1
- package/types/main/rules/HardcodedId.d.ts +0 -14
- package/types/main/rules/HardcodedId.d.ts.map +0 -1
- package/types/main/rules/HardcodedSecret.d.ts +0 -14
- package/types/main/rules/HardcodedSecret.d.ts.map +0 -1
- package/types/main/rules/HardcodedUrl.d.ts +0 -14
- package/types/main/rules/HardcodedUrl.d.ts.map +0 -1
- package/types/main/rules/InactiveFlow.d.ts +0 -8
- package/types/main/rules/InactiveFlow.d.ts.map +0 -1
- package/types/main/rules/MissingFaultPath.d.ts +0 -15
- package/types/main/rules/MissingFaultPath.d.ts.map +0 -1
- package/types/main/rules/MissingFilterRecordTrigger.d.ts +0 -8
- package/types/main/rules/MissingFilterRecordTrigger.d.ts.map +0 -1
- package/types/main/rules/MissingMetadataDescription.d.ts +0 -8
- package/types/main/rules/MissingMetadataDescription.d.ts.map +0 -1
- package/types/main/rules/MissingNullHandler.d.ts +0 -8
- package/types/main/rules/MissingNullHandler.d.ts.map +0 -1
- package/types/main/rules/MissingRecordTriggerFilter.d.ts +0 -8
- package/types/main/rules/MissingRecordTriggerFilter.d.ts.map +0 -1
- package/types/main/rules/ProcessBuilder.d.ts +0 -8
- package/types/main/rules/ProcessBuilder.d.ts.map +0 -1
- package/types/main/rules/RecordIdAsString.d.ts +0 -8
- package/types/main/rules/RecordIdAsString.d.ts.map +0 -1
- package/types/main/rules/RecursiveAfterUpdate.d.ts +0 -9
- package/types/main/rules/RecursiveAfterUpdate.d.ts.map +0 -1
- package/types/main/rules/SOQLQueryInLoop.d.ts +0 -7
- package/types/main/rules/SOQLQueryInLoop.d.ts.map +0 -1
- package/types/main/rules/SameRecordFieldUpdates.d.ts +0 -9
- package/types/main/rules/SameRecordFieldUpdates.d.ts.map +0 -1
- package/types/main/rules/TransformInsteadOfLoop.d.ts +0 -8
- package/types/main/rules/TransformInsteadOfLoop.d.ts.map +0 -1
- package/types/main/rules/TriggerOrder.d.ts +0 -8
- package/types/main/rules/TriggerOrder.d.ts.map +0 -1
- package/types/main/rules/UnconnectedElement.d.ts +0 -8
- package/types/main/rules/UnconnectedElement.d.ts.map +0 -1
- package/types/main/rules/UnsafeRunningContext.d.ts +0 -8
- package/types/main/rules/UnsafeRunningContext.d.ts.map +0 -1
- package/types/main/rules/UnusedVariable.d.ts +0 -8
- package/types/main/rules/UnusedVariable.d.ts.map +0 -1
- package/types/main/store/DefaultRuleStore.d.ts +0 -3
- package/types/main/store/DefaultRuleStore.d.ts.map +0 -1
- package/types/main/store/RuleRegistry.d.ts +0 -23
- package/types/main/store/RuleRegistry.d.ts.map +0 -1
- package/vite.config.ts +0 -33
- /package/{out/index.d.ts → index.d.ts} +0 -0
- /package/{out/index.js → index.js} +0 -0
- /package/{out/main → main}/config/NodeIcons.d.ts +0 -0
- /package/{out/main → main}/config/NodeIcons.js +0 -0
- /package/{out/main → main}/config/RegexAdapter.d.ts +0 -0
- /package/{out/main → main}/config/RegexAdapter.js +0 -0
- /package/{out/main → main}/config/RuleRegistry.d.ts +0 -0
- /package/{out/main → main}/config/RuleRegistry.js +0 -0
- /package/{out/main → main}/config/VariableIcons.d.ts +0 -0
- /package/{out/main → main}/config/VariableIcons.js +0 -0
- /package/{out/main → main}/enums/MetadataTypes.d.ts +0 -0
- /package/{out/main → main}/enums/MetadataTypes.js +0 -0
- /package/{out/main → main}/interfaces/IExceptions.d.ts +0 -0
- /package/{out/main → main}/interfaces/IExceptions.js +0 -0
- /package/{out/main → main}/interfaces/IRuleConfig.d.ts +0 -0
- /package/{out/main → main}/interfaces/IRuleConfig.js +0 -0
- /package/{out/main → main}/interfaces/IRuleDefinition.d.ts +0 -0
- /package/{out/main → main}/interfaces/IRuleDefinition.js +0 -0
- /package/{out/main → main}/interfaces/IRuleOptions.d.ts +0 -0
- /package/{out/main → main}/interfaces/IRuleOptions.js +0 -0
- /package/{out/main → main}/interfaces/IRulesConfig.d.ts +0 -0
- /package/{out/main → main}/interfaces/IRulesConfig.js +0 -0
- /package/{out/main → main}/internals/internals.d.ts +0 -0
- /package/{out/main → main}/internals/internals.js +0 -0
- /package/{out/main → main}/libs/BuildFlow.d.ts +0 -0
- /package/{out/main → main}/libs/BuildFlow.js +0 -0
- /package/{out/main → main}/libs/Compiler.d.ts +0 -0
- /package/{out/main → main}/libs/Compiler.js +0 -0
- /package/{out/main → main}/libs/ExportDetails.d.ts +0 -0
- /package/{out/main → main}/libs/ExportDetails.js +0 -0
- /package/{out/main → main}/libs/ExportDiagram.d.ts +0 -0
- /package/{out/main → main}/libs/ExportDiagram.js +0 -0
- /package/{out/main → main}/libs/ExportSarif.d.ts +0 -0
- /package/{out/main → main}/libs/ExportSarif.js +0 -0
- /package/{out/main → main}/libs/FixFlows.d.ts +0 -0
- /package/{out/main → main}/libs/FixFlows.js +0 -0
- /package/{out/main → main}/libs/GetRuleDefinitions.d.ts +0 -0
- /package/{out/main → main}/libs/GetRuleDefinitions.js +0 -0
- /package/{out/main → main}/libs/ParseFlows.d.ts +0 -0
- /package/{out/main → main}/libs/ParseFlows.js +0 -0
- /package/{out/main → main}/libs/RuleDocumentation.d.ts +0 -0
- /package/{out/main → main}/libs/RuleDocumentation.js +0 -0
- /package/{out/main → main}/libs/ScanFlows.d.ts +0 -0
- /package/{out/main → main}/libs/ScanFlows.js +0 -0
- /package/{out/main → main}/models/FlatViolation.d.ts +0 -0
- /package/{out/main → main}/models/FlatViolation.js +0 -0
- /package/{out/main → main}/models/Flow.d.ts +0 -0
- /package/{out/main → main}/models/Flow.js +0 -0
- /package/{out/main → main}/models/FlowAttribute.d.ts +0 -0
- /package/{out/main → main}/models/FlowAttribute.js +0 -0
- /package/{out/main → main}/models/FlowElement.d.ts +0 -0
- /package/{out/main → main}/models/FlowElement.js +0 -0
- /package/{out/main → main}/models/FlowElementConnector.d.ts +0 -0
- /package/{out/main → main}/models/FlowElementConnector.js +0 -0
- /package/{out/main → main}/models/FlowGraph.d.ts +0 -0
- /package/{out/main → main}/models/FlowGraph.js +0 -0
- /package/{out/main → main}/models/FlowMetadata.d.ts +0 -0
- /package/{out/main → main}/models/FlowMetadata.js +0 -0
- /package/{out/main → main}/models/FlowNode.d.ts +0 -0
- /package/{out/main → main}/models/FlowNode.js +0 -0
- /package/{out/main → main}/models/FlowResource.d.ts +0 -0
- /package/{out/main → main}/models/FlowResource.js +0 -0
- /package/{out/main → main}/models/FlowType.d.ts +0 -0
- /package/{out/main → main}/models/FlowType.js +0 -0
- /package/{out/main → main}/models/FlowVariable.d.ts +0 -0
- /package/{out/main → main}/models/FlowVariable.js +0 -0
- /package/{out/main → main}/models/LoopRuleCommon.d.ts +0 -0
- /package/{out/main → main}/models/LoopRuleCommon.js +0 -0
- /package/{out/main → main}/models/ParsedFlow.d.ts +0 -0
- /package/{out/main → main}/models/ParsedFlow.js +0 -0
- /package/{out/main → main}/models/RuleCommon.d.ts +0 -0
- /package/{out/main → main}/models/RuleCommon.js +0 -0
- /package/{out/main → main}/models/RuleInfo.d.ts +0 -0
- /package/{out/main → main}/models/RuleInfo.js +0 -0
- /package/{out/main → main}/models/RuleResult.d.ts +0 -0
- /package/{out/main → main}/models/RuleResult.js +0 -0
- /package/{out/main → main}/models/ScanResult.d.ts +0 -0
- /package/{out/main → main}/models/ScanResult.js +0 -0
- /package/{out/main → main}/models/Violation.d.ts +0 -0
- /package/{out/main → main}/models/Violation.js +0 -0
- /package/{out/main → main}/rules/APIVersion.d.ts +0 -0
- /package/{out/main → main}/rules/APIVersion.js +0 -0
- /package/{out/main → main}/rules/ActionCallsInLoop.d.ts +0 -0
- /package/{out/main → main}/rules/ActionCallsInLoop.js +0 -0
- /package/{out/main → main}/rules/AutoLayout.d.ts +0 -0
- /package/{out/main → main}/rules/AutoLayout.js +0 -0
- /package/{out/main → main}/rules/CopyAPIName.d.ts +0 -0
- /package/{out/main → main}/rules/CopyAPIName.js +0 -0
- /package/{out/main → main}/rules/CyclomaticComplexity.d.ts +0 -0
- /package/{out/main → main}/rules/CyclomaticComplexity.js +0 -0
- /package/{out/main → main}/rules/DMLStatementInLoop.d.ts +0 -0
- /package/{out/main → main}/rules/DMLStatementInLoop.js +0 -0
- /package/{out/main → main}/rules/DuplicateDMLOperation.d.ts +0 -0
- /package/{out/main → main}/rules/DuplicateDMLOperation.js +0 -0
- /package/{out/main → main}/rules/FlowDescription.d.ts +0 -0
- /package/{out/main → main}/rules/FlowDescription.js +0 -0
- /package/{out/main → main}/rules/FlowName.d.ts +0 -0
- /package/{out/main → main}/rules/FlowName.js +0 -0
- /package/{out/main → main}/rules/GetRecordAllFields.d.ts +0 -0
- /package/{out/main → main}/rules/GetRecordAllFields.js +0 -0
- /package/{out/main → main}/rules/HardcodedId.d.ts +0 -0
- /package/{out/main → main}/rules/HardcodedId.js +0 -0
- /package/{out/main → main}/rules/HardcodedSecret.d.ts +0 -0
- /package/{out/main → main}/rules/HardcodedSecret.js +0 -0
- /package/{out/main → main}/rules/HardcodedUrl.d.ts +0 -0
- /package/{out/main → main}/rules/HardcodedUrl.js +0 -0
- /package/{out/main → main}/rules/InactiveFlow.d.ts +0 -0
- /package/{out/main → main}/rules/InactiveFlow.js +0 -0
- /package/{out/main → main}/rules/MissingFaultPath.d.ts +0 -0
- /package/{out/main → main}/rules/MissingFaultPath.js +0 -0
- /package/{out/main → main}/rules/MissingMetadataDescription.d.ts +0 -0
- /package/{out/main → main}/rules/MissingMetadataDescription.js +0 -0
- /package/{out/main → main}/rules/MissingNullHandler.d.ts +0 -0
- /package/{out/main → main}/rules/MissingNullHandler.js +0 -0
- /package/{out/main → main}/rules/MissingRecordTriggerFilter.d.ts +0 -0
- /package/{out/main → main}/rules/MissingRecordTriggerFilter.js +0 -0
- /package/{out/main → main}/rules/ProcessBuilder.d.ts +0 -0
- /package/{out/main → main}/rules/ProcessBuilder.js +0 -0
- /package/{out/main → main}/rules/RecordIdAsString.d.ts +0 -0
- /package/{out/main → main}/rules/RecordIdAsString.js +0 -0
- /package/{out/main → main}/rules/RecursiveAfterUpdate.d.ts +0 -0
- /package/{out/main → main}/rules/RecursiveAfterUpdate.js +0 -0
- /package/{out/main → main}/rules/SOQLQueryInLoop.d.ts +0 -0
- /package/{out/main → main}/rules/SOQLQueryInLoop.js +0 -0
- /package/{out/main → main}/rules/SameRecordFieldUpdates.d.ts +0 -0
- /package/{out/main → main}/rules/SameRecordFieldUpdates.js +0 -0
- /package/{out/main → main}/rules/TransformInsteadOfLoop.d.ts +0 -0
- /package/{out/main → main}/rules/TransformInsteadOfLoop.js +0 -0
- /package/{out/main → main}/rules/TriggerOrder.d.ts +0 -0
- /package/{out/main → main}/rules/TriggerOrder.js +0 -0
- /package/{out/main → main}/rules/UnconnectedElement.d.ts +0 -0
- /package/{out/main → main}/rules/UnconnectedElement.js +0 -0
- /package/{out/main → main}/rules/UnsafeRunningContext.d.ts +0 -0
- /package/{out/main → main}/rules/UnsafeRunningContext.js +0 -0
- /package/{out/main → main}/rules/UnusedVariable.d.ts +0 -0
- /package/{out/main → main}/rules/UnusedVariable.js +0 -0
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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.17.
|
|
5
|
-
"main": "
|
|
4
|
+
"version": "6.17.2",
|
|
5
|
+
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"default": "./out/index.js"
|
|
8
|
+
"import": "./index.js",
|
|
9
|
+
"require": "./index.js",
|
|
10
|
+
"types": "./index.d.ts"
|
|
12
11
|
}
|
|
13
12
|
},
|
|
14
13
|
"engines": {
|
|
@@ -21,35 +20,8 @@
|
|
|
21
20
|
"directory": "packages/core"
|
|
22
21
|
},
|
|
23
22
|
"dependencies": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@jest/types": "30.0.1",
|
|
29
|
-
"@swc-node/jest": "1.9.1",
|
|
30
|
-
"@swc/cli": "0.7.7",
|
|
31
|
-
"@swc/core": "1.13.5",
|
|
32
|
-
"@swc/helpers": "0.5.17",
|
|
33
|
-
"@types/jest": "29.5.14",
|
|
34
|
-
"@types/node": "22.15.30",
|
|
35
|
-
"@types/semantic-release": "20.0.6",
|
|
36
|
-
"cross-env": "^10.1.0",
|
|
37
|
-
"eslint": "9.30.0",
|
|
38
|
-
"eslint-plugin-de-morgan": "1.3.0",
|
|
39
|
-
"eslint-plugin-github": "6.0.0",
|
|
40
|
-
"eslint-plugin-jest": "29.0.1",
|
|
41
|
-
"eslint-plugin-perfectionist": "4.15.0",
|
|
42
|
-
"eslint-plugin-sonarjs": "3.0.4",
|
|
43
|
-
"husky": "9.1.7",
|
|
44
|
-
"jest": "30.0.3",
|
|
45
|
-
"lint-staged": "^16.1.2",
|
|
46
|
-
"prettier": "3.6.2",
|
|
47
|
-
"rimraf": "^6.1.0",
|
|
48
|
-
"ts-node": "10.9.2",
|
|
49
|
-
"typescript": "5.8.3",
|
|
50
|
-
"typescript-eslint": "8.35.0",
|
|
51
|
-
"vite": "6.4.1",
|
|
52
|
-
"vite-plugin-node-polyfills": "0.23.0"
|
|
23
|
+
"@flow-scanner/regex-scanner": "1.0.0",
|
|
24
|
+
"fast-xml-parser": "^5.3.0"
|
|
53
25
|
},
|
|
54
26
|
"homepage": "https://flow-scanner.github.io/lightning-flow-scanner/",
|
|
55
27
|
"author": {
|
|
@@ -68,26 +40,5 @@
|
|
|
68
40
|
"security-scanner",
|
|
69
41
|
"static-analysis"
|
|
70
42
|
],
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
"build:js": "swc src --out-dir out --copy-files --strip-leading-paths --config-file .swcrc",
|
|
74
|
-
"build:types": "tsc -p tsconfig.types.json --declaration --emitDeclarationOnly --outDir out",
|
|
75
|
-
"prepare:publish": "node ../../.github/scripts/prepare-publish.js",
|
|
76
|
-
"copy:root-files:dist": "node -e \"['../../LICENSE.md'].forEach(f => { const n = f.split('/').pop(); if (require('fs').existsSync(f)) require('fs').copyFileSync(f, 'dist/'+n) })\"",
|
|
77
|
-
"____main____": "__DEVELOPER COMMANDS__",
|
|
78
|
-
"build": "npm run clean && npm run build:js && npm run build:types",
|
|
79
|
-
"test": "npm run test:umd",
|
|
80
|
-
"test:node": "jest",
|
|
81
|
-
"test:umd": "npm run build:js && vite build && npm run copy:root-files:dist && cross-env UMD_PATH=dist/lightning-flow-scanner-core.umd.js jest",
|
|
82
|
-
"link": "npm run build && npm link ./out",
|
|
83
|
-
"____pack____": "PACKAGING COMMANDS__",
|
|
84
|
-
"swc:sim:pack": "npm run build",
|
|
85
|
-
"vite:dist": "npm run build:js && vite build && npm run copy:root-files:dist",
|
|
86
|
-
"stryker": "npm i -g @stryker-mutator/core @stryker-mutator/jest-runner && stryker run",
|
|
87
|
-
"version:patch": "pnpm version patch --no-git-tag-version",
|
|
88
|
-
"version:minor": "pnpm version minor --no-git-tag-version",
|
|
89
|
-
"version:major": "pnpm version major --no-git-tag-version",
|
|
90
|
-
"publish:npm": "npm run build && npm run prepare:publish && cd out && npm publish",
|
|
91
|
-
"tag": "node ../../scripts/publish-core-tag.js"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
43
|
+
"types": "index.d.ts"
|
|
44
|
+
}
|
package/.husky/pre-commit
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
npm run precommit
|
package/.husky/pre-push
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
npm run prepush
|
package/.prettierignore
DELETED
package/.swcrc
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://swc.rs/schema.json",
|
|
3
|
-
"sourceMaps": false,
|
|
4
|
-
"module": {
|
|
5
|
-
"type": "commonjs",
|
|
6
|
-
"strictMode": true,
|
|
7
|
-
"noInterop": false,
|
|
8
|
-
"resolveFully": true
|
|
9
|
-
},
|
|
10
|
-
"jsc": {
|
|
11
|
-
"externalHelpers": false,
|
|
12
|
-
"target": "es2015",
|
|
13
|
-
"parser": {
|
|
14
|
-
"syntax": "typescript",
|
|
15
|
-
"tsx": true,
|
|
16
|
-
"decorators": true,
|
|
17
|
-
"dynamicImport": true
|
|
18
|
-
},
|
|
19
|
-
"transform": {
|
|
20
|
-
"legacyDecorator": true,
|
|
21
|
-
"decoratorMetadata": false
|
|
22
|
-
},
|
|
23
|
-
"keepClassNames": true
|
|
24
|
-
},
|
|
25
|
-
"minify": false // Disable for now; re-enable post-debug if needed for smaller JS
|
|
26
|
-
}
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @flow-scanner/lightning-flow-scanner-core@6.17.1 build C:\Users\Ruben\Documents\GitHub\lightning-flow-scanner-fresh\packages\core
|
|
3
|
-
> npm run clean && npm run build:js && npm run build:types
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> @flow-scanner/lightning-flow-scanner-core@6.17.1 clean
|
|
7
|
-
> rimraf out dist
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
> @flow-scanner/lightning-flow-scanner-core@6.17.1 build:js
|
|
11
|
-
> swc src --out-dir out --copy-files --strip-leading-paths --config-file .swcrc
|
|
12
|
-
|
|
13
|
-
Successfully compiled: 68 files with swc (250.78ms)
|
|
14
|
-
|
|
15
|
-
> @flow-scanner/lightning-flow-scanner-core@6.17.1 build:types
|
|
16
|
-
> tsc -p tsconfig.types.json --declaration --emitDeclarationOnly --outDir out
|
|
17
|
-
|
package/.turbo/turbo-test.log
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @flow-scanner/lightning-flow-scanner-core@6.17.0 test C:\Users\Ruben\Documents\GitHub\lightning-flow-scanner-fresh\packages\core
|
|
3
|
-
> npm run test:umd
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> @flow-scanner/lightning-flow-scanner-core@6.17.0 test:umd
|
|
7
|
-
> npm run build:js && vite build && npm run copy:root-files:dist && cross-env UMD_PATH=dist/lightning-flow-scanner-core.umd.js jest
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
> @flow-scanner/lightning-flow-scanner-core@6.17.0 build:js
|
|
11
|
-
> swc src --out-dir out --copy-files --strip-leading-paths --config-file .swcrc
|
|
12
|
-
|
|
13
|
-
Successfully compiled: 68 files with swc (151.24ms)
|
|
14
|
-
[36mvite v6.4.1 [32mbuilding for production...[36m[39m
|
|
15
|
-
transforming...
|
|
16
|
-
[32m✓[39m 78 modules transformed.
|
|
17
|
-
rendering chunks...
|
|
18
|
-
computing gzip size...
|
|
19
|
-
[2mdist/[22m[36mlightning-flow-scanner-core.umd.js [39m[1m[2m79.73 kB[22m[1m[22m[2m │ gzip: 23.47 kB[22m
|
|
20
|
-
[2mdist/[22m[36mlightning-flow-scanner-core.js [39m[1m[2m79.63 kB[22m[1m[22m[2m │ gzip: 23.36 kB[22m
|
|
21
|
-
[32m✓ built in 762ms[39m
|
|
22
|
-
|
|
23
|
-
> @flow-scanner/lightning-flow-scanner-core@6.17.0 copy:root-files:dist
|
|
24
|
-
> node -e "['../../LICENSE.md'].forEach(f => { const n = f.split('/').pop(); if (require('fs').existsSync(f)) require('fs').copyFileSync(f, 'dist/'+n) })"
|
|
25
|
-
|
|
26
|
-
PASS tests/HardcodedUrl.test.ts (6.032 s)
|
|
27
|
-
PASS tests/MissingMetadataDescription.test.ts (6.066 s)
|
|
28
|
-
PASS tests/MissingNullHandler.test.ts (6.103 s)
|
|
29
|
-
PASS tests/HardcodedSecret.test.ts (6.1 s)
|
|
30
|
-
PASS tests/AutoLayout.test.ts (6.106 s)
|
|
31
|
-
PASS tests/FlowDocumentation.test.ts (6.121 s)
|
|
32
|
-
PASS tests/FlowDescription.test.ts (6.131 s)
|
|
33
|
-
PASS tests/UnusedVariable.test.ts (6.131 s)
|
|
34
|
-
PASS tests/RecordIdAsString.test.ts (6.141 s)
|
|
35
|
-
PASS tests/UnusedVariableExceptions.test.ts (6.152 s)
|
|
36
|
-
PASS tests/CyclomaticComplexity.test.ts (6.156 s)
|
|
37
|
-
PASS tests/APIVersion.test.ts
|
|
38
|
-
PASS tests/DuplicateDMLOperation.test.ts
|
|
39
|
-
PASS tests/Config.test.ts
|
|
40
|
-
PASS tests/EnabledFalse.test.ts
|
|
41
|
-
PASS tests/RecursiveAfterUpdate.test.ts
|
|
42
|
-
PASS tests/CopyAPIName.test.ts
|
|
43
|
-
PASS tests/SanityTest.test.ts
|
|
44
|
-
PASS tests/TransformInsteadOfLoop.test.ts
|
|
45
|
-
PASS tests/UnconnectedElement.test.ts
|
|
46
|
-
PASS tests/SameRecordFieldUpdates.test.ts
|
|
47
|
-
PASS tests/GetRecordElementAllFields.test.ts
|
|
48
|
-
PASS tests/ConfigBetaMode.test.ts
|
|
49
|
-
PASS tests/models/Flow.test.ts
|
|
50
|
-
PASS tests/HardcodedId.test.ts
|
|
51
|
-
PASS tests/Exceptions.test.ts
|
|
52
|
-
PASS tests/SOQLQueryInLoop.test.ts
|
|
53
|
-
PASS tests/FlowName.test.ts
|
|
54
|
-
PASS tests/ExportSarif.test.ts
|
|
55
|
-
PASS tests/MissingFaultPath.test.ts
|
|
56
|
-
PASS tests/InactiveFlow.test.ts
|
|
57
|
-
PASS tests/TriggerOrder.test.ts
|
|
58
|
-
PASS tests/MissingRecordTriggerFilter.test.ts
|
|
59
|
-
PASS tests/models/LoopRuleCommon.test.ts
|
|
60
|
-
PASS tests/UnsafeRunningContext.test.ts
|
|
61
|
-
PASS tests/models/RuleCommon.test.ts
|
|
62
|
-
PASS tests/DMLStatementInLoop.test.ts
|
|
63
|
-
--------------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
64
|
-
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
65
|
-
--------------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
66
|
-
All files | 89.03 | 81.7 | 79.23 | 89.03 |
|
|
67
|
-
src | 100 | 100 | 100 | 100 |
|
|
68
|
-
index.ts | 100 | 100 | 100 | 100 |
|
|
69
|
-
src/main/adapters | 91.83 | 85.71 | 80 | 91.83 |
|
|
70
|
-
RegexAdapter.ts | 91.83 | 85.71 | 80 | 91.83 | 84-91
|
|
71
|
-
src/main/config | 80.46 | 90 | 44.44 | 80.46 |
|
|
72
|
-
NodeIcons.ts | 97.95 | 100 | 0 | 97.95 | 97-98
|
|
73
|
-
RuleRegistry.ts | 66.48 | 90 | 57.14 | 66.48 | 81-82,87-88,93-137,140-153
|
|
74
|
-
VariableIcons.ts | 96.49 | 100 | 0 | 96.49 | 56-57
|
|
75
|
-
src/main/enums | 100 | 100 | 100 | 100 |
|
|
76
|
-
MetadataTypes.ts | 100 | 100 | 100 | 100 |
|
|
77
|
-
src/main/interfaces | 100 | 100 | 100 | 100 |
|
|
78
|
-
IRulesConfig.ts | 100 | 100 | 100 | 100 |
|
|
79
|
-
src/main/internals | 100 | 100 | 100 | 100 |
|
|
80
|
-
internals.ts | 100 | 100 | 100 | 100 |
|
|
81
|
-
src/main/libs | 87.73 | 84.52 | 90.9 | 87.73 |
|
|
82
|
-
BuildFlow.ts | 100 | 100 | 100 | 100 |
|
|
83
|
-
Compiler.ts | 100 | 100 | 100 | 100 |
|
|
84
|
-
ExportDetails.ts | 6.89 | 100 | 0 | 6.89 | 5-58
|
|
85
|
-
ExportDiagram.ts | 100 | 100 | 100 | 100 |
|
|
86
|
-
ExportSarif.ts | 86.95 | 43.47 | 100 | 86.95 | 63-74
|
|
87
|
-
FixFlows.ts | 98.36 | 81.81 | 100 | 98.36 | 55
|
|
88
|
-
GetRuleDefinitions.ts | 92.18 | 100 | 50 | 92.18 | 60-64
|
|
89
|
-
ParseFlows.ts | 100 | 80 | 100 | 100 | 29
|
|
90
|
-
RuleDocumentation.ts | 94.28 | 66.66 | 100 | 94.28 | 30-31
|
|
91
|
-
ScanFlows.ts | 97.18 | 88.88 | 100 | 97.18 | 44-45,95,103
|
|
92
|
-
src/main/models | 84.19 | 75.82 | 67.44 | 84.19 |
|
|
93
|
-
Flow.ts | 93.84 | 79.66 | 90 | 93.84 | 137,147-148,152-153,159-160,185,200-201,233-236,262-263,295-298
|
|
94
|
-
FlowAttribute.ts | 100 | 100 | 100 | 100 |
|
|
95
|
-
FlowElement.ts | 100 | 100 | 100 | 100 |
|
|
96
|
-
FlowElementConnector.ts | 100 | 100 | 100 | 100 |
|
|
97
|
-
FlowGraph.ts | 80.75 | 67.41 | 73.52 | 80.75 | 33-35,75-90,159-160,167-168,171-172,185-187,190-191,198-199,247-248,284-285,292-301,343-344,350-351,363-364,375-383,452-458,462-463,472-476,503-529
|
|
98
|
-
FlowMetadata.ts | 100 | 100 | 100 | 100 |
|
|
99
|
-
FlowNode.ts | 78.71 | 70.11 | 60 | 78.71 | 64-65,71-72,78-79,116-118,121-122,152-154,160-161,164-165,168-169,172-173,176-177,193-196,203-204,233-237,246-255,324-343,353-359,370-371,373-374,377-379,385-388
|
|
100
|
-
FlowResource.ts | 75 | 100 | 0 | 75 | 6-7
|
|
101
|
-
FlowType.ts | 100 | 100 | 100 | 100 |
|
|
102
|
-
FlowVariable.ts | 57.96 | 33.33 | 10 | 57.96 | 38-39,45-46,52-53,68,70-71,78-79,85-91,97-105,111-121,127-149,152-156
|
|
103
|
-
LoopRuleCommon.ts | 100 | 100 | 100 | 100 |
|
|
104
|
-
ParsedFlow.ts | 100 | 100 | 100 | 100 |
|
|
105
|
-
RuleCommon.ts | 86.66 | 85.71 | 42.85 | 86.66 | 33-34,50-51,66-67,77-78,88-89,100-105
|
|
106
|
-
RuleResult.ts | 100 | 75 | 100 | 100 | 19
|
|
107
|
-
ScanResult.ts | 100 | 100 | 100 | 100 |
|
|
108
|
-
Violation.ts | 100 | 94.11 | 100 | 100 | 46
|
|
109
|
-
src/main/rules | 96.11 | 86.27 | 96.72 | 96.11 |
|
|
110
|
-
APIVersion.ts | 81.72 | 66.66 | 100 | 81.72 | 33-38,43-53
|
|
111
|
-
ActionCallsInLoop.ts | 92 | 100 | 50 | 92 | 23-24
|
|
112
|
-
AutoLayout.ts | 100 | 90 | 100 | 100 | 38
|
|
113
|
-
CopyAPIName.ts | 100 | 100 | 100 | 100 |
|
|
114
|
-
CyclomaticComplexity.ts | 100 | 100 | 100 | 100 |
|
|
115
|
-
DMLStatementInLoop.ts | 100 | 100 | 100 | 100 |
|
|
116
|
-
DuplicateDMLOperation.ts | 100 | 84.21 | 100 | 100 | 27,40-44
|
|
117
|
-
FlowDescription.ts | 100 | 100 | 100 | 100 |
|
|
118
|
-
FlowName.ts | 100 | 100 | 100 | 100 |
|
|
119
|
-
GetRecordAllFields.ts | 100 | 91.66 | 100 | 100 | 54
|
|
120
|
-
HardcodedId.ts | 100 | 100 | 100 | 100 |
|
|
121
|
-
HardcodedSecret.ts | 100 | 100 | 100 | 100 |
|
|
122
|
-
HardcodedUrl.ts | 100 | 100 | 100 | 100 |
|
|
123
|
-
InactiveFlow.ts | 100 | 100 | 100 | 100 |
|
|
124
|
-
MissingFaultPath.ts | 96.19 | 96 | 100 | 96.19 | 41-44
|
|
125
|
-
MissingMetadataDescription.ts | 100 | 100 | 100 | 100 |
|
|
126
|
-
MissingNullHandler.ts | 84.12 | 52.94 | 100 | 84.12 | 42,52,56-60,74-77,96-97,101-102,106-107,110-112
|
|
127
|
-
MissingRecordTriggerFilter.ts | 100 | 100 | 100 | 100 |
|
|
128
|
-
ProcessBuilder.ts | 71.42 | 100 | 50 | 71.42 | 25-34
|
|
129
|
-
RecordIdAsString.ts | 96.87 | 87.5 | 100 | 96.87 | 42-43
|
|
130
|
-
RecursiveAfterUpdate.ts | 95.74 | 90 | 100 | 95.74 | 50-51,79-80
|
|
131
|
-
SOQLQueryInLoop.ts | 100 | 100 | 100 | 100 |
|
|
132
|
-
SameRecordFieldUpdates.ts | 100 | 88.88 | 100 | 100 | 52
|
|
133
|
-
TransformInsteadOfLoop.ts | 96.42 | 75 | 100 | 96.42 | 34-35
|
|
134
|
-
TriggerOrder.ts | 100 | 100 | 100 | 100 |
|
|
135
|
-
UnconnectedElement.ts | 100 | 87.5 | 100 | 100 | 22
|
|
136
|
-
UnsafeRunningContext.ts | 100 | 100 | 100 | 100 |
|
|
137
|
-
UnusedVariable.ts | 100 | 93.33 | 100 | 100 | 47
|
|
138
|
-
--------------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
139
|
-
|
|
140
|
-
Test Suites: 37 passed, 37 total
|
|
141
|
-
Tests: 3 skipped, 129 passed, 132 total
|
|
142
|
-
Snapshots: 0 total
|
|
143
|
-
Time: 17.425 s
|
|
144
|
-
Ran all test suites.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @flow-scanner/lightning-flow-scanner-core@6.11.1 vite:dist C:\Users\Ruben\Documents\GitHub\lightning-flow-scanner-fresh\packages\core
|
|
3
|
-
> npm run build:js && vite build && npm run copy:root-files:dist
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> @flow-scanner/lightning-flow-scanner-core@6.11.1 build:js
|
|
7
|
-
> swc src --out-dir out --copy-files --strip-leading-paths --config-file .swcrc
|
|
8
|
-
|
|
9
|
-
Successfully compiled: 67 files with swc (146.69ms)
|
|
10
|
-
[36mvite v6.4.1 [32mbuilding for production...[36m[39m
|
|
11
|
-
transforming...
|
|
12
|
-
[32m✓[39m 67 modules transformed.
|
|
13
|
-
rendering chunks...
|
|
14
|
-
computing gzip size...
|
|
15
|
-
[2mdist/[22m[36mlightning-flow-scanner-core.umd.js [39m[1m[2m62.13 kB[22m[1m[22m[2m │ gzip: 19.59 kB[22m
|
|
16
|
-
[2mdist/[22m[36mlightning-flow-scanner-core.js [39m[1m[2m62.01 kB[22m[1m[22m[2m │ gzip: 19.48 kB[22m
|
|
17
|
-
[32m✓ built in 610ms[39m
|
|
18
|
-
|
|
19
|
-
> @flow-scanner/lightning-flow-scanner-core@6.11.1 copy:root-files:dist
|
|
20
|
-
> node -e "['../../LICENSE.md'].forEach(f => { const n = f.split('/').pop(); if (require('fs').existsSync(f)) require('fs').copyFileSync(f, 'dist/'+n) })"
|
|
21
|
-
|