Repository navigation
Integrate the Flow Analyzer engine into the Code Analyzer CLI #2105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ import * as FlowEngineModule from '@salesforce/code-analyzer-flow-engine'; | |
| import * as SfgeEngineModule from '@salesforce/code-analyzer-sfge-engine'; | ||
| import * as ApexGuruEngineModule from '@salesforce/code-analyzer-apexguru-engine'; | ||
| import * as UIBundleEngineModule from '@salesforce/code-analyzer-uibundle-engine'; | ||
| import * as FlowAnalyzerEngineModule from '@salesforce/code-analyzer-flowanalyzer-engine'; | ||
|
|
||
| export interface EnginePluginsFactory { | ||
| create(): EnginePlugin[]; | ||
|
|
@@ -22,7 +23,8 @@ export class EnginePluginsFactoryImpl implements EnginePluginsFactory { | |
| FlowEngineModule.createEnginePlugin(), | ||
| SfgeEngineModule.createEnginePlugin(), | ||
| ApexGuruEngineModule.createEnginePlugin(), | ||
| UIBundleEngineModule.createEnginePlugin() | ||
| UIBundleEngineModule.createEnginePlugin(), | ||
| FlowAnalyzerEngineModule.createEnginePlugin() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P1] Do not make every existing scan fail without a target org This plugin is registered for every invocation, but the matching Core PR rejects a missing |
||
| ]; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <Flow xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
| <apiVersion>68.0</apiVersion> | ||
| <environments>Default</environments> | ||
| <interviewLabel>AL Flow and Test {!$Flow.CurrentDateTime}</interviewLabel> | ||
| <label>AL Flow and Test</label> | ||
| <processMetadataValues> | ||
| <name>BuilderType</name> | ||
| <value> | ||
| <stringValue>LightningFlowBuilder</stringValue> | ||
| </value> | ||
| </processMetadataValues> | ||
| <processMetadataValues> | ||
| <name>CanvasMode</name> | ||
| <value> | ||
| <stringValue>AUTO_LAYOUT_CANVAS</stringValue> | ||
| </value> | ||
| </processMetadataValues> | ||
| <processMetadataValues> | ||
| <name>OriginBuilderType</name> | ||
| <value> | ||
| <stringValue>LightningFlowBuilder</stringValue> | ||
| </value> | ||
| </processMetadataValues> | ||
| <processType>AutoLaunchedFlow</processType> | ||
| <recordLookups> | ||
| <name>get_Account</name> | ||
| <label>get Account</label> | ||
| <locationX>0</locationX> | ||
| <locationY>0</locationY> | ||
| <assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound> | ||
| <getFirstRecordOnly>true</getFirstRecordOnly> | ||
| <object>Account</object> | ||
| <storeOutputAutomatically>true</storeOutputAutomatically> | ||
| </recordLookups> | ||
| <start> | ||
| <locationX>0</locationX> | ||
| <locationY>0</locationY> | ||
| <connector> | ||
| <targetReference>get_Account</targetReference> | ||
| </connector> | ||
| </start> | ||
| <status>Draft</status> | ||
| </Flow> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P1] Replace the repository-external file dependency before merging
This link only resolves when
code-analyzer-corehappens to be checked out as a sibling directory. A normal standalone clone,npm ci, or packaged/published plugin has no../code-analyzer-core/packages/code-analyzer-flowanalyzer-engine, and the lockfile also records this as a symlink, so installation cannot reproduce the dependency. This needs to reference a published/packageable version before the PR lands, not merely before a later release.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs the project to be build by npm first isn't it ?