-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1556 from forcedotcom/release-4.4.0
RELEASE: @W-16095971@: Conducting v4.4.0 release.
- Loading branch information
Showing
61 changed files
with
1,081 additions
and
918 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,8 @@ | |
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
] | ||
], | ||
"rules": { | ||
"sf-plugin/only-extend-SfCommand": "off" | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,7 @@ | |
<script type="text/javascript" language="javascript" | ||
src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script> | ||
<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/rowgroup/1.1.2/js/dataTables.rowGroup.min.js"></script> | ||
<script type="text/javascript" language="javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"></script> | ||
<script type="text/javascript" language="javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"></script> | ||
<script type="text/javascript" class="init"> | ||
// BEGIN - Placeholders filled in by the scanner | ||
|
@@ -294,11 +294,12 @@ | |
}); | ||
}); | ||
</script> | ||
<title>Salesforce Code Analyzer Report</title> | ||
</head> | ||
|
||
<body> | ||
<h1 id="reportTitle">Salesforce Code Analyzer Report</h1> | ||
<div id="summaryChart"/></div> | ||
<div id="summaryChart"></div> | ||
<h4 id="summaryFiles"></h4> | ||
<h4 id="summaryViolations"></h4> | ||
<div class="fw-container"> | ||
|
@@ -319,7 +320,7 @@ | |
<th>End Column</th> | ||
</tr> | ||
</thead> | ||
<tbody/> | ||
<tbody></tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# error.couldNotGetZipEntries | ||
|
||
Failed to get entries from ZIP file %s. Reason: %s. | ||
|
||
# error.couldNotReadEntryData | ||
|
||
Failed to read contents of entry %s in ZIP file %s. Reason: %s. | ||
|
||
# error.couldNotExtractZip | ||
|
||
Failed to extract ZIP file %s. Reason: %s. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
AvoidDisableProtocolSecurity[](#avoiddisableprotocolsecurity) | ||
------------------------------------------------------------------------------------------------------------------------------------------------------ | ||
|
||
**Violation:** | ||
|
||
Protocol security setting is disabled | ||
|
||
|
||
**Priority:** Medium (3) | ||
|
||
**Description:** | ||
|
||
Detects if "Disable Protocol Security" setting is checked/true | ||
|
||
**Example(s):** | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
AvoidHardCodedCredentialsInAura[](#avoidhardcodedcredentialsinaura) | ||
------------------------------------------------------------------------------------------------------------------------------------------------------ | ||
|
||
**Violation:** | ||
|
||
Detected use of hard coded credentials in Aura component | ||
|
||
|
||
**Priority:** High (2) | ||
|
||
**Description:** | ||
|
||
Detected use of hard coded credentials in Aura component | ||
|
||
**Example(s):** | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
AvoidHardCodedSecretsInVFAttrs[](#avoidhardcodedsecretsinvfattrs) | ||
------------------------------------------------------------------------------------------------------------------------------------------------------ | ||
|
||
**Violation:** | ||
|
||
Hard coded secrets detected in attributes | ||
|
||
|
||
**Priority:** High (2) | ||
|
||
**Description:** | ||
|
||
Detects Hard coded secrets in VF attributes | ||
|
||
**Example(s):** | ||
|
||
|
||
|
18 changes: 18 additions & 0 deletions
18
pmd-appexchange/docs/AvoidInsecureHttpRemoteSiteSetting.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
AvoidInsecureHttpRemoteSiteSetting[](#avoidinsecurehttpremotesitesetting) | ||
------------------------------------------------------------------------------------------------------------------------------------------------------ | ||
|
||
**Violation:** | ||
|
||
Avoid using insecure http urls in Remote Site Settings. | ||
|
||
|
||
**Priority:** Medium (3) | ||
|
||
**Description:** | ||
|
||
Detects instances of a Remote Site Settings that use HTTP.Use HTTPS instead. | ||
|
||
**Example(s):** | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
AvoidSControls[](#avoidscontrols) | ||
------------------------------------------------------------------------------------------------------------------------------------------------------ | ||
|
||
**Violation:** | ||
|
||
Detected SControls | ||
|
||
|
||
**Priority:** Critical (1) | ||
|
||
**Description:** | ||
|
||
S-Controls should not be used in managed packages. | ||
|
||
**Example(s):** | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
AvoidUnescapedHtml[](#avoidunescapedhtml) | ||
------------------------------------------------------------------------------------------------------------------------------------------------------ | ||
|
||
**Violation:** | ||
|
||
Potential XSS due to the use of unesapedHtml | ||
|
||
|
||
**Priority:** High (2) | ||
|
||
**Description:** | ||
|
||
Detected use of aura:unescapedHtml. This should be used cautiously. Developers should ensure that the unescapedHtml should not use tainted input to protect against XSS | ||
|
||
**Example(s):** | ||
|
||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+3.39 KB
pmd-appexchange/lib/pmd-xml-sf-0.0.1.jar → ...pexchange/lib/sf_metadata_pmd_xml-0.1.jar
Binary file not shown.
Binary file renamed
BIN
+34.9 KB
pmd-appexchange/lib/sfca-pmd-apex-0.13.jar → pmd-appexchange/lib/sfca-pmd-apex-0.14.jar
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+1.87 KB
pmd-appexchange/lib/sfca-pmd-html-0.13.jar → pmd-appexchange/lib/sfca-pmd-html-0.14.jar
Binary file not shown.
Binary file renamed
BIN
+1.9 KB
...exchange/lib/sfca-pmd-javascript-0.13.jar → ...exchange/lib/sfca-pmd-javascript-0.14.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+15 KB
...xchange/lib/sfca-pmd-visualforce-0.13.jar → ...xchange/lib/sfca-pmd-visualforce-0.14.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// This build file simply downloads the pmd jar files and their dependencies that we care to bundle with the scanner | ||
// plugin and puts them in the dist/pmd7/libs folder. | ||
|
||
plugins { | ||
java // Minimum needed to be able to download dependencies | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
// Keep this in sync with src/Constants.ts > PMD7_VERSION | ||
var pmd7Version = "7.3.0" | ||
|
||
val pmdDist7Dir = "$buildDir/../../dist/pmd7" | ||
|
||
dependencies { | ||
implementation("net.sourceforge.pmd:pmd-apex:$pmd7Version") | ||
implementation("net.sourceforge.pmd:pmd-cli:$pmd7Version") { | ||
exclude(group = "net.sourceforge.pmd", module = "pmd-designer") | ||
} | ||
implementation("net.sourceforge.pmd:pmd-html:$pmd7Version") | ||
implementation("net.sourceforge.pmd:pmd-java:$pmd7Version") | ||
implementation("net.sourceforge.pmd:pmd-javascript:$pmd7Version") | ||
implementation("net.sourceforge.pmd:pmd-visualforce:$pmd7Version") | ||
implementation("net.sourceforge.pmd:pmd-xml:$pmd7Version") | ||
} | ||
|
||
tasks.register<Copy>("copyDependencies") { | ||
from(configurations.runtimeClasspath) | ||
into("$pmdDist7Dir/lib") | ||
} | ||
tasks.assemble { | ||
dependsOn(tasks.named("copyDependencies")) | ||
} | ||
|
||
|
||
tasks.register<Delete>("deletePmd7Dist") { | ||
delete(pmdDist7Dir) | ||
} | ||
tasks.clean { | ||
dependsOn("deletePmd7Dist") | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.