Skip to content

Commit 0a17fdb

Browse files
committed
patch(core): exclude the <description> tags
1 parent 0cbba07 commit 0a17fdb

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,27 +70,27 @@ Executing DML operations (insert, update, delete) inside a loop is a high-risk a
7070
**Class Name:** _[DMLStatementInLoop](packages/core/src/main/rules/DMLStatementInLoop.ts)_
7171
**Severity:** 🔴 *Error*
7272

73-
#### Hardcoded Salesforce Id
73+
#### Hardcoded Id
7474
Avoid hard-coding record IDs, as they are unique to a specific org and will not work in other environments. Instead, store IDs in variables—such as merge-field URL parameters or a **Get Records** element—to make the Flow portable, maintainable, and flexible.
7575

7676
**Rule ID:** `hardcoded-id`
7777
**Class Name:** _[HardcodedId](packages/core/src/main/rules/HardcodedId.ts)_
7878
**Severity:** 🔴 *Error*
7979

80-
#### Hardcoded Salesforce Url
81-
Avoid hard-coding URLs, as they may change between environments or over time. Instead, store URLs in variables or custom settings to make the Flow adaptable, maintainable, and environment-independent.
82-
83-
**Rule ID:** `hardcoded-url`
84-
**Class Name:** _[HardcodedUrl](packages/core/src/main/rules/HardcodedUrl.ts)_
85-
**Severity:** 🔴 *Error*
86-
8780
#### Hardcoded Secret ![Beta](https://img.shields.io/badge/status-beta-yellow)
8881
Avoid hardcoding secrets, API keys, tokens, or credentials in Flows. These should be stored securely in Named Credentials, Custom Settings, Custom Metadata, or external secret management systems.
8982

9083
**Rule ID:** `hardcoded-secret`
9184
**Class Name:** _[HardcodedSecret](packages/core/src/main/rules/HardcodedSecret.ts)_
9285
**Severity:** 🔴 *Error*
9386

87+
#### Hardcoded Url
88+
Avoid hard-coding URLs, as they may change between environments or over time. Instead, store URLs in variables or custom settings to make the Flow adaptable, maintainable, and environment-independent.
89+
90+
**Rule ID:** `hardcoded-url`
91+
**Class Name:** _[HardcodedUrl](packages/core/src/main/rules/HardcodedUrl.ts)_
92+
**Severity:** 🔴 *Error*
93+
9494
#### Process Builder
9595
Process Builder is retired. Continuing to use it increases maintenance overhead and risks future compatibility issues. Migrating automation to Flow reduces risk and improves maintainability.
9696

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@flow-scanner/lightning-flow-scanner-core",
33
"description": "A lightweight engine for Flow metadata in Node.js, and browser environments. Assess and enhance Salesforce Flow automations for best practices, security, governor limits, and performance issues.",
4-
"version": "6.18.1",
4+
"version": "6.19.0",
55
"main": "out/index.js",
66
"exports": {
77
".": {

packages/core/src/main/rules/HardcodedId.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class HardcodedId extends RuleCommon implements IRuleDefinition {
1717
ruleId: "hardcoded-id",
1818
name: "HardcodedId",
1919
category: "problem",
20-
label: "Hardcoded Salesforce Id",
20+
label: "Hardcoded Id",
2121
description: "Avoid hard-coding record IDs, as they are unique to a specific org and will not work in other environments. Instead, store IDs in variables—such as merge-field URL parameters or a **Get Records** element—to make the Flow portable, maintainable, and flexible.",
2222
summary: "Hardcoded IDs break portability across environments",
2323
supportedTypes: core.FlowType.allTypes(),

packages/core/src/main/rules/HardcodedUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class HardcodedUrl extends RuleCommon implements IRuleDefinition {
2929
path: "https://admin.salesforce.com/blog/2021/why-you-should-avoid-hard-coding-and-three-alternative-solutions",
3030
},
3131
],
32-
label: "Hardcoded Salesforce Url",
32+
label: "Hardcoded Url",
3333
name: "HardcodedUrl",
3434
supportedTypes: FlowType.allTypes(),
3535
},

packages/regex-scanner/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@flow-scanner/regex-scanner",
33
"description": "Generic regex-based scanning engine.",
4-
"version": "1.0.0",
4+
"version": "1.1.0",
55
"main": "out/index.js",
66
"exports": {
77
".": {
@@ -20,6 +20,9 @@
2020
"build:types": "tsc -p tsconfig.types.json --declaration --emitDeclarationOnly --outDir out",
2121
"build": "npm run clean && npm run build:js && npm run build:types",
2222
"test": "jest --passWithNoTests",
23+
"version:patch": "pnpm version patch --no-git-tag-version",
24+
"version:minor": "pnpm version minor --no-git-tag-version",
25+
"version:major": "pnpm version major --no-git-tag-version",
2326
"prepare:publish": "node scripts/prepare-publish.js",
2427
"publish:npm": "npm run build && npm run prepare:publish && cd out && npm publish --access public"
2528
},

0 commit comments

Comments
 (0)