Skip to content

Commit b0c9d7f

Browse files
authored
Merge pull request #1558 from forcedotcom/m2d/v4.4.0
Main2Dev @W-16095971@ Merging main to dev after v4.4.0
2 parents bf669f1 + 49e6efe commit b0c9d7f

File tree

11 files changed

+679
-693
lines changed

11 files changed

+679
-693
lines changed

.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
},
1414
"plugins": [
1515
"@typescript-eslint"
16-
]
16+
],
17+
"rules": {
18+
"sf-plugin/only-extend-SfCommand": "off"
19+
}
1720
}

.github/workflows/create-release-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
git checkout -b release-$NEW_VERSION
146146
git push --set-upstream origin release-$NEW_VERSION
147147
# Now that we're done with the interim branch, delete it.
148-
git push -d ${NEW_VERSION}-interim
148+
git push -d origin ${NEW_VERSION}-interim
149149
# Output the release branch name so we can use it in later jobs.
150150
echo "branch_name=release-$NEW_VERSION" >> "$GITHUB_OUTPUT"
151151
# Run all the various tests against the newly created branch.

html-templates/simple.mustache

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<script type="text/javascript" language="javascript"
6666
src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script>
6767
<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/rowgroup/1.1.2/js/dataTables.rowGroup.min.js"></script>
68-
<script type="text/javascript" language="javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"></script>
68+
<script type="text/javascript" language="javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"></script>
6969
<script type="text/javascript" class="init">
7070
7171
// BEGIN - Placeholders filled in by the scanner
@@ -294,11 +294,12 @@
294294
});
295295
});
296296
</script>
297+
<title>Salesforce Code Analyzer Report</title>
297298
</head>
298299

299300
<body>
300301
<h1 id="reportTitle">Salesforce Code Analyzer Report</h1>
301-
<div id="summaryChart"/></div>
302+
<div id="summaryChart"></div>
302303
<h4 id="summaryFiles"></h4>
303304
<h4 id="summaryViolations"></h4>
304305
<div class="fw-container">
@@ -319,7 +320,7 @@
319320
<th>End Column</th>
320321
</tr>
321322
</thead>
322-
<tbody/>
323+
<tbody></tbody>
323324
</table>
324325
</div>
325326
</div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/sfdx-scanner",
33
"description": "Static code scanner that applies quality and security rules to Apex code, and provides feedback.",
4-
"version": "4.3.2",
4+
"version": "4.4.0",
55
"author": "Salesforce Code Analyzer Team",
66
"bugs": "https://github.com/forcedotcom/sfdx-scanner/issues",
77
"dependencies": {

retire-js/RetireJsVulns.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6491,6 +6491,27 @@
64916491
"https://github.com/advisories/GHSA-c59h-r6p8-q9wc"
64926492
]
64936493
},
6494+
{
6495+
"atOrAbove": "13.4.0",
6496+
"below": "13.5.0",
6497+
"cwe": [
6498+
"CWE-400"
6499+
],
6500+
"severity": "high",
6501+
"identifiers": {
6502+
"summary": "Next.js Denial of Service (DoS) condition",
6503+
"CVE": [
6504+
"CVE-2024-39693"
6505+
],
6506+
"githubID": "GHSA-fq54-2j52-jc42"
6507+
},
6508+
"info": [
6509+
"https://github.com/advisories/GHSA-fq54-2j52-jc42",
6510+
"https://github.com/vercel/next.js/security/advisories/GHSA-fq54-2j52-jc42",
6511+
"https://nvd.nist.gov/vuln/detail/CVE-2024-39693",
6512+
"https://github.com/vercel/next.js"
6513+
]
6514+
},
64946515
{
64956516
"atOrAbove": "13.4.0",
64966517
"below": "13.5.1",
@@ -7517,7 +7538,6 @@
75177538
"/pdfjs-dist@(§§version§§)/"
75187539
],
75197540
"filecontent": [
7520-
" pdfjs-dist@(§§version§§) ",
75217541
"(?:const|var) pdfjsVersion = ['\"](§§version§§)['\"];",
75227542
"PDFJS.version ?= ?['\"](§§version§§)['\"]",
75237543
"apiVersion: ?['\"](§§version§§)['\"][\\s\\S]*,data(:[a-zA-Z.]{1,6})?,[\\s\\S]*password(:[a-zA-Z.]{1,10})?,[\\s\\S]*disableAutoFetch(:[a-zA-Z.]{1,22})?,[\\s\\S]*rangeChunkSize",

src/commands/scanner/rule/add.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default class Add extends ScannerCommand {
2020
// This defines the flags accepted by this command. The key is the longname, the char property is the shortname,
2121
// and summary and description is what's printed when the -h/--help flag is supplied.
2222
public static readonly flags = {
23+
...ScannerCommand.flags,
2324
language: Flags.string({
2425
char: 'l',
2526
summary: getMessage(BundleName.Add, 'flags.languageSummary'),

src/commands/scanner/rule/describe.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default class Describe extends ScannerCommand {
1919
// This defines the flags accepted by this command. The key is the longname, the char property is the shortname,
2020
// and summary and description is what's printed when the -h/--help flag is supplied.
2121
public static readonly flags = {
22+
...ScannerCommand.flags,
2223
rulename: Flags.string({
2324
char: 'n',
2425
summary: getMessage(BundleName.Describe, 'flags.rulenameSummary'),

src/commands/scanner/rule/list.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default class List extends ScannerCommand {
2222
// This defines the flags accepted by this command. The key is the longname, the char property is the shortname,
2323
// and summary and description is what's printed when the -h/--help flag is supplied.
2424
public static readonly flags = {
25+
...ScannerCommand.flags,
2526
verbose: Flags.boolean({
2627
summary: getMessage(BundleName.Common, 'flags.verboseSummary')
2728
}),

src/commands/scanner/rule/remove.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default class Remove extends ScannerCommand {
2121
// This defines the flags accepted by this command. The key is the longname, the char property is the shortname,
2222
// and summary and description is what's printed when the -h/--help flag is supplied.
2323
public static readonly flags = {
24+
...ScannerCommand.flags,
2425
verbose: Flags.boolean({
2526
summary: getMessage(BundleName.Common, 'flags.verboseSummary')
2627
}),

src/lib/ScannerRunCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export abstract class ScannerRunCommand extends ScannerCommand {
99
* here to avoid duplicate code.
1010
*/
1111
public static readonly flags = {
12+
...ScannerCommand.flags,
1213
verbose: Flags.boolean({
1314
summary: getMessage(BundleName.Common, 'flags.verboseSummary')
1415
}),

0 commit comments

Comments
 (0)