@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,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the different types of Salesforce Flows and provides utility methods
|
|
3
|
+
* to categorize and retrieve them.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* This class defines static properties for various flow types, including backend,
|
|
7
|
+
* process builder, survey, visual, and unsupported types. It also provides a method
|
|
8
|
+
* to retrieve all supported flow types.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const allFlowTypes = FlowType.allTypes();
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare class FlowType {
|
|
16
|
+
static readonly autolaunchedType = "AutoLaunchedFlow";
|
|
17
|
+
static readonly backEndTypes: string[];
|
|
18
|
+
static readonly processBuilder: string[];
|
|
19
|
+
static readonly surveyTypes: string[];
|
|
20
|
+
static readonly unsupportedTypes: string[];
|
|
21
|
+
static readonly visualTypes: string[];
|
|
22
|
+
static readonly allTypes: () => any[];
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=FlowType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowType.d.ts","sourceRoot":"","sources":["../../../src/main/models/FlowType.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,qBAAa,QAAQ;IACnB,gBAAuB,gBAAgB,sBAAsB;IAE7D,gBAAuB,YAAY,WAOjC;IACF,gBAAuB,cAAc,WAAgB;IACrD,gBAAuB,WAAW,WAAc;IAChD,gBAAuB,gBAAgB,WAOrC;IACF,gBAAuB,WAAW,WAYhC;IAEF,gBAAuB,QAAQ,cAE7B;CACH"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { FlowElement } from "./FlowElement";
|
|
2
|
+
import { type VariableIconConfig } from "../config/VariableIcons";
|
|
3
|
+
export declare class FlowVariable extends FlowElement {
|
|
4
|
+
dataType?: string;
|
|
5
|
+
isCollection?: boolean;
|
|
6
|
+
isInput?: boolean;
|
|
7
|
+
isOutput?: boolean;
|
|
8
|
+
objectType?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
value?: any;
|
|
11
|
+
private static iconConfig;
|
|
12
|
+
/**
|
|
13
|
+
* Set custom icon configuration for all FlowVariables
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* // Use ASCII icons
|
|
17
|
+
* FlowVariable.setIconConfig(ASCII_VARIABLE_ICONS);
|
|
18
|
+
*
|
|
19
|
+
* // Or provide custom icons
|
|
20
|
+
* FlowVariable.setIconConfig({
|
|
21
|
+
* subtypes: {
|
|
22
|
+
* variables: '[VAR]',
|
|
23
|
+
* constants: '[CONST]'
|
|
24
|
+
* },
|
|
25
|
+
* boolean: {
|
|
26
|
+
* true: '[YES]',
|
|
27
|
+
* false: '[NO]'
|
|
28
|
+
* }
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
static setIconConfig(config: VariableIconConfig): void;
|
|
33
|
+
/**
|
|
34
|
+
* Use ASCII icons instead of emoji
|
|
35
|
+
*/
|
|
36
|
+
static useAsciiIcons(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Reset to default emoji icons
|
|
39
|
+
*/
|
|
40
|
+
static useDefaultIcons(): void;
|
|
41
|
+
constructor(name: string, subtype: string, element: object);
|
|
42
|
+
/**
|
|
43
|
+
* Get the icon for this variable subtype
|
|
44
|
+
*/
|
|
45
|
+
getIcon(): string;
|
|
46
|
+
/**
|
|
47
|
+
* Get icon for a boolean value
|
|
48
|
+
*/
|
|
49
|
+
private getBooleanIcon;
|
|
50
|
+
/**
|
|
51
|
+
* Get a human-readable type label
|
|
52
|
+
*/
|
|
53
|
+
getTypeLabel(): string;
|
|
54
|
+
/**
|
|
55
|
+
* Get a markdown table row for this variable
|
|
56
|
+
*/
|
|
57
|
+
toTableRow(): string;
|
|
58
|
+
/**
|
|
59
|
+
* Get a detailed markdown table for this variable
|
|
60
|
+
*/
|
|
61
|
+
toMarkdownTable(): string;
|
|
62
|
+
private formatValue;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=FlowVariable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowVariable.d.ts","sourceRoot":"","sources":["../../../src/main/models/FlowVariable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAgD,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAEhH,qBAAa,YAAa,SAAQ,WAAW;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;IAGnB,OAAO,CAAC,MAAM,CAAC,UAAU,CAA8C;IAEvE;;;;;;;;;;;;;;;;;;;OAmBG;WACW,aAAa,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAI7D;;OAEG;WACW,aAAa,IAAI,IAAI;IAInC;;OAEG;WACW,eAAe,IAAI,IAAI;gBAIzB,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAmB1D;;OAEG;IACI,OAAO,IAAI,MAAM;IAIxB;;OAEG;IACH,OAAO,CAAC,cAAc;IAStB;;OAEG;IACI,YAAY,IAAI,MAAM;IAW7B;;OAEG;IACI,UAAU,IAAI,MAAM;IAa3B;;OAEG;IACI,eAAe,IAAI,MAAM;IAyBhC,OAAO,CAAC,WAAW;CAMpB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
2
|
+
import { Flow, Violation } from "../internals/internals";
|
|
3
|
+
import { RuleCommon } from "./RuleCommon";
|
|
4
|
+
import { RuleInfo } from "./RuleInfo";
|
|
5
|
+
export declare abstract class LoopRuleCommon extends RuleCommon implements IRuleDefinition {
|
|
6
|
+
constructor(info: RuleInfo, optional?: {
|
|
7
|
+
severity?: string;
|
|
8
|
+
});
|
|
9
|
+
protected check(flow: Flow, _options: object | undefined, suppressions: Set<string>): Violation[];
|
|
10
|
+
protected abstract getStatementTypes(): string[];
|
|
11
|
+
private findLoopElements;
|
|
12
|
+
private findLoopEnd;
|
|
13
|
+
private findStatementsInLoops;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=LoopRuleCommon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoopRuleCommon.d.ts","sourceRoot":"","sources":["../../../src/main/models/LoopRuleCommon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,IAAI,EAAY,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,8BAAsB,cAAe,SAAQ,UAAW,YAAW,eAAe;gBACpE,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE;IAI5D,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,GACxB,SAAS,EAAE;IAYd,SAAS,CAAC,QAAQ,CAAC,iBAAiB,IAAI,MAAM,EAAE;IAEhD,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,qBAAqB;CAc9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParsedFlow.d.ts","sourceRoot":"","sources":["../../../src/main/models/ParsedFlow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,qBAAa,UAAU;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;gBACjB,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,EAAE,MAAM;CAO5D"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { RuleInfo } from "./RuleInfo";
|
|
2
|
+
import * as core from "../internals/internals";
|
|
3
|
+
export declare abstract class RuleCommon {
|
|
4
|
+
category?: 'problem' | 'suggestion' | 'layout';
|
|
5
|
+
description: string;
|
|
6
|
+
summary: string;
|
|
7
|
+
docRefs: Array<{
|
|
8
|
+
label: string;
|
|
9
|
+
path: string;
|
|
10
|
+
}>;
|
|
11
|
+
isConfigurable: boolean;
|
|
12
|
+
label: string;
|
|
13
|
+
name: string;
|
|
14
|
+
severity?: string;
|
|
15
|
+
supportedTypes: string[];
|
|
16
|
+
uri?: string;
|
|
17
|
+
readonly ruleId: string;
|
|
18
|
+
constructor(info: RuleInfo, optional?: {
|
|
19
|
+
severity?: string;
|
|
20
|
+
});
|
|
21
|
+
execute(flow: core.Flow, options?: object, suppressions?: string[]): core.RuleResult;
|
|
22
|
+
protected abstract check(flow: core.Flow, options: object | undefined, suppressions: Set<string>): core.Violation[];
|
|
23
|
+
protected isSuppressed(name: string, suppressions: Set<string>): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Get the start node (the special <start> element).
|
|
26
|
+
* This is now stored separately in flow.startNode, not in flow.elements.
|
|
27
|
+
*
|
|
28
|
+
* @param flow - The Flow instance
|
|
29
|
+
* @returns The start FlowNode or undefined if not found
|
|
30
|
+
*/
|
|
31
|
+
protected getStartNode(flow: core.Flow): core.FlowNode | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Get the reference name of the first actual element (what the flow starts at).
|
|
34
|
+
* This is the element that comes AFTER the start node.
|
|
35
|
+
*
|
|
36
|
+
* @param flow - The Flow instance
|
|
37
|
+
* @returns The start reference name or undefined
|
|
38
|
+
*/
|
|
39
|
+
protected getStartReference(flow: core.Flow): string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Find the INDEX of the first actual element in a FlowNode array.
|
|
42
|
+
* Useful for rules that need to iterate by index.
|
|
43
|
+
*
|
|
44
|
+
* @param flow - The Flow instance
|
|
45
|
+
* @param flowElements - Array of FlowNodes (typically from flow.elements)
|
|
46
|
+
* @returns The index of the starting element, or -1 if not found
|
|
47
|
+
*/
|
|
48
|
+
protected findStartIndex(flow: core.Flow, flowElements: core.FlowNode[]): number;
|
|
49
|
+
/**
|
|
50
|
+
* Safely get a property from the start element.
|
|
51
|
+
*
|
|
52
|
+
* @param flow - The Flow instance
|
|
53
|
+
* @param propertyName - The property to retrieve (e.g., 'triggerType', 'object')
|
|
54
|
+
* @returns The property value or undefined
|
|
55
|
+
*/
|
|
56
|
+
protected getStartProperty(flow: core.Flow, propertyName: string): any;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=RuleCommon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleCommon.d.ts","sourceRoot":"","sources":["../../../src/main/models/RuleCommon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAE/C,8BAAsB,UAAU;IACvB,QAAQ,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,QAAQ,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAM;IACrD,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACpB,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE;IAsBrD,OAAO,CACZ,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,CAAC,EAAE,MAAM,EAChB,YAAY,GAAE,MAAM,EAAO,GAC1B,IAAI,CAAC,UAAU;IAgBlB,SAAS,CAAC,QAAQ,CAAC,KAAK,CACtB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,GACxB,IAAI,CAAC,SAAS,EAAE;IAEnB,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,OAAO;IAIxE;;;;;;OAMG;IACH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,GAAG,SAAS;IAIlE;;;;;;OAMG;IACH,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,MAAM,GAAG,SAAS;IAIhE;;;;;;;OAOG;IACH,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM;IAQhF;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,GAAG,GAAG;CAMvE"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type RuleDefinitionExpression = {
|
|
2
|
+
options?: {
|
|
3
|
+
expression?: unknown;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Represents a rule metadata; this contains properties to describe the rule
|
|
8
|
+
*/
|
|
9
|
+
export declare class RuleInfo {
|
|
10
|
+
/**
|
|
11
|
+
* A human-readable description of the rule.
|
|
12
|
+
*/
|
|
13
|
+
description: string;
|
|
14
|
+
/**
|
|
15
|
+
* A short summary (5-10 words) used when no custom message is provided.
|
|
16
|
+
*/
|
|
17
|
+
summary: string;
|
|
18
|
+
/**
|
|
19
|
+
* An array of documentation references related to the rule.
|
|
20
|
+
*/
|
|
21
|
+
docRefs: Array<{
|
|
22
|
+
label: string;
|
|
23
|
+
path: string;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* The display label for the rule.
|
|
27
|
+
* This property is being displayed on sf cli and on vsce
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* The category for the rule.
|
|
32
|
+
* 'problem' | 'suggestion' | 'layout'
|
|
33
|
+
*/
|
|
34
|
+
category: 'problem' | 'suggestion' | 'layout';
|
|
35
|
+
/**
|
|
36
|
+
* Stable public identifier used for config, suppression, and reporting.
|
|
37
|
+
*/
|
|
38
|
+
ruleId: string;
|
|
39
|
+
/**
|
|
40
|
+
* Legacy rule name (class-based identifier).
|
|
41
|
+
* Kept for backward compatibility.
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* The types supported by this rule (e.g., Flow, Process).
|
|
46
|
+
* Use defined types in @see FlowType
|
|
47
|
+
*/
|
|
48
|
+
supportedTypes: string[];
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=RuleInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleInfo.d.ts","sourceRoot":"","sources":["../../../src/main/models/RuleInfo.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,CAAC,EAAE;QACR,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,qBAAa,QAAQ;IACnB;;OAEG;IACI,WAAW,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACI,OAAO,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACI,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEvD;;;OAGG;IACI,KAAK,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACI,QAAQ,EAAE,SAAS,GAAG,YAAY,GAAG,QAAQ,CAAC;IAErD;;OAEG;IACI,MAAM,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACI,IAAI,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACI,cAAc,EAAE,MAAM,EAAE,CAAC;CACjC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
2
|
+
import { Violation } from "./Violation";
|
|
3
|
+
export declare class RuleResult {
|
|
4
|
+
occurs: boolean;
|
|
5
|
+
ruleName: string;
|
|
6
|
+
ruleId: string;
|
|
7
|
+
ruleDefinition: IRuleDefinition;
|
|
8
|
+
severity: string;
|
|
9
|
+
details: Violation[];
|
|
10
|
+
errorMessage: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
messageUrl?: string;
|
|
13
|
+
constructor(info: IRuleDefinition, details: Violation[], errorMessage?: string);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=RuleResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleResult.d.ts","sourceRoot":"","sources":["../../../src/main/models/RuleResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,UAAU;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,eAAe,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,SAAS,EAAE,CAAM;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;gBAEf,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM;CAc/E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScanResult.d.ts","sourceRoot":"","sources":["../../../src/main/models/ScanResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,qBAAa,UAAU;IACd,IAAI,EAAE,IAAI,CAAC;IAEX,WAAW,EAAE,UAAU,EAAE,CAAC;gBACrB,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE;CAIlD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FlowElement } from "./FlowElement";
|
|
2
|
+
export declare class Violation {
|
|
3
|
+
columnNumber: number;
|
|
4
|
+
details?: object;
|
|
5
|
+
lineNumber: number;
|
|
6
|
+
metaType: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
constructor(violation: FlowElement);
|
|
10
|
+
}
|
|
11
|
+
export declare function enrichViolationsWithLineNumbers(violations: Violation[], flowXml: string): void;
|
|
12
|
+
//# sourceMappingURL=Violation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Violation.d.ts","sourceRoot":"","sources":["../../../src/main/models/Violation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,qBAAa,SAAS;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;gBAER,SAAS,EAAE,WAAW;CAwBnC;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,SAAS,EAAE,EACvB,OAAO,EAAE,MAAM,GACd,IAAI,CAiCN"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as core from "../internals/internals";
|
|
2
2
|
import { RuleCommon } from "../models/RuleCommon";
|
|
3
3
|
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class APIVersion extends RuleCommon implements IRuleDefinition {
|
|
5
5
|
constructor();
|
|
6
6
|
protected check(flow: core.Flow, options: {
|
|
7
7
|
expression?: string;
|
|
8
8
|
} | undefined, _suppressions: Set<string>): core.Violation[];
|
|
9
9
|
}
|
|
10
|
+
//# sourceMappingURL=APIVersion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"APIVersion.d.ts","sourceRoot":"","sources":["../../../src/main/rules/APIVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,UAAW,SAAQ,UAAW,YAAW,eAAe;;IAcnE,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,EAC5C,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,IAAI,CAAC,SAAS,EAAE;CAsEpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IRuleDefinition } from "../internals/internals";
|
|
2
|
+
import { LoopRuleCommon } from "../models/LoopRuleCommon";
|
|
3
|
+
export declare class ActionCallsInLoop extends LoopRuleCommon implements IRuleDefinition {
|
|
4
|
+
constructor();
|
|
5
|
+
protected getStatementTypes(): string[];
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ActionCallsInLoop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionCallsInLoop.d.ts","sourceRoot":"","sources":["../../../src/main/rules/ActionCallsInLoop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,qBAAa,iBAAkB,SAAQ,cAAe,YAAW,eAAe;;IAmB9E,SAAS,CAAC,iBAAiB,IAAI,MAAM,EAAE;CAGxC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
export declare class AutoLayout extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
constructor();
|
|
6
|
+
protected check(flow: core.Flow, _options: object | undefined): core.Violation[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=AutoLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoLayout.d.ts","sourceRoot":"","sources":["../../../src/main/rules/AutoLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,qBAAa,UAAW,SAAQ,UAAW,YAAW,eAAe;;IAcnE,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,IAAI,CAAC,SAAS,EAAE;CAyBpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
export declare class CopyAPIName extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
constructor();
|
|
6
|
+
protected check(flow: core.Flow): core.Violation[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=CopyAPIName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyAPIName.d.ts","sourceRoot":"","sources":["../../../src/main/rules/CopyAPIName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,qBAAa,WAAY,SAAQ,UAAW,YAAW,eAAe;;IAapE,SAAS,CAAC,KAAK,CACf,IAAI,EAAE,IAAI,CAAC,IAAI,GACd,IAAI,CAAC,SAAS,EAAE;CAYlB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
export declare class CyclomaticComplexity extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
private defaultThreshold;
|
|
6
|
+
private cyclomaticComplexityUnit;
|
|
7
|
+
constructor();
|
|
8
|
+
protected check(flow: core.Flow, options: {
|
|
9
|
+
threshold?: number;
|
|
10
|
+
} | undefined): core.Violation[];
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=CyclomaticComplexity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CyclomaticComplexity.d.ts","sourceRoot":"","sources":["../../../src/main/rules/CyclomaticComplexity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,oBAAqB,SAAQ,UAAW,YAAW,eAAe;IAC7E,OAAO,CAAC,gBAAgB,CAAc;IACtC,OAAO,CAAC,wBAAwB,CAAa;;IAuB7C,SAAS,CAAC,KAAK,CACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,GAC1C,IAAI,CAAC,SAAS,EAAE;CAqClB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IRuleDefinition } from "../internals/internals";
|
|
2
|
+
import { LoopRuleCommon } from "../models/LoopRuleCommon";
|
|
3
|
+
export declare class DMLStatementInLoop extends LoopRuleCommon implements IRuleDefinition {
|
|
4
|
+
constructor();
|
|
5
|
+
protected getStatementTypes(): string[];
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=DMLStatementInLoop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DMLStatementInLoop.d.ts","sourceRoot":"","sources":["../../../src/main/rules/DMLStatementInLoop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,qBAAa,kBAAmB,SAAQ,cAAe,YAAW,eAAe;;IAmB/E,SAAS,CAAC,iBAAiB,IAAI,MAAM,EAAE;CAGxC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
export declare class DuplicateDMLOperation extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
constructor();
|
|
6
|
+
protected check(flow: core.Flow, _options: object | undefined, suppressions: Set<string>): core.Violation[];
|
|
7
|
+
private isDML;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=DuplicateDMLOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DuplicateDMLOperation.d.ts","sourceRoot":"","sources":["../../../src/main/rules/DuplicateDMLOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,qBAAsB,SAAQ,UAAW,YAAW,eAAe;;IAc9E,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,GACxB,IAAI,CAAC,SAAS,EAAE;IAqDnB,OAAO,CAAC,KAAK;CAOd"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as core from "../internals/internals";
|
|
2
2
|
import { RuleCommon } from "../models/RuleCommon";
|
|
3
3
|
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class FlowDescription extends RuleCommon implements IRuleDefinition {
|
|
5
5
|
constructor();
|
|
6
6
|
protected check(flow: core.Flow, _options: object | undefined, _suppressions: Set<string>): core.Violation[];
|
|
7
7
|
}
|
|
8
|
+
//# sourceMappingURL=FlowDescription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowDescription.d.ts","sourceRoot":"","sources":["../../../src/main/rules/FlowDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,eAAgB,SAAQ,UAAW,YAAW,eAAe;;IAcxE,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,IAAI,CAAC,SAAS,EAAE;CAWpB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
/**
|
|
5
|
+
* Flow naming convention rule.
|
|
6
|
+
* This is a wrapper around the regex-scanner's NamingConvention rule,
|
|
7
|
+
* maintaining backward compatibility with the core scanner interface.
|
|
8
|
+
*/
|
|
9
|
+
export declare class FlowName extends RuleCommon implements IRuleDefinition {
|
|
10
|
+
private regexRule;
|
|
11
|
+
constructor();
|
|
12
|
+
protected check(flow: core.Flow, options: {
|
|
13
|
+
expression?: string;
|
|
14
|
+
} | undefined, _suppressions: Set<string>): core.Violation[];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=FlowName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowName.d.ts","sourceRoot":"","sources":["../../../src/main/rules/FlowName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE;;;;GAIG;AACH,qBAAa,QAAS,SAAQ,UAAW,YAAW,eAAe;IACjE,OAAO,CAAC,SAAS,CAA0B;;IAoB3C,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,EAC5C,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,IAAI,CAAC,SAAS,EAAE;CAYpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
export declare class GetRecordAllFields extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
constructor();
|
|
6
|
+
protected check(flow: core.Flow, _options: object | undefined, _suppressions: Set<string>): core.Violation[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=GetRecordAllFields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetRecordAllFields.d.ts","sourceRoot":"","sources":["../../../src/main/rules/GetRecordAllFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,kBAAmB,SAAQ,UAAW,YAAW,eAAe;;IA0B3E,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,IAAI,CAAC,SAAS,EAAE;CA8BpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
/**
|
|
5
|
+
* Hardcoded Salesforce ID detection rule.
|
|
6
|
+
* This is a wrapper around the regex-scanner's HardcodedId rule,
|
|
7
|
+
* maintaining backward compatibility with the core scanner interface.
|
|
8
|
+
*/
|
|
9
|
+
export declare class HardcodedId extends RuleCommon implements IRuleDefinition {
|
|
10
|
+
private regexRule;
|
|
11
|
+
constructor();
|
|
12
|
+
protected check(flow: core.Flow, _options: object | undefined, _suppressions: Set<string>): core.Violation[];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=HardcodedId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HardcodedId.d.ts","sourceRoot":"","sources":["../../../src/main/rules/HardcodedId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,UAAW,YAAW,eAAe;IACpE,OAAO,CAAC,SAAS,CAA0B;;IAwB3C,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,IAAI,CAAC,SAAS,EAAE;CAUpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
/**
|
|
5
|
+
* Hardcoded secrets detection rule.
|
|
6
|
+
* This is a wrapper around the regex-scanner's HardcodedSecret rule,
|
|
7
|
+
* maintaining backward compatibility with the core scanner interface.
|
|
8
|
+
*/
|
|
9
|
+
export declare class HardcodedSecret extends RuleCommon implements IRuleDefinition {
|
|
10
|
+
private regexRule;
|
|
11
|
+
constructor();
|
|
12
|
+
protected check(flow: core.Flow, _options: object | undefined, _suppressions: Set<string>): core.Violation[];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=HardcodedSecret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HardcodedSecret.d.ts","sourceRoot":"","sources":["../../../src/main/rules/HardcodedSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,UAAW,YAAW,eAAe;IACxE,OAAO,CAAC,SAAS,CAA8B;;IAwB/C,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,IAAI,CAAC,SAAS,EAAE;CAUpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Flow, Violation } from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
/**
|
|
5
|
+
* Hardcoded Salesforce URL detection rule.
|
|
6
|
+
* This is a wrapper around the regex-scanner's HardcodedUrl rule,
|
|
7
|
+
* maintaining backward compatibility with the core scanner interface.
|
|
8
|
+
*/
|
|
9
|
+
export declare class HardcodedUrl extends RuleCommon implements IRuleDefinition {
|
|
10
|
+
private regexRule;
|
|
11
|
+
constructor();
|
|
12
|
+
protected check(flow: Flow, _options: object | undefined, _suppressions: Set<string>): Violation[];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=HardcodedUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HardcodedUrl.d.ts","sourceRoot":"","sources":["../../../src/main/rules/HardcodedUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAY,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,UAAW,YAAW,eAAe;IACrE,OAAO,CAAC,SAAS,CAA2B;;IA2B5C,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,SAAS,EAAE;CAUf"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
export declare class InactiveFlow extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
constructor();
|
|
6
|
+
protected check(flow: core.Flow, _options: object | undefined, _suppressions: Set<string>): core.Violation[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=InactiveFlow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InactiveFlow.d.ts","sourceRoot":"","sources":["../../../src/main/rules/InactiveFlow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,YAAa,SAAQ,UAAW,YAAW,eAAe;;IAcrE,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,IAAI,CAAC,SAAS,EAAE;CAUpB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
export declare class MissingFaultPath extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
protected applicableElements: string[];
|
|
6
|
+
constructor();
|
|
7
|
+
private isValidSubtype;
|
|
8
|
+
protected check(flow: core.Flow, _options: object | undefined, suppressions: Set<string>): core.Violation[];
|
|
9
|
+
/**
|
|
10
|
+
* Determine if this is a RecordBeforeSave flow.
|
|
11
|
+
*/
|
|
12
|
+
private isRecordBeforeSaveFlow;
|
|
13
|
+
private isPartOfFaultHandlingFlow;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=MissingFaultPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MissingFaultPath.d.ts","sourceRoot":"","sources":["../../../src/main/rules/MissingFaultPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,gBAAiB,SAAQ,UAAW,YAAW,eAAe;IACzE,SAAS,CAAC,kBAAkB,EAAE,MAAM,EAAE,CAQpC;;IAoBF,OAAO,CAAC,cAAc;IAetB,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,GACxB,IAAI,CAAC,SAAS,EAAE;IAoCnB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAU9B,OAAO,CAAC,yBAAyB;CAGlC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
export declare class MissingFilterRecordTrigger extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
constructor();
|
|
6
|
+
protected check(flow: core.Flow, _options: object | undefined, _suppressions: Set<string>): core.Violation[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=MissingFilterRecordTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MissingFilterRecordTrigger.d.ts","sourceRoot":"","sources":["../../../src/main/rules/MissingFilterRecordTrigger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,0BAA2B,SAAQ,UAAW,YAAW,eAAe;;IAYnF,SAAS,CAAC,KAAK,CACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,IAAI,CAAC,SAAS,EAAE;CA4BlB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
2
|
+
import * as core from "../internals/internals";
|
|
3
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
4
|
+
export declare class MissingMetadataDescription extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
constructor();
|
|
6
|
+
protected check(flow: core.Flow, _options: object | undefined, _suppression: Set<string>): core.Violation[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=MissingMetadataDescription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MissingMetadataDescription.d.ts","sourceRoot":"","sources":["../../../src/main/rules/MissingMetadataDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,qBAAa,0BAA2B,SAAQ,UAAW,YAAW,eAAe;;IAcnF,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,GACxB,IAAI,CAAC,SAAS,EAAE;CAmBpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
export declare class MissingNullHandler extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
constructor();
|
|
6
|
+
protected check(flow: core.Flow, _options: object | undefined, suppressions: Set<string>): core.Violation[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=MissingNullHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MissingNullHandler.d.ts","sourceRoot":"","sources":["../../../src/main/rules/MissingNullHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,qBAAa,kBAAmB,SAAQ,UAAW,YAAW,eAAe;;IAc3E,SAAS,CAAC,KAAK,CACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,GACxB,IAAI,CAAC,SAAS,EAAE;CAwGpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
export declare class MissingRecordTriggerFilter extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
constructor();
|
|
6
|
+
protected check(flow: core.Flow, _options: object | undefined, _suppressions: Set<string>): core.Violation[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=MissingRecordTriggerFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MissingRecordTriggerFilter.d.ts","sourceRoot":"","sources":["../../../src/main/rules/MissingRecordTriggerFilter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,0BAA2B,SAAQ,UAAW,YAAW,eAAe;;IAcnF,SAAS,CAAC,KAAK,CACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,IAAI,CAAC,SAAS,EAAE;CA4BlB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as core from "../internals/internals";
|
|
2
|
+
import { RuleCommon } from "../models/RuleCommon";
|
|
3
|
+
import { IRuleDefinition } from "../interfaces/IRuleDefinition";
|
|
4
|
+
export declare class ProcessBuilder extends RuleCommon implements IRuleDefinition {
|
|
5
|
+
constructor();
|
|
6
|
+
protected check(flow: core.Flow, _options: object | undefined, _suppressions: Set<string>): core.Violation[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=ProcessBuilder.d.ts.map
|