@salesforce/cli 2.111.4 → 2.111.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/npm-shrinkwrap.json +14 -14
- package/oclif.lock +13 -13
- package/oclif.manifest.json +35 -14
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ $ npm install -g @salesforce/cli
|
|
|
25
25
|
$ sf COMMAND
|
|
26
26
|
running command...
|
|
27
27
|
$ sf (--version|-v)
|
|
28
|
-
@salesforce/cli/2.111.
|
|
28
|
+
@salesforce/cli/2.111.5 linux-x64 node-v22.20.0
|
|
29
29
|
$ sf --help [COMMAND]
|
|
30
30
|
USAGE
|
|
31
31
|
$ sf COMMAND
|
|
@@ -4736,7 +4736,7 @@ EXAMPLES
|
|
|
4736
4736
|
$ sf org list auth
|
|
4737
4737
|
```
|
|
4738
4738
|
|
|
4739
|
-
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.
|
|
4739
|
+
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.17/src/commands/org/list/auth.ts)_
|
|
4740
4740
|
|
|
4741
4741
|
## `sf org list limits`
|
|
4742
4742
|
|
|
@@ -5036,7 +5036,7 @@ FLAG DESCRIPTIONS
|
|
|
5036
5036
|
To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
|
|
5037
5037
|
```
|
|
5038
5038
|
|
|
5039
|
-
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.
|
|
5039
|
+
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.17/src/commands/org/login/access-token.ts)_
|
|
5040
5040
|
|
|
5041
5041
|
## `sf org login jwt`
|
|
5042
5042
|
|
|
@@ -5127,7 +5127,7 @@ FLAG DESCRIPTIONS
|
|
|
5127
5127
|
To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
|
|
5128
5128
|
```
|
|
5129
5129
|
|
|
5130
|
-
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.
|
|
5130
|
+
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.17/src/commands/org/login/jwt.ts)_
|
|
5131
5131
|
|
|
5132
5132
|
## `sf org login sfdx-url`
|
|
5133
5133
|
|
|
@@ -5197,7 +5197,7 @@ EXAMPLES
|
|
|
5197
5197
|
$ echo url | sf org login sfdx-url --sfdx-url-stdin
|
|
5198
5198
|
```
|
|
5199
5199
|
|
|
5200
|
-
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.
|
|
5200
|
+
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.17/src/commands/org/login/sfdx-url.ts)_
|
|
5201
5201
|
|
|
5202
5202
|
## `sf org login web`
|
|
5203
5203
|
|
|
@@ -5302,7 +5302,7 @@ FLAG DESCRIPTIONS
|
|
|
5302
5302
|
To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
|
|
5303
5303
|
```
|
|
5304
5304
|
|
|
5305
|
-
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.
|
|
5305
|
+
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.17/src/commands/org/login/web.ts)_
|
|
5306
5306
|
|
|
5307
5307
|
## `sf org logout`
|
|
5308
5308
|
|
|
@@ -5368,7 +5368,7 @@ FLAG DESCRIPTIONS
|
|
|
5368
5368
|
All orgs includes Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.
|
|
5369
5369
|
```
|
|
5370
5370
|
|
|
5371
|
-
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.
|
|
5371
|
+
_See code: [@salesforce/plugin-auth](https://github.com/salesforcecli/plugin-auth/blob/3.9.17/src/commands/org/logout.ts)_
|
|
5372
5372
|
|
|
5373
5373
|
## `sf org open`
|
|
5374
5374
|
|
|
@@ -5385,7 +5385,7 @@ FLAGS
|
|
|
5385
5385
|
-f, --source-file=<value> Path to ApexPage, FlexiPage, Flow, or Agent metadata to open in the associated Builder.
|
|
5386
5386
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
5387
5387
|
configuration variable is already set.
|
|
5388
|
-
-p, --path=<value> Navigation URL path to open a specific page.
|
|
5388
|
+
-p, --path=<value> [env: FORCE_OPEN_URL] Navigation URL path to open a specific page.
|
|
5389
5389
|
-r, --url-only Display navigation URL, but don’t launch browser.
|
|
5390
5390
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
5391
5391
|
--private Open the org in the default browser using private (incognito) mode.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/cli",
|
|
3
|
-
"version": "2.111.
|
|
3
|
+
"version": "2.111.5",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/cli",
|
|
9
|
-
"version": "2.111.
|
|
9
|
+
"version": "2.111.5",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@inquirer/select": "^2.3.5",
|
|
14
|
-
"@oclif/core": "4.
|
|
14
|
+
"@oclif/core": "4.8.0",
|
|
15
15
|
"@oclif/plugin-autocomplete": "3.2.38",
|
|
16
16
|
"@oclif/plugin-commands": "4.1.37",
|
|
17
17
|
"@oclif/plugin-help": "6.2.34",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@salesforce/plugin-agent": "1.24.21",
|
|
28
28
|
"@salesforce/plugin-apex": "3.8.5",
|
|
29
29
|
"@salesforce/plugin-api": "1.3.3",
|
|
30
|
-
"@salesforce/plugin-auth": "3.9.
|
|
30
|
+
"@salesforce/plugin-auth": "3.9.17",
|
|
31
31
|
"@salesforce/plugin-data": "4.0.59",
|
|
32
32
|
"@salesforce/plugin-deploy-retrieve": "3.23.12",
|
|
33
33
|
"@salesforce/plugin-info": "3.4.95",
|
|
@@ -3682,9 +3682,9 @@
|
|
|
3682
3682
|
}
|
|
3683
3683
|
},
|
|
3684
3684
|
"node_modules/@oclif/core": {
|
|
3685
|
-
"version": "4.
|
|
3686
|
-
"resolved": "https://registry.npmjs.org/@oclif/core/-/core-4.
|
|
3687
|
-
"integrity": "sha512-
|
|
3685
|
+
"version": "4.8.0",
|
|
3686
|
+
"resolved": "https://registry.npmjs.org/@oclif/core/-/core-4.8.0.tgz",
|
|
3687
|
+
"integrity": "sha512-jteNUQKgJHLHFbbz806aGZqf+RJJ7t4gwF4MYa8fCwCxQ8/klJNWc0MvaJiBebk7Mc+J39mdlsB4XraaCKznFw==",
|
|
3688
3688
|
"license": "MIT",
|
|
3689
3689
|
"dependencies": {
|
|
3690
3690
|
"ansi-escapes": "^4.3.2",
|
|
@@ -4812,9 +4812,9 @@
|
|
|
4812
4812
|
}
|
|
4813
4813
|
},
|
|
4814
4814
|
"node_modules/@salesforce/core": {
|
|
4815
|
-
"version": "8.23.
|
|
4816
|
-
"resolved": "https://registry.npmjs.org/@salesforce/core/-/core-8.23.
|
|
4817
|
-
"integrity": "sha512
|
|
4815
|
+
"version": "8.23.4",
|
|
4816
|
+
"resolved": "https://registry.npmjs.org/@salesforce/core/-/core-8.23.4.tgz",
|
|
4817
|
+
"integrity": "sha512-+JZMFD76P7X8fLSrHJRi9+ygjTehqZqJRXxmNq51miqIHY1Xlb0qH/yr9u5QEGsFIOZ8H8oStl/Zj+ZbrFs0vw==",
|
|
4818
4818
|
"license": "BSD-3-Clause",
|
|
4819
4819
|
"dependencies": {
|
|
4820
4820
|
"@jsforce/jsforce-node": "^3.10.8",
|
|
@@ -5121,15 +5121,15 @@
|
|
|
5121
5121
|
}
|
|
5122
5122
|
},
|
|
5123
5123
|
"node_modules/@salesforce/plugin-auth": {
|
|
5124
|
-
"version": "3.9.
|
|
5125
|
-
"resolved": "https://registry.npmjs.org/@salesforce/plugin-auth/-/plugin-auth-3.9.
|
|
5126
|
-
"integrity": "sha512-
|
|
5124
|
+
"version": "3.9.17",
|
|
5125
|
+
"resolved": "https://registry.npmjs.org/@salesforce/plugin-auth/-/plugin-auth-3.9.17.tgz",
|
|
5126
|
+
"integrity": "sha512-8gJCUUFU4gnSjSFCFePoMxOCeW5Erq3eXkoLr3yzGCWaV2wF3CVGYR5xsR7oOHwOakwOMNFT1WA5taWNRR9zYQ==",
|
|
5127
5127
|
"license": "Apache-2.0",
|
|
5128
5128
|
"dependencies": {
|
|
5129
5129
|
"@inquirer/checkbox": "^2.5.0",
|
|
5130
5130
|
"@inquirer/select": "^2.5.0",
|
|
5131
5131
|
"@oclif/core": "^4",
|
|
5132
|
-
"@salesforce/core": "8.23.
|
|
5132
|
+
"@salesforce/core": "8.23.4",
|
|
5133
5133
|
"@salesforce/kit": "^3.2.4",
|
|
5134
5134
|
"@salesforce/plugin-info": "^3.4.89",
|
|
5135
5135
|
"@salesforce/sf-plugins-core": "^12.2.5",
|
package/oclif.lock
CHANGED
|
@@ -1654,10 +1654,10 @@
|
|
|
1654
1654
|
proc-log "^5.0.0"
|
|
1655
1655
|
which "^5.0.0"
|
|
1656
1656
|
|
|
1657
|
-
"@oclif/core@^4", "@oclif/core@^4.0.27", "@oclif/core@^4.2.8", "@oclif/core@^4.5.2", "@oclif/core@^4.5.5", "@oclif/core@^4.5.6", "@oclif/core@^4.7.2", "@oclif/core@>= 3.0.0", "@oclif/core@4.
|
|
1658
|
-
version "4.
|
|
1659
|
-
resolved "https://registry.npmjs.org/@oclif/core/-/core-4.
|
|
1660
|
-
integrity sha512-
|
|
1657
|
+
"@oclif/core@^4", "@oclif/core@^4.0.27", "@oclif/core@^4.2.8", "@oclif/core@^4.5.2", "@oclif/core@^4.5.5", "@oclif/core@^4.5.6", "@oclif/core@^4.7.2", "@oclif/core@>= 3.0.0", "@oclif/core@4.8.0":
|
|
1658
|
+
version "4.8.0"
|
|
1659
|
+
resolved "https://registry.npmjs.org/@oclif/core/-/core-4.8.0.tgz"
|
|
1660
|
+
integrity sha512-jteNUQKgJHLHFbbz806aGZqf+RJJ7t4gwF4MYa8fCwCxQ8/klJNWc0MvaJiBebk7Mc+J39mdlsB4XraaCKznFw==
|
|
1661
1661
|
dependencies:
|
|
1662
1662
|
ansi-escapes "^4.3.2"
|
|
1663
1663
|
ansis "^3.17.0"
|
|
@@ -2084,10 +2084,10 @@
|
|
|
2084
2084
|
strip-ansi "6.0.1"
|
|
2085
2085
|
ts-retry-promise "^0.8.1"
|
|
2086
2086
|
|
|
2087
|
-
"@salesforce/core@^8.10.1", "@salesforce/core@^8.18.1", "@salesforce/core@^8.18.7", "@salesforce/core@^8.19.1", "@salesforce/core@^8.21.2", "@salesforce/core@^8.23.1", "@salesforce/core@^8.23.2", "@salesforce/core@^8.23.3", "@salesforce/core@^8.5.1", "@salesforce/core@^8.8.0", "@salesforce/core@^8.8.1", "@salesforce/core@^8.8.5", "@salesforce/core@^8.9.1", "@salesforce/core@8.23.
|
|
2088
|
-
version "8.23.
|
|
2089
|
-
resolved "https://registry.npmjs.org/@salesforce/core/-/core-8.23.
|
|
2090
|
-
integrity sha512
|
|
2087
|
+
"@salesforce/core@^8.10.1", "@salesforce/core@^8.18.1", "@salesforce/core@^8.18.7", "@salesforce/core@^8.19.1", "@salesforce/core@^8.21.2", "@salesforce/core@^8.23.1", "@salesforce/core@^8.23.2", "@salesforce/core@^8.23.3", "@salesforce/core@^8.5.1", "@salesforce/core@^8.8.0", "@salesforce/core@^8.8.1", "@salesforce/core@^8.8.5", "@salesforce/core@^8.9.1", "@salesforce/core@8.23.4":
|
|
2088
|
+
version "8.23.4"
|
|
2089
|
+
resolved "https://registry.npmjs.org/@salesforce/core/-/core-8.23.4.tgz"
|
|
2090
|
+
integrity sha512-+JZMFD76P7X8fLSrHJRi9+ygjTehqZqJRXxmNq51miqIHY1Xlb0qH/yr9u5QEGsFIOZ8H8oStl/Zj+ZbrFs0vw==
|
|
2091
2091
|
dependencies:
|
|
2092
2092
|
"@jsforce/jsforce-node" "^3.10.8"
|
|
2093
2093
|
"@salesforce/kit" "^3.2.4"
|
|
@@ -2230,15 +2230,15 @@
|
|
|
2230
2230
|
got "^13.0.0"
|
|
2231
2231
|
proxy-agent "^6.4.0"
|
|
2232
2232
|
|
|
2233
|
-
"@salesforce/plugin-auth@3.9.
|
|
2234
|
-
version "3.9.
|
|
2235
|
-
resolved "https://registry.npmjs.org/@salesforce/plugin-auth/-/plugin-auth-3.9.
|
|
2236
|
-
integrity sha512-
|
|
2233
|
+
"@salesforce/plugin-auth@3.9.17":
|
|
2234
|
+
version "3.9.17"
|
|
2235
|
+
resolved "https://registry.npmjs.org/@salesforce/plugin-auth/-/plugin-auth-3.9.17.tgz"
|
|
2236
|
+
integrity sha512-8gJCUUFU4gnSjSFCFePoMxOCeW5Erq3eXkoLr3yzGCWaV2wF3CVGYR5xsR7oOHwOakwOMNFT1WA5taWNRR9zYQ==
|
|
2237
2237
|
dependencies:
|
|
2238
2238
|
"@inquirer/checkbox" "^2.5.0"
|
|
2239
2239
|
"@inquirer/select" "^2.5.0"
|
|
2240
2240
|
"@oclif/core" "^4"
|
|
2241
|
-
"@salesforce/core" "8.23.
|
|
2241
|
+
"@salesforce/core" "8.23.4"
|
|
2242
2242
|
"@salesforce/kit" "^3.2.4"
|
|
2243
2243
|
"@salesforce/plugin-info" "^3.4.89"
|
|
2244
2244
|
"@salesforce/sf-plugins-core" "^12.2.5"
|
package/oclif.manifest.json
CHANGED
|
@@ -12,9 +12,18 @@
|
|
|
12
12
|
"Display all the default rule values for the recommended rules, instead of only the rule values you've explicitly overriden in your `code-analyzer.yml` file. By default, only overriden rule values are displayed unless you specify the `--include-unmodified-rules` flag:\n<%= config.bin %> <%= command.id %> --rule-selector Recommended --include-unmodified-rules",
|
|
13
13
|
"Display the configuration state associated with all the rules that are applicable to the files targeted within the folder `./src`:\n<%= config.bin %> <%= command.id %> --target ./src",
|
|
14
14
|
"Display any relevant configuration settings associated with the rule name 'no-undef' from the 'eslint' engine:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:no-undef",
|
|
15
|
+
"Display any relevant configuration settings associated with PMD rules whose severity is 2 or 3:\n<%= config.bin %> <%= command.id %> --rule-selector \"pmd:(2,3)\"",
|
|
15
16
|
"Load an existing configuration file called `existing-config.yml`, and then write the configuration to a new file called `new-config.yml`, the configuration state that is applicable to all rules that are relevant to the workspace located in the current folder:\n<%= config.bin %> <%= command.id %> --config-file ./existing-config.yml --workspace . --output-file ./subfolder-config.yml"
|
|
16
17
|
],
|
|
17
18
|
"flags": {
|
|
19
|
+
"flags-dir": {
|
|
20
|
+
"helpGroup": "GLOBAL",
|
|
21
|
+
"name": "flags-dir",
|
|
22
|
+
"summary": "Import flag values from a directory.",
|
|
23
|
+
"hasDynamicHelp": false,
|
|
24
|
+
"multiple": false,
|
|
25
|
+
"type": "option"
|
|
26
|
+
},
|
|
18
27
|
"workspace": {
|
|
19
28
|
"char": "w",
|
|
20
29
|
"description": "Use the `--workspace` flag to display only the configuration associated with the rules that apply to the files that make up your workspace. Typically, a workspace is a single project folder that contains all your files. But it can also consist of one or more folders, one or more files, and use glob patterns (wildcards). If you specify this flag multiple times, then your workspace is the sum of the files and folders.\n\nThis command uses the types of files in the workspace, such as JavaScript or Typescript, to determine the applicable configuration state. For example, if your workspace contains only JavaScript files, then the command doesn't display configuration state associated with TypeScript rules. The command uses a file's extension to determine what kind of file it is, such as \".ts\" for TypeScript.\n\nSome engines can be configured to add additional rules based on what it finds in your workspace. For example, if you set the engines.eslint.auto_discover_eslint_config value of your `code-analyzer.yml` file to true, then supplying your workspace allows the \"eslint\" engine to examine your files in order to find ESLint configuration files that could potentially add in additional rules.\n\nIf you specify `--target` but not `--workspace`, then the current folder '.' is used as your workspace.",
|
|
@@ -37,13 +46,12 @@
|
|
|
37
46
|
},
|
|
38
47
|
"rule-selector": {
|
|
39
48
|
"char": "r",
|
|
40
|
-
"description": "Use the `--rule-selector` flag to display only the configuration associated with the rules based on specific criteria. You can select by engine, such as the rules associated with the \"retire-js\" or \"eslint\" engine. Or select by the severity of the rules, such as high or moderate. You can also select rules using tag values or rule names.\n\nYou can
|
|
49
|
+
"description": "Use the `--rule-selector` flag to display only the configuration associated with the rules based on specific criteria. You can select by engine, such as the rules associated with the \"retire-js\" or \"eslint\" engine. Or select by the severity of the rules, such as high or moderate. You can also select rules using tag values or rule names.\n\nYou can further filter the list by combining different criteria using colons to represent logical AND, commas to represent logical OR, and parentheses to create groupings. For example, `--rule-selector \"pmd:(Performance,Security):2\"` reduces the output to only contain the configuration state associated with PMD rules that have the Performance or Security tag and a severity of 2. You may also specify the flag multiple times to OR multiple selectors together. For example, `--rule-selector Performance,Security` is equivalent to `--rule-selector Performance --rule-selector Security`. Note that if you use parentheses in your selector, the selector should be wrapped in double-quotes.\n\nIf you don't specify this flag, then the command uses the \"all\" rule selector.\n\nRun `<%= config.bin %> <%= command.id %> --rule-selector Recommended` to display the configuration state associated with just the 'Recommended' rules, instead of all the rules.",
|
|
41
50
|
"name": "rule-selector",
|
|
42
|
-
"summary": "Selection of rules, based on engine name, severity level, rule name, tag, or a combination of criteria separated by colons.",
|
|
51
|
+
"summary": "Selection of rules, based on engine name, severity level, rule name, tag, or a combination of criteria separated by colons and commas, and grouped by parentheses.",
|
|
43
52
|
"default": [
|
|
44
53
|
"all"
|
|
45
54
|
],
|
|
46
|
-
"delimiter": ",",
|
|
47
55
|
"hasDynamicHelp": false,
|
|
48
56
|
"multiple": true,
|
|
49
57
|
"type": "option"
|
|
@@ -83,8 +91,7 @@
|
|
|
83
91
|
"strict": true,
|
|
84
92
|
"summary": "Output the current state of configuration for Code Analyzer.",
|
|
85
93
|
"enableJsonFlag": false,
|
|
86
|
-
"
|
|
87
|
-
"isESM": false,
|
|
94
|
+
"isESM": true,
|
|
88
95
|
"relativePath": [
|
|
89
96
|
"lib",
|
|
90
97
|
"commands",
|
|
@@ -111,11 +118,20 @@
|
|
|
111
118
|
"Get a more accurate list of the rules that apply specifically to your workspace (all the files in the current folder):\n<%= config.bin %> <%= command.id %> --rule-selector all --workspace .",
|
|
112
119
|
"List the recommended rules associated with a workspace that targets all the files in the folder \"./other-source\" and only the Apex class files (extension .cls) under the folder \"./force-app\":\n<%= config.bin %> <%= command.id %> --rule-selector Recommended --workspace . --target ./other-source --target ./force-app/**/*.cls",
|
|
113
120
|
"List all the \"eslint\" engine rules that have a moderate severity (3) and the recommended \"retire-js\" engine rules with any severity:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:3 --rule-selector retire-js:Recommended",
|
|
121
|
+
"List all the \"pmd\" engine rules that have a severity of moderate (3) or high (2) and the \"Performance\" tag.\n<%= config.bin %> <%= command.id %> --rule-selector \"pmd:(2,3):Performance\"",
|
|
114
122
|
"Similar to the previous example, but apply the rule overrides and engine settings from the configuration file called `code-analyzer2.yml` in the current folder. If, for example, you changed the severity of an \"eslint\" rule from moderate (3) to high (2) in the configuration file, then that rule isn't listed:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:3 --rule-selector retire-js:Recommended --config-file ./code-analyzer2.yml",
|
|
115
123
|
"List the details of the \"getter-return\" rule of the \"eslint\" engine and the rules named \"no-inner-declarations\" in any engine:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:getter-return --rule-selector no-inner-declarations --view detail",
|
|
116
124
|
"List the details of the recommended \"eslint\" engine rules that have the tag \"problem\" and high severity level (2) that apply when targeting the files within the folder \"./force-app\":\n<%= config.bin %> <%= command.id %> --rule-selector eslint:Recommended:problem:2 --view detail --target ./force-app"
|
|
117
125
|
],
|
|
118
126
|
"flags": {
|
|
127
|
+
"flags-dir": {
|
|
128
|
+
"helpGroup": "GLOBAL",
|
|
129
|
+
"name": "flags-dir",
|
|
130
|
+
"summary": "Import flag values from a directory.",
|
|
131
|
+
"hasDynamicHelp": false,
|
|
132
|
+
"multiple": false,
|
|
133
|
+
"type": "option"
|
|
134
|
+
},
|
|
119
135
|
"workspace": {
|
|
120
136
|
"char": "w",
|
|
121
137
|
"description": "Use the `--workspace` flag to return a more accurate list of the rules that apply to the files that make up your workspace. Typically, a workspace is a single project folder that contains all your files. But it can also consist of one or more folders, one or more files, and use glob patterns (wildcards). If you specify this flag multiple times, then your workspace is the sum of the files and folders. \n\nThe command uses the types of files in the workspace, such as JavaScript or Typescript, to determine which rules to list. For example, if your workspace contains only JavaScript files, the command doesn't list TypeScript rules. The command uses a file's extension to determine what kind of file it is, such as \".ts\" for TypeScript.\n\nSome engines may be configured to add additional rules based on what it finds in your workspace. For example, if you set the engines.eslint.auto_discover_eslint_config value of your `code-analyzer.yml` file to true, then supplying your workspace allows the \"eslint\" engine to examine your files in order to find ESLint configuration files that could potentially add in additional rules.\n\nIf you specify `--target` but not `--workspace`, then the current folder '.' is used as your workspace.",
|
|
@@ -138,13 +154,12 @@
|
|
|
138
154
|
},
|
|
139
155
|
"rule-selector": {
|
|
140
156
|
"char": "r",
|
|
141
|
-
"description": "Use the `--rule-selector` flag to select the list of rules based on specific criteria. For example, you can select by engine, such as the rules associated with the \"retire-js\" or \"eslint\" engine. Or select by the severity of the rules, such as high or moderate. You can also select rules using tag values or rule names. Every rule has a name, which is unique within the scope of an engine. Most rules have tags, although it's not required. An example of a tag is \"Recommended\". \n\nYou can
|
|
157
|
+
"description": "Use the `--rule-selector` flag to select the list of rules based on specific criteria. For example, you can select by engine, such as the rules associated with the \"retire-js\" or \"eslint\" engine. Or select by the severity of the rules, such as high or moderate. You can also select rules using tag values or rule names. Every rule has a name, which is unique within the scope of an engine. Most rules have tags, although it's not required. An example of a tag is \"Recommended\". \n\nYou can further filter the list by combining different criteria using colons to represent logical AND, commas to represent logical OR, and parentheses to create groupings. For example, `--rule-selector \"pmd:(Performance,Security):2\"` lists rules associated only with the \"pmd\" engine that have the Security or Performance tags and a high severity (2). You may also specify the flag multiple times to OR multiple selectors together. For example, `--rule-selector Performance,Security` is equivalent to `--rule-selector Performance --rule-selector Security`. Note that if you use parentheses in your selector, the selector should be wrapped in double-quotes. \n\nRun `<%= config.bin %> <%= command.id %> --rule-selector all` to list the possible values for engine name, rule name, tags, and severity levels that you can use with this flag.",
|
|
142
158
|
"name": "rule-selector",
|
|
143
159
|
"summary": "Selection of rules, based on engine name, severity level, rule name, tag, or a combination of criteria separated by colons.",
|
|
144
160
|
"default": [
|
|
145
161
|
"Recommended"
|
|
146
162
|
],
|
|
147
|
-
"delimiter": ",",
|
|
148
163
|
"hasDynamicHelp": false,
|
|
149
164
|
"multiple": true,
|
|
150
165
|
"type": "option"
|
|
@@ -191,8 +206,7 @@
|
|
|
191
206
|
"strict": true,
|
|
192
207
|
"summary": "List the rules that are available to analyze your code.",
|
|
193
208
|
"enableJsonFlag": false,
|
|
194
|
-
"
|
|
195
|
-
"isESM": false,
|
|
209
|
+
"isESM": true,
|
|
196
210
|
"relativePath": [
|
|
197
211
|
"lib",
|
|
198
212
|
"commands",
|
|
@@ -216,12 +230,21 @@
|
|
|
216
230
|
"Analyze the files using all the \"eslint\" rules:\n<%= config.bin %> <%= command.id %> --rule-selector eslint",
|
|
217
231
|
"The previous example is equivalent to this example:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:all",
|
|
218
232
|
"Analyze the files using all rules for all engines:\n<%= config.bin %> <%= command.id %> --rule-selector all",
|
|
233
|
+
"Analyze the files using only rules in the \"pmd\" engine with a severity of high (2) or moderate (3), and the \"Performance\" tag.\n<%= config.bin %> <%= command.id %> --rule-selector \"pmd:(2,3):Performance\"",
|
|
219
234
|
"Analyze files using the recommended \"retire-js\" rules; target all the files in the folder \"./other-source\" and only the Apex class files (extension .cls) in the folder \"./force-app\":\n<%= config.bin %> <%= command.id %> --rule-selector retire-js:Recommended --target ./other-source --target ./force-app/**/*.cls",
|
|
220
235
|
"Specify a custom configuration file and output the results to the \"results.csv\" file in CSV format; the commands fails if it finds a violation that exceeds the moderate severity level (3):\n<%= config.bin %> <%= command.id %> --config-file ./code-analyzer2.yml --output-file results.csv --severity-threshold 3",
|
|
221
236
|
"Analyze the files using all the \"eslint\" engine rules that have a moderate severity (3) and the recommended \"retire-js\" engine rules with any severity:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:3 --rule-selector retire-js:Recommended",
|
|
222
237
|
"Analyze the files using only the \"getter-return\" rule of the \"eslint\" engine and any rule named \"no-inner-declarations\" from any engine:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:getter-return --rule-selector no-inner-declarations"
|
|
223
238
|
],
|
|
224
239
|
"flags": {
|
|
240
|
+
"flags-dir": {
|
|
241
|
+
"helpGroup": "GLOBAL",
|
|
242
|
+
"name": "flags-dir",
|
|
243
|
+
"summary": "Import flag values from a directory.",
|
|
244
|
+
"hasDynamicHelp": false,
|
|
245
|
+
"multiple": false,
|
|
246
|
+
"type": "option"
|
|
247
|
+
},
|
|
225
248
|
"workspace": {
|
|
226
249
|
"char": "w",
|
|
227
250
|
"description": "Typically, a workspace is a single project folder that contains all your files. But it can also consist of one or more folders, one or more files, and use glob patterns (wildcards). If you specify this flag multiple times, then your workspace is the sum of the files and folders.\n\nSome engines often need your entire code base to perform an analysis, even if you want to target only a subset of the files within your workspace , such as with the `--target` flag. For example, the Salesforce Graph Engine might need to compile your entire project in order to properly build a graph so it can perform a data flow analysis on the paths that start in your targeted files.\n\nIf you don't specify the `--workspace` flag, then the current folder '.' is used as your workspace.",
|
|
@@ -247,13 +270,12 @@
|
|
|
247
270
|
},
|
|
248
271
|
"rule-selector": {
|
|
249
272
|
"char": "r",
|
|
250
|
-
"description": "Use the `--rule-selector` flag to select the list of rules to run based on specific criteria. For example, you can select by engine, such as the rules associated with the \"retire-js\" or \"eslint\" engine. Or select by the severity of the rules, such as high or moderate. You can also select rules using tag values or rule names. Every rule has a name, which is unique within the scope of an engine. Most rules have tags, although it's not required. An example of a tag is \"Recommended\".\n\nYou can
|
|
273
|
+
"description": "Use the `--rule-selector` flag to select the list of rules to run based on specific criteria. For example, you can select by engine, such as the rules associated with the \"retire-js\" or \"eslint\" engine. Or select by the severity of the rules, such as high or moderate. You can also select rules using tag values or rule names. Every rule has a name, which is unique within the scope of an engine. Most rules have tags, although it's not required. An example of a tag is \"Recommended\".\n\nYou can further filter the list by combining different criteria using colons to represent logical AND, commas to represent logical OR, and parentheses to create groupings. For example, `--rule-selector \"pmd:(Performance,Security):2\"` runs rules associated only with the \"pmd\" engine that have the Security or Performance tags and a high severity (2). You may also specify the flag multiple times to OR multiple selectors together. For example, `--rule-selector Performance,Security` is equivalent to `--rule-selector Performance --rule-selector Security`. Note that if you use parentheses in your selector, the selector should be wrapped in double-quotes.\n\nRun `<%= config.bin %> code-analyzer rules --rule-selector all` to see the possible values for engine name, rule name, tags, and severity levels that you can use with this flag.",
|
|
251
274
|
"name": "rule-selector",
|
|
252
275
|
"summary": "Selection of rules, based on engine name, severity level, rule name, tag, or a combination of criteria separated by colons.",
|
|
253
276
|
"default": [
|
|
254
277
|
"Recommended"
|
|
255
278
|
],
|
|
256
|
-
"delimiter": ",",
|
|
257
279
|
"hasDynamicHelp": false,
|
|
258
280
|
"multiple": true,
|
|
259
281
|
"type": "option"
|
|
@@ -309,8 +331,7 @@
|
|
|
309
331
|
"strict": true,
|
|
310
332
|
"summary": "Analyze your code with a selection of rules to ensure good coding practices.",
|
|
311
333
|
"enableJsonFlag": false,
|
|
312
|
-
"
|
|
313
|
-
"isESM": false,
|
|
334
|
+
"isESM": true,
|
|
314
335
|
"relativePath": [
|
|
315
336
|
"lib",
|
|
316
337
|
"commands",
|
|
@@ -4159,5 +4180,5 @@
|
|
|
4159
4180
|
"requiresProject": true
|
|
4160
4181
|
}
|
|
4161
4182
|
},
|
|
4162
|
-
"version": "2.111.
|
|
4183
|
+
"version": "2.111.5"
|
|
4163
4184
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/cli",
|
|
3
3
|
"description": "The Salesforce CLI",
|
|
4
|
-
"version": "2.111.
|
|
4
|
+
"version": "2.111.5",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
7
7
|
"sf": "./bin/run.js",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@salesforce/plugin-user"
|
|
77
77
|
],
|
|
78
78
|
"jitPlugins": {
|
|
79
|
-
"@salesforce/plugin-code-analyzer": "5.
|
|
79
|
+
"@salesforce/plugin-code-analyzer": "5.6.0",
|
|
80
80
|
"@salesforce/plugin-community": "3.3.44",
|
|
81
81
|
"@salesforce/plugin-custom-metadata": "3.3.69",
|
|
82
82
|
"@salesforce/plugin-dev": "2.5.1",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
},
|
|
145
145
|
"dependencies": {
|
|
146
146
|
"@inquirer/select": "^2.3.5",
|
|
147
|
-
"@oclif/core": "4.
|
|
147
|
+
"@oclif/core": "4.8.0",
|
|
148
148
|
"@oclif/plugin-autocomplete": "3.2.38",
|
|
149
149
|
"@oclif/plugin-commands": "4.1.37",
|
|
150
150
|
"@oclif/plugin-help": "6.2.34",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"@salesforce/plugin-agent": "1.24.21",
|
|
161
161
|
"@salesforce/plugin-apex": "3.8.5",
|
|
162
162
|
"@salesforce/plugin-api": "1.3.3",
|
|
163
|
-
"@salesforce/plugin-auth": "3.9.
|
|
163
|
+
"@salesforce/plugin-auth": "3.9.17",
|
|
164
164
|
"@salesforce/plugin-data": "4.0.59",
|
|
165
165
|
"@salesforce/plugin-deploy-retrieve": "3.23.12",
|
|
166
166
|
"@salesforce/plugin-info": "3.4.95",
|