Repository navigation
Integrate the Flow Analyzer engine into the Code Analyzer CLI - #2105
Open
antoinesfdc wants to merge 2 commits into
Open
antoinesfdc wants to merge 2 commits into
antoinesfdc wants to merge 2 commits into
Conversation
Adds @salesforce/code-analyzer-flowanalyzer-engine as a dependency, registers it in EnginePluginsFactory, and updates CodeAnalyzerConfigFactory, RulesAction and the rules command accordingly. Updates the rules/run command messages, adds a sample code-analyzer.yml that toggles engines, and updates the related tests.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Registers the new @salesforce/code-analyzer-flowanalyzer-engine in the CLI and makes it usable from the command line. The engine sends targeted Flow metadata to a Salesforce org for remote analysis. It lives in code-analyzer-core (packages/code-analyzer-flowanalyzer-engine, on the matching flowanalyzer-engine branch).
Changes
Engine registration
- package.json and package-lock.json add the code-analyzer-flowanalyzer-engine dependency.
EnginePluginsFactory adds the engine to the plugin list.
--target-org / -o flag on code-analyzer rules
-target-org to engines.flowAnalyzer.target_org as well as engines.apexguru.target_org.
Tests
Notes for reviewers