@flow-scanner/lightning-flow-scanner-core 6.16.2 → 6.17.1
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/.husky/pre-commit +1 -0
- package/.husky/pre-push +1 -0
- package/.prettierignore +5 -0
- package/.swcrc +26 -0
- package/.turbo/turbo-build.log +17 -0
- package/.turbo/turbo-test.log +144 -0
- package/.turbo/turbo-vite$colon$dist.log +21 -0
- package/coverage/coverage-final.json +63 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +236 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +210 -0
- package/coverage/lcov-report/src/index.html +116 -0
- package/coverage/lcov-report/src/index.ts.html +238 -0
- package/coverage/lcov-report/src/main/adapters/RegexAdapter.ts.html +118 -0
- package/coverage/lcov-report/src/main/adapters/index.html +116 -0
- package/coverage/lcov-report/src/main/config/NodeIcons.ts.html +376 -0
- package/coverage/lcov-report/src/main/config/RuleRegistry.ts.html +646 -0
- package/coverage/lcov-report/src/main/config/VariableIcons.ts.html +253 -0
- package/coverage/lcov-report/src/main/config/index.html +146 -0
- package/coverage/lcov-report/src/main/enums/MetaType.ts.html +100 -0
- package/coverage/lcov-report/src/main/enums/MetadataType.ts.html +103 -0
- package/coverage/lcov-report/src/main/enums/MetadataTypes.ts.html +100 -0
- package/coverage/lcov-report/src/main/enums/index.html +116 -0
- package/coverage/lcov-report/src/main/interfaces/IRulesConfig.ts.html +133 -0
- package/coverage/lcov-report/src/main/interfaces/index.html +116 -0
- package/coverage/lcov-report/src/main/internals/index.html +116 -0
- package/coverage/lcov-report/src/main/internals/internals.ts.html +190 -0
- package/coverage/lcov-report/src/main/libs/BuildFlow.ts.html +127 -0
- package/coverage/lcov-report/src/main/libs/Compiler.ts.html +241 -0
- package/coverage/lcov-report/src/main/libs/ConvertFlowNodes.ts.html +97 -0
- package/coverage/lcov-report/src/main/libs/DynamicRule.ts.html +118 -0
- package/coverage/lcov-report/src/main/libs/ExportDetails.ts.html +256 -0
- package/coverage/lcov-report/src/main/libs/ExportDiagram.ts.html +331 -0
- package/coverage/lcov-report/src/main/libs/ExportSarif.ts.html +358 -0
- package/coverage/lcov-report/src/main/libs/FixFlows.ts.html +265 -0
- package/coverage/lcov-report/src/main/libs/GenerateMarkdown.ts.html +331 -0
- package/coverage/lcov-report/src/main/libs/GetRuleDefinitions.ts.html +274 -0
- package/coverage/lcov-report/src/main/libs/ParseFlows.ts.html +184 -0
- package/coverage/lcov-report/src/main/libs/RuleDocumentation.ts.html +190 -0
- package/coverage/lcov-report/src/main/libs/ScanFlows.ts.html +508 -0
- package/coverage/lcov-report/src/main/libs/exportAsDetails.ts.html +160 -0
- package/coverage/lcov-report/src/main/libs/exportAsSarif.ts.html +346 -0
- package/coverage/lcov-report/src/main/libs/index.html +251 -0
- package/coverage/lcov-report/src/main/models/FlatViolation.ts.html +106 -0
- package/coverage/lcov-report/src/main/models/Flow.ts.html +1057 -0
- package/coverage/lcov-report/src/main/models/FlowAttribute.ts.html +115 -0
- package/coverage/lcov-report/src/main/models/FlowElement.ts.html +133 -0
- package/coverage/lcov-report/src/main/models/FlowElementConnector.ts.html +169 -0
- package/coverage/lcov-report/src/main/models/FlowGraph.ts.html +1672 -0
- package/coverage/lcov-report/src/main/models/FlowMetadata.ts.html +106 -0
- package/coverage/lcov-report/src/main/models/FlowNode.ts.html +1252 -0
- package/coverage/lcov-report/src/main/models/FlowResource.ts.html +106 -0
- package/coverage/lcov-report/src/main/models/FlowType.ts.html +244 -0
- package/coverage/lcov-report/src/main/models/FlowVariable.ts.html +553 -0
- package/coverage/lcov-report/src/main/models/LoopRuleCommon.ts.html +235 -0
- package/coverage/lcov-report/src/main/models/ParsedFlow.ts.html +121 -0
- package/coverage/lcov-report/src/main/models/RuleCommon.ts.html +442 -0
- package/coverage/lcov-report/src/main/models/RuleResult.ts.html +172 -0
- package/coverage/lcov-report/src/main/models/ScanResult.ts.html +121 -0
- package/coverage/lcov-report/src/main/models/Violation.ts.html +316 -0
- package/coverage/lcov-report/src/main/models/index.html +341 -0
- package/coverage/lcov-report/src/main/rules/APIVersion.ts.html +361 -0
- package/coverage/lcov-report/src/main/rules/ActionCallsInLoop.ts.html +157 -0
- package/coverage/lcov-report/src/main/rules/AutoLayout.ts.html +220 -0
- package/coverage/lcov-report/src/main/rules/CopyAPIName.ts.html +175 -0
- package/coverage/lcov-report/src/main/rules/CyclomaticComplexity.ts.html +292 -0
- package/coverage/lcov-report/src/main/rules/DMLStatementInLoop.ts.html +163 -0
- package/coverage/lcov-report/src/main/rules/DuplicateDMLOperation.ts.html +334 -0
- package/coverage/lcov-report/src/main/rules/FlowDescription.ts.html +184 -0
- package/coverage/lcov-report/src/main/rules/FlowName.ts.html +229 -0
- package/coverage/lcov-report/src/main/rules/GetRecordAllFields.ts.html +280 -0
- package/coverage/lcov-report/src/main/rules/HardcodedId.ts.html +238 -0
- package/coverage/lcov-report/src/main/rules/HardcodedSecret.ts.html +238 -0
- package/coverage/lcov-report/src/main/rules/HardcodedUrl.ts.html +247 -0
- package/coverage/lcov-report/src/main/rules/InactiveFlow.ts.html +184 -0
- package/coverage/lcov-report/src/main/rules/MissingFaultPath.ts.html +397 -0
- package/coverage/lcov-report/src/main/rules/MissingFilterRecordTrigger.ts.html +229 -0
- package/coverage/lcov-report/src/main/rules/MissingMetadataDescription.ts.html +211 -0
- package/coverage/lcov-report/src/main/rules/MissingNullHandler.ts.html +460 -0
- package/coverage/lcov-report/src/main/rules/MissingRecordTriggerFilter.ts.html +235 -0
- package/coverage/lcov-report/src/main/rules/ProcessBuilder.ts.html +190 -0
- package/coverage/lcov-report/src/main/rules/RecordIdAsString.ts.html +274 -0
- package/coverage/lcov-report/src/main/rules/RecursiveAfterUpdate.ts.html +364 -0
- package/coverage/lcov-report/src/main/rules/SOQLQueryInLoop.ts.html +160 -0
- package/coverage/lcov-report/src/main/rules/SameRecordFieldUpdates.ts.html +283 -0
- package/coverage/lcov-report/src/main/rules/TransformInsteadOfLoop.ts.html +250 -0
- package/coverage/lcov-report/src/main/rules/TriggerOrder.ts.html +238 -0
- package/coverage/lcov-report/src/main/rules/UnconnectedElement.ts.html +178 -0
- package/coverage/lcov-report/src/main/rules/UnsafeRunningContext.ts.html +226 -0
- package/coverage/lcov-report/src/main/rules/UnusedVariable.ts.html +283 -0
- package/coverage/lcov-report/src/main/rules/index.html +521 -0
- package/coverage/lcov-report/src/main/store/DefaultRuleStore.ts.html +265 -0
- package/coverage/lcov-report/src/main/store/RuleRegistry.ts.html +118 -0
- package/coverage/lcov-report/src/main/store/index.html +116 -0
- package/coverage/lcov.info +6261 -0
- package/eslint.config.mjs +36 -0
- package/jest.config.cjs +32 -0
- package/jest.env-setup.js +101 -0
- package/lint-staged.config.mjs +8 -0
- package/out/main/config/RegexAdapter.d.ts +32 -0
- package/out/main/config/RegexAdapter.js +86 -0
- package/{main → out/main}/config/RuleRegistry.js +2 -0
- package/out/main/rules/FlowName.d.ts +15 -0
- package/{main → out/main}/rules/FlowName.js +24 -11
- package/out/main/rules/HardcodedId.d.ts +13 -0
- package/{main → out/main}/rules/HardcodedId.js +23 -4
- package/out/main/rules/HardcodedSecret.d.ts +13 -0
- package/out/main/rules/HardcodedSecret.js +101 -0
- package/{main → out/main}/rules/HardcodedUrl.d.ts +6 -0
- package/{main → out/main}/rules/HardcodedUrl.js +23 -5
- package/package.json +58 -8
- package/prettier.config.mjs +5 -0
- package/src/index.ts +52 -0
- package/src/main/config/NodeIcons.ts +98 -0
- package/src/main/config/RegexAdapter.ts +98 -0
- package/src/main/config/RuleRegistry.ts +188 -0
- package/src/main/config/VariableIcons.ts +57 -0
- package/src/main/enums/MetadataTypes.ts +6 -0
- package/src/main/interfaces/IExceptions.ts +6 -0
- package/src/main/interfaces/IRuleConfig.ts +6 -0
- package/src/main/interfaces/IRuleDefinition.ts +15 -0
- package/src/main/interfaces/IRuleOptions.ts +5 -0
- package/src/main/interfaces/IRulesConfig.ts +17 -0
- package/src/main/internals/internals.ts +35 -0
- package/src/main/libs/BuildFlow.ts +14 -0
- package/src/main/libs/Compiler.ts +53 -0
- package/src/main/libs/ExportDetails.ts +58 -0
- package/src/main/libs/ExportDiagram.ts +83 -0
- package/src/main/libs/ExportSarif.ts +92 -0
- package/src/main/libs/FixFlows.ts +61 -0
- package/src/main/libs/GetRuleDefinitions.ts +64 -0
- package/src/main/libs/ParseFlows.ts +34 -0
- package/src/main/libs/RuleDocumentation.ts +35 -0
- package/src/main/libs/ScanFlows.ts +142 -0
- package/src/main/models/FlatViolation.ts +16 -0
- package/src/main/models/Flow.ts +325 -0
- package/src/main/models/FlowAttribute.ts +11 -0
- package/src/main/models/FlowElement.ts +16 -0
- package/src/main/models/FlowElementConnector.ts +28 -0
- package/src/main/models/FlowGraph.ts +530 -0
- package/src/main/models/FlowMetadata.ts +8 -0
- package/src/main/models/FlowNode.ts +390 -0
- package/src/main/models/FlowResource.ts +8 -0
- package/src/main/models/FlowType.ts +53 -0
- package/src/main/models/FlowVariable.ts +157 -0
- package/src/main/models/LoopRuleCommon.ts +51 -0
- package/src/main/models/ParsedFlow.ts +13 -0
- package/src/main/models/RuleCommon.ts +120 -0
- package/src/main/models/RuleInfo.ts +54 -0
- package/src/main/models/RuleResult.ts +29 -0
- package/src/main/models/ScanResult.ts +12 -0
- package/src/main/models/Violation.ts +78 -0
- package/src/main/rules/APIVersion.ts +93 -0
- package/src/main/rules/ActionCallsInLoop.ts +25 -0
- package/src/main/rules/AutoLayout.ts +46 -0
- package/src/main/rules/CopyAPIName.ts +31 -0
- package/src/main/rules/CyclomaticComplexity.ts +70 -0
- package/src/main/rules/DMLStatementInLoop.ts +26 -0
- package/src/main/rules/DuplicateDMLOperation.ts +83 -0
- package/src/main/rules/FlowDescription.ts +34 -0
- package/src/main/rules/FlowName.ts +49 -0
- package/src/main/rules/GetRecordAllFields.ts +65 -0
- package/src/main/rules/HardcodedId.ts +51 -0
- package/src/main/rules/HardcodedSecret.ts +51 -0
- package/src/main/rules/HardcodedUrl.ts +54 -0
- package/src/main/rules/InactiveFlow.ts +33 -0
- package/src/main/rules/MissingFaultPath.ts +105 -0
- package/src/main/rules/MissingMetadataDescription.ts +42 -0
- package/src/main/rules/MissingNullHandler.ts +126 -0
- package/src/main/rules/MissingRecordTriggerFilter.ts +51 -0
- package/src/main/rules/ProcessBuilder.ts +35 -0
- package/src/main/rules/RecordIdAsString.ts +64 -0
- package/src/main/rules/RecursiveAfterUpdate.ts +94 -0
- package/src/main/rules/SOQLQueryInLoop.ts +26 -0
- package/src/main/rules/SameRecordFieldUpdates.ts +66 -0
- package/src/main/rules/TransformInsteadOfLoop.ts +56 -0
- package/src/main/rules/TriggerOrder.ts +51 -0
- package/src/main/rules/UnconnectedElement.ts +32 -0
- package/src/main/rules/UnsafeRunningContext.ts +47 -0
- package/src/main/rules/UnusedVariable.ts +66 -0
- package/stryker.config.mjs +23 -0
- package/tests/APIVersion.test.ts +87 -0
- package/tests/AutoLayout.test.ts +41 -0
- package/tests/Config.test.ts +122 -0
- package/tests/ConfigBetaMode.test.ts +26 -0
- package/tests/CopyAPIName.test.ts +45 -0
- package/tests/CyclomaticComplexity.test.ts +125 -0
- package/tests/DMLStatementInLoop.test.ts +32 -0
- package/tests/DuplicateDMLOperation.test.ts +43 -0
- package/tests/EnabledFalse.test.ts +63 -0
- package/tests/Exceptions.test.ts +815 -0
- package/tests/ExportSarif.test.ts +62 -0
- package/tests/FlowDescription.test.ts +44 -0
- package/tests/FlowDocumentation.test.ts +74 -0
- package/tests/FlowName.test.ts +61 -0
- package/tests/GetRecordElementAllFields.test.ts +182 -0
- package/tests/HardcodedId.test.ts +16 -0
- package/tests/HardcodedSecret.test.ts +32 -0
- package/tests/HardcodedUrl.test.ts +253 -0
- package/tests/InactiveFlow.test.ts +103 -0
- package/tests/MissingFaultPath.test.ts +52 -0
- package/tests/MissingMetadataDescription.test.ts +25 -0
- package/tests/MissingNullHandler.test.ts +45 -0
- package/tests/MissingRecordTriggerFilter.test.ts +54 -0
- package/tests/RecordIdAsString.test.ts +60 -0
- package/tests/RecursiveAfterUpdate.test.ts +183 -0
- package/tests/SOQLQueryInLoop.test.ts +33 -0
- package/tests/SameRecordFieldUpdates.test.ts +205 -0
- package/tests/SanityTest.test.ts +15 -0
- package/tests/TransformInsteadOfLoop.test.ts +33 -0
- package/tests/TriggerOrder.test.ts +112 -0
- package/tests/UnconnectedElement.test.ts +76 -0
- package/tests/UnsafeRunningContext.test.ts +46 -0
- package/tests/UnusedVariable.test.ts +59 -0
- package/tests/UnusedVariableExceptions.test.ts +87 -0
- package/tests/jsonfiles/MissingFaultPath_BeforeSave_Bypass.json +128 -0
- package/tests/jsonfiles/MissingFaultPath_WaitConditions.json +102 -0
- package/tests/jsonfiles/MissingFaultPath_WaitDate.json +88 -0
- package/tests/jsonfiles/MissingFaultPath_WaitDuration.json +90 -0
- package/tests/models/Flow.test.ts +107 -0
- package/tests/models/LoopRuleCommon.test.ts +246 -0
- package/tests/models/RuleCommon.test.ts +41 -0
- package/tsconfig.json +28 -0
- package/tsconfig.types.json +26 -0
- package/types/index.d.ts +27 -0
- package/types/index.d.ts.map +1 -0
- package/types/main/adapters/RegexAdapter.d.ts +33 -0
- package/types/main/adapters/RegexAdapter.d.ts.map +1 -0
- package/types/main/config/NodeIcons.d.ts +25 -0
- package/types/main/config/NodeIcons.d.ts.map +1 -0
- package/types/main/config/RegexAdapter.d.ts +33 -0
- package/types/main/config/RegexAdapter.d.ts.map +1 -0
- package/types/main/config/RuleRegistry.d.ts +23 -0
- package/types/main/config/RuleRegistry.d.ts.map +1 -0
- package/types/main/config/VariableIcons.d.ts +26 -0
- package/types/main/config/VariableIcons.d.ts.map +1 -0
- package/types/main/enums/MetadataTypes.d.ts +7 -0
- package/types/main/enums/MetadataTypes.d.ts.map +1 -0
- package/types/main/interfaces/IExceptions.d.ts +6 -0
- package/types/main/interfaces/IExceptions.d.ts.map +1 -0
- package/types/main/interfaces/IRuleConfig.d.ts +7 -0
- package/types/main/interfaces/IRuleConfig.d.ts.map +1 -0
- package/types/main/interfaces/IRuleDefinition.d.ts +18 -0
- package/types/main/interfaces/IRuleDefinition.d.ts.map +1 -0
- package/types/main/interfaces/IRuleOptions.d.ts +5 -0
- package/types/main/interfaces/IRuleOptions.d.ts.map +1 -0
- package/types/main/interfaces/IRulesConfig.d.ts +16 -0
- package/types/main/interfaces/IRulesConfig.d.ts.map +1 -0
- package/types/main/internals/internals.d.ts +19 -0
- package/types/main/internals/internals.d.ts.map +1 -0
- package/types/main/libs/BuildFlow.d.ts +2 -0
- package/types/main/libs/BuildFlow.d.ts.map +1 -0
- package/types/main/libs/Compiler.d.ts +8 -0
- package/types/main/libs/Compiler.d.ts.map +1 -0
- package/types/main/libs/ConvertFlowNodes.d.ts +2 -0
- package/types/main/libs/ConvertFlowNodes.d.ts.map +1 -0
- package/types/main/libs/DynamicRule.d.ts +5 -0
- package/types/main/libs/DynamicRule.d.ts.map +1 -0
- package/types/main/libs/ExportDetails.d.ts +4 -0
- package/types/main/libs/ExportDetails.d.ts.map +1 -0
- package/types/main/libs/ExportDiagram.d.ts +42 -0
- package/types/main/libs/ExportDiagram.d.ts.map +1 -0
- package/types/main/libs/ExportSarif.d.ts +3 -0
- package/types/main/libs/ExportSarif.d.ts.map +1 -0
- package/types/main/libs/FixFlows.d.ts +4 -0
- package/types/main/libs/FixFlows.d.ts.map +1 -0
- package/types/main/libs/GetRuleDefinitions.d.ts +5 -0
- package/types/main/libs/GetRuleDefinitions.d.ts.map +1 -0
- package/types/main/libs/ParseFlows.d.ts +3 -0
- package/types/main/libs/ParseFlows.d.ts.map +1 -0
- package/types/main/libs/RuleDocumentation.d.ts +21 -0
- package/types/main/libs/RuleDocumentation.d.ts.map +1 -0
- package/types/main/libs/ScanFlows.d.ts +5 -0
- package/types/main/libs/ScanFlows.d.ts.map +1 -0
- package/types/main/libs/exportAsDetails.d.ts +4 -0
- package/types/main/libs/exportAsDetails.d.ts.map +1 -0
- package/types/main/libs/exportAsSarif.d.ts +3 -0
- package/types/main/libs/exportAsSarif.d.ts.map +1 -0
- package/types/main/models/FlatViolation.d.ts +16 -0
- package/types/main/models/FlatViolation.d.ts.map +1 -0
- package/types/main/models/Flow.d.ts +70 -0
- package/types/main/models/Flow.d.ts.map +1 -0
- package/types/main/models/FlowAttribute.d.ts +6 -0
- package/types/main/models/FlowAttribute.d.ts.map +1 -0
- package/types/main/models/FlowElement.d.ts +11 -0
- package/types/main/models/FlowElement.d.ts.map +1 -0
- package/types/main/models/FlowElementConnector.d.ts +16 -0
- package/types/main/models/FlowElementConnector.d.ts.map +1 -0
- package/types/main/models/FlowGraph.d.ts +86 -0
- package/types/main/models/FlowGraph.d.ts.map +1 -0
- package/types/main/models/FlowMetadata.d.ts +5 -0
- package/types/main/models/FlowMetadata.d.ts.map +1 -0
- package/types/main/models/FlowNode.d.ts +66 -0
- package/types/main/models/FlowNode.d.ts.map +1 -0
- package/types/main/models/FlowResource.d.ts +5 -0
- package/types/main/models/FlowResource.d.ts.map +1 -0
- package/types/main/models/FlowType.d.ts +24 -0
- package/types/main/models/FlowType.d.ts.map +1 -0
- package/types/main/models/FlowVariable.d.ts +64 -0
- package/types/main/models/FlowVariable.d.ts.map +1 -0
- package/types/main/models/LoopRuleCommon.d.ts +15 -0
- package/types/main/models/LoopRuleCommon.d.ts.map +1 -0
- package/types/main/models/ParsedFlow.d.ts +8 -0
- package/types/main/models/ParsedFlow.d.ts.map +1 -0
- package/types/main/models/RuleCommon.d.ts +58 -0
- package/types/main/models/RuleCommon.d.ts.map +1 -0
- package/types/main/models/RuleInfo.d.ts +50 -0
- package/types/main/models/RuleInfo.d.ts.map +1 -0
- package/types/main/models/RuleResult.d.ts +15 -0
- package/types/main/models/RuleResult.d.ts.map +1 -0
- package/types/main/models/ScanResult.d.ts +8 -0
- package/types/main/models/ScanResult.d.ts.map +1 -0
- package/types/main/models/Violation.d.ts +12 -0
- package/types/main/models/Violation.d.ts.map +1 -0
- package/{main/rules/FlowName.d.ts → types/main/rules/APIVersion.d.ts} +2 -1
- package/types/main/rules/APIVersion.d.ts.map +1 -0
- package/types/main/rules/ActionCallsInLoop.d.ts +7 -0
- package/types/main/rules/ActionCallsInLoop.d.ts.map +1 -0
- package/types/main/rules/AutoLayout.d.ts +8 -0
- package/types/main/rules/AutoLayout.d.ts.map +1 -0
- package/types/main/rules/CopyAPIName.d.ts +8 -0
- package/types/main/rules/CopyAPIName.d.ts.map +1 -0
- package/types/main/rules/CyclomaticComplexity.d.ts +12 -0
- package/types/main/rules/CyclomaticComplexity.d.ts.map +1 -0
- package/types/main/rules/DMLStatementInLoop.d.ts +7 -0
- package/types/main/rules/DMLStatementInLoop.d.ts.map +1 -0
- package/types/main/rules/DuplicateDMLOperation.d.ts +9 -0
- package/types/main/rules/DuplicateDMLOperation.d.ts.map +1 -0
- package/{main/rules/HardcodedId.d.ts → types/main/rules/FlowDescription.d.ts} +2 -1
- package/types/main/rules/FlowDescription.d.ts.map +1 -0
- package/types/main/rules/FlowName.d.ts +16 -0
- package/types/main/rules/FlowName.d.ts.map +1 -0
- package/types/main/rules/GetRecordAllFields.d.ts +8 -0
- package/types/main/rules/GetRecordAllFields.d.ts.map +1 -0
- package/types/main/rules/HardcodedId.d.ts +14 -0
- package/types/main/rules/HardcodedId.d.ts.map +1 -0
- package/types/main/rules/HardcodedSecret.d.ts +14 -0
- package/types/main/rules/HardcodedSecret.d.ts.map +1 -0
- package/types/main/rules/HardcodedUrl.d.ts +14 -0
- package/types/main/rules/HardcodedUrl.d.ts.map +1 -0
- package/types/main/rules/InactiveFlow.d.ts +8 -0
- package/types/main/rules/InactiveFlow.d.ts.map +1 -0
- package/types/main/rules/MissingFaultPath.d.ts +15 -0
- package/types/main/rules/MissingFaultPath.d.ts.map +1 -0
- package/types/main/rules/MissingFilterRecordTrigger.d.ts +8 -0
- package/types/main/rules/MissingFilterRecordTrigger.d.ts.map +1 -0
- package/types/main/rules/MissingMetadataDescription.d.ts +8 -0
- package/types/main/rules/MissingMetadataDescription.d.ts.map +1 -0
- package/types/main/rules/MissingNullHandler.d.ts +8 -0
- package/types/main/rules/MissingNullHandler.d.ts.map +1 -0
- package/types/main/rules/MissingRecordTriggerFilter.d.ts +8 -0
- package/types/main/rules/MissingRecordTriggerFilter.d.ts.map +1 -0
- package/types/main/rules/ProcessBuilder.d.ts +8 -0
- package/types/main/rules/ProcessBuilder.d.ts.map +1 -0
- package/types/main/rules/RecordIdAsString.d.ts +8 -0
- package/types/main/rules/RecordIdAsString.d.ts.map +1 -0
- package/types/main/rules/RecursiveAfterUpdate.d.ts +9 -0
- package/types/main/rules/RecursiveAfterUpdate.d.ts.map +1 -0
- package/types/main/rules/SOQLQueryInLoop.d.ts +7 -0
- package/types/main/rules/SOQLQueryInLoop.d.ts.map +1 -0
- package/types/main/rules/SameRecordFieldUpdates.d.ts +9 -0
- package/types/main/rules/SameRecordFieldUpdates.d.ts.map +1 -0
- package/types/main/rules/TransformInsteadOfLoop.d.ts +8 -0
- package/types/main/rules/TransformInsteadOfLoop.d.ts.map +1 -0
- package/types/main/rules/TriggerOrder.d.ts +8 -0
- package/types/main/rules/TriggerOrder.d.ts.map +1 -0
- package/types/main/rules/UnconnectedElement.d.ts +8 -0
- package/types/main/rules/UnconnectedElement.d.ts.map +1 -0
- package/types/main/rules/UnsafeRunningContext.d.ts +8 -0
- package/types/main/rules/UnsafeRunningContext.d.ts.map +1 -0
- package/types/main/rules/UnusedVariable.d.ts +8 -0
- package/types/main/rules/UnusedVariable.d.ts.map +1 -0
- package/types/main/store/DefaultRuleStore.d.ts +3 -0
- package/types/main/store/DefaultRuleStore.d.ts.map +1 -0
- package/types/main/store/RuleRegistry.d.ts +23 -0
- package/types/main/store/RuleRegistry.d.ts.map +1 -0
- package/vite.config.ts +33 -0
- package/README.md +0 -635
- /package/{index.d.ts → out/index.d.ts} +0 -0
- /package/{index.js → out/index.js} +0 -0
- /package/{main → out/main}/config/NodeIcons.d.ts +0 -0
- /package/{main → out/main}/config/NodeIcons.js +0 -0
- /package/{main → out/main}/config/RuleRegistry.d.ts +0 -0
- /package/{main → out/main}/config/VariableIcons.d.ts +0 -0
- /package/{main → out/main}/config/VariableIcons.js +0 -0
- /package/{main → out/main}/enums/MetadataTypes.d.ts +0 -0
- /package/{main → out/main}/enums/MetadataTypes.js +0 -0
- /package/{main → out/main}/interfaces/IExceptions.d.ts +0 -0
- /package/{main → out/main}/interfaces/IExceptions.js +0 -0
- /package/{main → out/main}/interfaces/IRuleConfig.d.ts +0 -0
- /package/{main → out/main}/interfaces/IRuleConfig.js +0 -0
- /package/{main → out/main}/interfaces/IRuleDefinition.d.ts +0 -0
- /package/{main → out/main}/interfaces/IRuleDefinition.js +0 -0
- /package/{main → out/main}/interfaces/IRuleOptions.d.ts +0 -0
- /package/{main → out/main}/interfaces/IRuleOptions.js +0 -0
- /package/{main → out/main}/interfaces/IRulesConfig.d.ts +0 -0
- /package/{main → out/main}/interfaces/IRulesConfig.js +0 -0
- /package/{main → out/main}/internals/internals.d.ts +0 -0
- /package/{main → out/main}/internals/internals.js +0 -0
- /package/{main → out/main}/libs/BuildFlow.d.ts +0 -0
- /package/{main → out/main}/libs/BuildFlow.js +0 -0
- /package/{main → out/main}/libs/Compiler.d.ts +0 -0
- /package/{main → out/main}/libs/Compiler.js +0 -0
- /package/{main → out/main}/libs/ExportDetails.d.ts +0 -0
- /package/{main → out/main}/libs/ExportDetails.js +0 -0
- /package/{main → out/main}/libs/ExportDiagram.d.ts +0 -0
- /package/{main → out/main}/libs/ExportDiagram.js +0 -0
- /package/{main → out/main}/libs/ExportSarif.d.ts +0 -0
- /package/{main → out/main}/libs/ExportSarif.js +0 -0
- /package/{main → out/main}/libs/FixFlows.d.ts +0 -0
- /package/{main → out/main}/libs/FixFlows.js +0 -0
- /package/{main → out/main}/libs/GetRuleDefinitions.d.ts +0 -0
- /package/{main → out/main}/libs/GetRuleDefinitions.js +0 -0
- /package/{main → out/main}/libs/ParseFlows.d.ts +0 -0
- /package/{main → out/main}/libs/ParseFlows.js +0 -0
- /package/{main → out/main}/libs/RuleDocumentation.d.ts +0 -0
- /package/{main → out/main}/libs/RuleDocumentation.js +0 -0
- /package/{main → out/main}/libs/ScanFlows.d.ts +0 -0
- /package/{main → out/main}/libs/ScanFlows.js +0 -0
- /package/{main → out/main}/models/FlatViolation.d.ts +0 -0
- /package/{main → out/main}/models/FlatViolation.js +0 -0
- /package/{main → out/main}/models/Flow.d.ts +0 -0
- /package/{main → out/main}/models/Flow.js +0 -0
- /package/{main → out/main}/models/FlowAttribute.d.ts +0 -0
- /package/{main → out/main}/models/FlowAttribute.js +0 -0
- /package/{main → out/main}/models/FlowElement.d.ts +0 -0
- /package/{main → out/main}/models/FlowElement.js +0 -0
- /package/{main → out/main}/models/FlowElementConnector.d.ts +0 -0
- /package/{main → out/main}/models/FlowElementConnector.js +0 -0
- /package/{main → out/main}/models/FlowGraph.d.ts +0 -0
- /package/{main → out/main}/models/FlowGraph.js +0 -0
- /package/{main → out/main}/models/FlowMetadata.d.ts +0 -0
- /package/{main → out/main}/models/FlowMetadata.js +0 -0
- /package/{main → out/main}/models/FlowNode.d.ts +0 -0
- /package/{main → out/main}/models/FlowNode.js +0 -0
- /package/{main → out/main}/models/FlowResource.d.ts +0 -0
- /package/{main → out/main}/models/FlowResource.js +0 -0
- /package/{main → out/main}/models/FlowType.d.ts +0 -0
- /package/{main → out/main}/models/FlowType.js +0 -0
- /package/{main → out/main}/models/FlowVariable.d.ts +0 -0
- /package/{main → out/main}/models/FlowVariable.js +0 -0
- /package/{main → out/main}/models/LoopRuleCommon.d.ts +0 -0
- /package/{main → out/main}/models/LoopRuleCommon.js +0 -0
- /package/{main → out/main}/models/ParsedFlow.d.ts +0 -0
- /package/{main → out/main}/models/ParsedFlow.js +0 -0
- /package/{main → out/main}/models/RuleCommon.d.ts +0 -0
- /package/{main → out/main}/models/RuleCommon.js +0 -0
- /package/{main → out/main}/models/RuleInfo.d.ts +0 -0
- /package/{main → out/main}/models/RuleInfo.js +0 -0
- /package/{main → out/main}/models/RuleResult.d.ts +0 -0
- /package/{main → out/main}/models/RuleResult.js +0 -0
- /package/{main → out/main}/models/ScanResult.d.ts +0 -0
- /package/{main → out/main}/models/ScanResult.js +0 -0
- /package/{main → out/main}/models/Violation.d.ts +0 -0
- /package/{main → out/main}/models/Violation.js +0 -0
- /package/{main → out/main}/rules/APIVersion.d.ts +0 -0
- /package/{main → out/main}/rules/APIVersion.js +0 -0
- /package/{main → out/main}/rules/ActionCallsInLoop.d.ts +0 -0
- /package/{main → out/main}/rules/ActionCallsInLoop.js +0 -0
- /package/{main → out/main}/rules/AutoLayout.d.ts +0 -0
- /package/{main → out/main}/rules/AutoLayout.js +0 -0
- /package/{main → out/main}/rules/CopyAPIName.d.ts +0 -0
- /package/{main → out/main}/rules/CopyAPIName.js +0 -0
- /package/{main → out/main}/rules/CyclomaticComplexity.d.ts +0 -0
- /package/{main → out/main}/rules/CyclomaticComplexity.js +0 -0
- /package/{main → out/main}/rules/DMLStatementInLoop.d.ts +0 -0
- /package/{main → out/main}/rules/DMLStatementInLoop.js +0 -0
- /package/{main → out/main}/rules/DuplicateDMLOperation.d.ts +0 -0
- /package/{main → out/main}/rules/DuplicateDMLOperation.js +0 -0
- /package/{main → out/main}/rules/FlowDescription.d.ts +0 -0
- /package/{main → out/main}/rules/FlowDescription.js +0 -0
- /package/{main → out/main}/rules/GetRecordAllFields.d.ts +0 -0
- /package/{main → out/main}/rules/GetRecordAllFields.js +0 -0
- /package/{main → out/main}/rules/InactiveFlow.d.ts +0 -0
- /package/{main → out/main}/rules/InactiveFlow.js +0 -0
- /package/{main → out/main}/rules/MissingFaultPath.d.ts +0 -0
- /package/{main → out/main}/rules/MissingFaultPath.js +0 -0
- /package/{main → out/main}/rules/MissingMetadataDescription.d.ts +0 -0
- /package/{main → out/main}/rules/MissingMetadataDescription.js +0 -0
- /package/{main → out/main}/rules/MissingNullHandler.d.ts +0 -0
- /package/{main → out/main}/rules/MissingNullHandler.js +0 -0
- /package/{main → out/main}/rules/MissingRecordTriggerFilter.d.ts +0 -0
- /package/{main → out/main}/rules/MissingRecordTriggerFilter.js +0 -0
- /package/{main → out/main}/rules/ProcessBuilder.d.ts +0 -0
- /package/{main → out/main}/rules/ProcessBuilder.js +0 -0
- /package/{main → out/main}/rules/RecordIdAsString.d.ts +0 -0
- /package/{main → out/main}/rules/RecordIdAsString.js +0 -0
- /package/{main → out/main}/rules/RecursiveAfterUpdate.d.ts +0 -0
- /package/{main → out/main}/rules/RecursiveAfterUpdate.js +0 -0
- /package/{main → out/main}/rules/SOQLQueryInLoop.d.ts +0 -0
- /package/{main → out/main}/rules/SOQLQueryInLoop.js +0 -0
- /package/{main → out/main}/rules/SameRecordFieldUpdates.d.ts +0 -0
- /package/{main → out/main}/rules/SameRecordFieldUpdates.js +0 -0
- /package/{main → out/main}/rules/TransformInsteadOfLoop.d.ts +0 -0
- /package/{main → out/main}/rules/TransformInsteadOfLoop.js +0 -0
- /package/{main → out/main}/rules/TriggerOrder.d.ts +0 -0
- /package/{main → out/main}/rules/TriggerOrder.js +0 -0
- /package/{main → out/main}/rules/UnconnectedElement.d.ts +0 -0
- /package/{main → out/main}/rules/UnconnectedElement.js +0 -0
- /package/{main → out/main}/rules/UnsafeRunningContext.d.ts +0 -0
- /package/{main → out/main}/rules/UnsafeRunningContext.js +0 -0
- /package/{main → out/main}/rules/UnusedVariable.d.ts +0 -0
- /package/{main → out/main}/rules/UnusedVariable.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
npm run precommit
|
package/.husky/pre-push
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
npm run prepush
|
package/.prettierignore
ADDED
package/.swcrc
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,144 @@
|
|
|
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.
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
|