Skip to content

Commit 18110f4

Browse files
authored
Merge pull request #1065 from forcedotcom/dev
RELEASE: @W-13114136@: Merging dev to release for 3.12.0
2 parents 4fceb75 + ba245b2 commit 18110f4

File tree

70 files changed

+3888
-2658
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+3888
-2658
lines changed

.github/workflows/production-heartbeat.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ on:
44
schedule:
55
# Cron syntax is "minute[0-59] hour[0-23] date[1-31] month[1-12] day[0-6]". '*' is 'any value', and multiple values
66
# can be specified with comma-separated lists. All times are UTC.
7-
# So this expression means "run at 45 minutes past 1, 5, and 9 AM/PM UTC". The hours were chosen so employees on
8-
# US Central Time will start their day with results that are <2 hrs old.
9-
- cron: '45 1,5,9,13,17,21 * * *'
7+
# So this expression means "run at 45 minutes past 1, 5, and 9 AM/PM UTC". The hours were chosen so that
8+
# the jobs run only close to business hours of Central Time.
9+
# Days were chosen to run only from Monday through Friday.
10+
- cron: '45 13,17,21 * * 1,2,3,4,5'
1011
jobs:
1112
production-heartbeat:
1213
strategy:
@@ -96,11 +97,10 @@ jobs:
9697

9798
# === Report any problems ===
9899
- name: Report problems
99-
# There are problems if any step failed or was skipped, or if any step that can make retry attempts was forced to
100-
# do so.
100+
# There are problems if any step failed or was skipped.
101101
# Note that the `join()` call omits null values, so if any steps were skipped, they won't have a corresponding
102102
# value in the string.
103-
if: ${{ failure() || cancelled() || (join(steps.*.outputs.retry_count) != '0,0') }}
103+
if: ${{ failure() || cancelled() }}
104104
shell: bash
105105
env:
106106
# If we're here because steps failed or were skipped, then that's a critical problem. Otherwise it's a normal one.

messages/list.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = {
1818
"categories": "categories",
1919
"rulesets": "rulesets [dep]",
2020
"is-dfa": "is dfa",
21+
"is-pilot": "is pilot",
2122
"engine": "engine"
2223
},
2324
"yes": "Y",

messages/run-dfa.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ module.exports = {
1414
"sfgejvmargsDescription": "specify Java Virtual Machine (JVM) arguments to optimize Salesforce Graph Engine execution to your system (optional)",
1515
"sfgejvmargsDescriptionLong": "Specifies Java Virtual Machine arguments to override system defaults while executing Salesforce Graph Engine. For multiple arguments, add them to the same string separated by space.",
1616
"targetDescription": "return location of source code",
17-
"targetDescriptionLong": "Returns the source code location. Use glob patterns or specify individual methods with #-syntax. Multiple values are specified as a comma-separated list."
17+
"targetDescriptionLong": "Returns the source code location. Use glob patterns or specify individual methods with #-syntax. Multiple values are specified as a comma-separated list.",
18+
"withpilotDescription": "allow pilot rules to execute",
19+
"withpilotDescriptionLong": "Allows pilot rules to execute."
1820
},
1921
"validations": {
2022
"methodLevelTargetCannotBeGlob": "Method-level targets supplied to --target cannot be globs",
@@ -45,5 +47,8 @@ Use --rule-thread-timeout to increase or decrease the maximum runtime for a sing
4547
Use --sfgejvmargs to pass Java Virtual Machine args to override system defaults while executing Salesforce Graph Engine's rules.
4648
The example overrides the system's default heap space allocation to 8 GB and decreases chances of encountering OutOfMemory error.
4749
$ sfdx scanner:run:dfa --sfgejvmargs "-Xmx8g" ...
50+
Use --with-pilot to allow execution of pilot rules:
51+
This example allows pilot rules in the "Performance" category to execute.
52+
$ sfdx scanner:run:dfa --category 'Performance' --with-pilot ...
4853
`
4954
};

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": "3.11.0",
4+
"version": "3.12.0",
55
"author": "ISV SWAT",
66
"bugs": "https://github.com/forcedotcom/sfdx-scanner/issues",
77
"dependencies": {

pmd-cataloger/src/main/java/sfdc/sfdx/scanner/pmd/catalog/PmdCatalogJson.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class PmdCatalogJson {
1919
public static final String JSON_SOURCEPACKAGE = "sourcepackage";
2020
public static final String JSON_DEFAULTENABLED = "defaultEnabled";
2121
public static final String JSON_ISDFA = "isDfa";
22+
public static final String JSON_ISPILOT = "isPilot";
2223

2324
private final List<PmdCatalogRule> rules;
2425
private final List<PmdCatalogCategory> categories;

pmd-cataloger/src/main/java/sfdc/sfdx/scanner/pmd/catalog/PmdCatalogRule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ JSONObject toJson() {
9999
m.put(JSON_SOURCEPACKAGE, this.sourceJar);
100100
m.put(JSON_DEFAULTENABLED, true);
101101
m.put(JSON_ISDFA, false);
102+
m.put(JSON_ISPILOT, false);
102103

103104
// We want 'languages' to be represented as an array even though PMD rules only run against one language, because
104105
// this way it's easier to integrate with the language-agnostic framework that we ultimately want.

0 commit comments

Comments
 (0)