Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit c79b00f

Browse files
committed
Temp deprecation commit
1 parent 056ef50 commit c79b00f

File tree

3 files changed

+60
-26
lines changed

3 files changed

+60
-26
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[![Lightning Flow Scanner Banner](media/bannerslim.png)](https://github.com/Lightning-Flow-Scanner)
2-
__*Pinpoint deviations from Industry Best Practices in Salesforce Flows and ensure standards of business automation excellence.*__
32

4-
[![Flow Overview](media/demo.gif)](https://github.com/Lightning-Flow-Scanner)
3+
[![Flow Overview](media/demo.gif)](https://github.com/Lightning-Flow-Scanner)
54

65
**Also available as [Salesforce CLI Plugin](https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-sfdx)*
76

7+
## [🚨 Deprecation Notice](https://github.com/Lightning-Flow-Scanner) ****No new roadmap or updates** **moving forward.
8+
89
## Features/Commands
910

1011
Use our side bar or the **Command Palette** and type `Flow` to see the list of all available commands.
@@ -14,16 +15,16 @@ Use the `Scan Flows` command by choosing either a directory or a selection of fl
1415

1516
Use the `Configurate Flow Rules` command to configure the rules executed during scanning.
1617

17-
Use the `Fix Flows` command to apply available fixes automatically.
18+
Use the `Fix Flows` command to apply available fixes automatically.
1819

19-
The `Default Flow Rules` command can be used to view more details on the rules that are applied to Flows in the scans.
20+
The `Default Flow Rules` command can be used to view more details on the rules that are applied to Flows in the scans.
2021

2122
The `Calculate Flow Coverage` command calculates Flow Test coverage percentages by running the apex tests in your default connectedOrg.
2223

2324
<!-- commands -->
2425

25-
| Command | Title |
26-
| ------------------------------------------------ | ----------------------- |
26+
| Command | Title |
27+
| -------------------------------------------------- | ----------------------- |
2728
| `lightningflowscanner.viewDefaultFlowRules` | Default Flow Rules |
2829
| `lightningflowscanner.scanFlows` | Scan Flows |
2930
| `lightningflowscanner.debugView` | Debug Flow Scanner View |
@@ -35,8 +36,8 @@ The `Calculate Flow Coverage` command calculates Flow Test coverage percentages
3536

3637
<!-- configs -->
3738

38-
| Key | Description | Type | Default |
39-
| --------------------------------------- | --------------------------------------------------------------------------------- | --------- | ----------------------------- |
39+
| Key | Description | Type | Default |
40+
| ----------------------------------------- | --------------------------------------------------------------------------------- | ----------- | ------------------------------- |
4041
| `lightningFlowScanner.SpecifyFiles` | Specify flow file paths instead of a root directory. | `boolean` | `false` |
4142
| `lightningFlowScanner.NamingConvention` | Specify a REGEX expression to use as Flow Naming convention. | `string` | `"[A-Za-z0-9]+_[A-Za-z0-9]+"` |
4243
| `lightningFlowScanner.APIVersion` | Specify an expression to validate the API version, i.e. '===50'(use at least 50). | `string` | `">50"` |

src/commands/handlers.ts

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,47 @@ export default class Commands {
1616
constructor(private context: vscode.ExtensionContext) {}
1717

1818
get handlers() {
19-
return Object.entries({
20-
'lightningflowscanner.viewDefaulFlowRules': () =>
21-
this.viewDefaulFlowRules(),
22-
'lightningflowscanner.configRules': () => this.configRules(),
23-
'lightningflowscanner.debugView': () => this.debugView(),
24-
'lightningflowscanner.scanFlows': () => this.scanFlows(),
25-
'lightningflowscanner.fixFlows': () => this.fixFlows(),
26-
'lightningflowscanner.calculateFlowTestCoverage': () =>
27-
this.calculateFlowTestCoverage(),
28-
});
19+
const rawHandlers: Record<string, (...args: any[]) => any> = {
20+
'lightningflowscanner.viewDefaulFlowRules': () => this.viewDefaulFlowRules(),
21+
'lightningflowscanner.configRules': () => this.configRules(),
22+
'lightningflowscanner.debugView': () => this.debugView(),
23+
'lightningflowscanner.scanFlows': () => this.scanFlows(),
24+
'lightningflowscanner.fixFlows': () => this.fixFlows(),
25+
'lightningflowscanner.calculateFlowTestCoverage': () => this.calculateFlowTestCoverage(),
26+
};
27+
28+
return Object.entries(rawHandlers).map(([command, handler]) => {
29+
return [
30+
command,
31+
async (...args: any[]): Promise<any> => {
32+
this.checkExtensionAutoUpdate(); // nag before running command
33+
return handler(...args);
34+
}
35+
] as const;
36+
});
37+
}
38+
39+
private async checkExtensionAutoUpdate() {
40+
const config = vscode.workspace.getConfiguration("extensions");
41+
const autoUpdate = config.get<boolean>("autoUpdate");
42+
43+
if (autoUpdate) {
44+
const selection = await vscode.window.showWarningMessage(
45+
"⚠️ Extension auto-update is enabled. Please disable it.",
46+
"Open Settings",
47+
"Ignore"
48+
);
49+
50+
if (selection === "Open Settings") {
51+
// Open the relevant settings page
52+
vscode.commands.executeCommand(
53+
"workbench.action.openSettings",
54+
"extensions.autoUpdate"
55+
);
56+
}
57+
// If "Ignore" is clicked, we just continue
2958
}
59+
}
3060

3161
private viewDefaulFlowRules() {
3262
RuleOverview.createOrShow(this.context.extensionUri);
@@ -229,4 +259,4 @@ export default class Commands {
229259
}
230260
}
231261
}
232-
}
262+
}

webviews/components/Sidebar.svelte

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,19 @@
3333
}
3434
3535
</script>
36-
3736
<TailwindWrapper>
3837
<div class="sb">
3938
<Banner/>
39+
<section class="mt-4 p-4 bg-yellow-100 border-l-4 border-yellow-500 rounded">
40+
<div class="bg-red-50 border-l-4 border-red-500 p-2 rounded mb-3">
41+
<p class="text-sm font-bold text-red-700 mb-0">
42+
Avoid unofficial extensions and disable auto-updates immediately.
43+
</p>
44+
</div>
45+
<p class="ml-5 mb-2 text-sm text-gray-800">
46+
Extensions run with your privileges, and if compromised, they can steal CLI tokens, GitHub, NPM, and AWS keys, and even exfiltrate or insert code while Code Builder is in use.
47+
</p>
48+
</section>
4049
<nav aria-label="Sidebar">
4150
<button class="btn btn-blue" on:click={configRules}>
4251
Configure Rules
@@ -54,14 +63,8 @@
5463
Documentation
5564
</button>
5665
</nav>
57-
<div>
58-
<p>Support our mission to champion Best Practices by starring ⭐ us on <a href="https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-vsce">GitHub</a></p>
59-
</div>
6066
</div>
61-
6267
</TailwindWrapper>
63-
64-
6568
<style>
6669
6770
.sb{

0 commit comments

Comments
 (0)