You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: messages/DefaultRuleManager.js
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,5 +3,8 @@ module.exports = {
3
3
"targetSkipped": "The specified target wasn't processed by any engines. Use the --engine parameter to select a different engine or specify a different target. Specified target: %s.",
4
4
"targetsSkipped": "The specified targets weren't processed by any engines: %s. Review your target and engine combinations and try again.",
5
5
"pathsDoubleProcessed": "One or more files were processed by eslint and eslint-lwc simultaneously. To remove possible duplicate violations, customize the targetPatterns property for eslint and eslint-lwc engines in %s on these files: %s.",
6
+
},
7
+
"error": {
8
+
"cannotRunDfaAndNonDfaConcurrently": "DFA engines %s cannot be run concurrently with non-DFA engines %s"
"spinnerStart": "Analyzing with Salesforce Graph Engine. See %s for details.",
3
-
"pleaseWait": "Please wait"
2
+
"messages": {
3
+
"pleaseWait": "Please wait",
4
+
"spinnerStart": "Analyzing with Salesforce Graph Engine. See %s for details."
5
+
},
6
+
"errors": {
7
+
"failedWithoutProjectDir": `The --projectdir|-p flag is missing. Rerun your command with --projectdir|-p to allow Graph Engine to run, or with --engine|-e to exclude Graph Engine from execution.`
"formatDescriptionLong": "Specifies results output format written directly to the console.",
5
+
"normalizesevDescription": "return normalized severity 1 (high), 2 (moderate), and 3 (low), and the engine-specific severity",
6
+
"normalizesevDescriptionLong": "Returns normalized severity 1 (high), 2 (moderate), and 3 (low), and the engine-specific severity. For the html option, the normalized severity is displayed instead of the engine severity.",
7
+
"outfileDescription": "write output to a file",
8
+
"outfileDescriptionLong": "Writes output to a file.",
9
+
"projectdirDescription": "provide root directory of project",
10
+
"projectdirDescriptionLong": "Provides the relative or absolute root project directory used to set the context for Graph Engine's analysis. Project directory must be a path, not a glob. Specify multiple values as a comma-separated list.",
11
+
"sevthresholdDescription": "throw an error when a violation threshold is reached, the --normalize-severity is invoked, and severity levels are reset to the baseline",
12
+
"sevthresholdDescriptionLong": "Throws an error when violations are found with equal or greater severity than the provided value. Values are 1 (high), 2 (moderate), and 3 (low). Exit code is the most severe violation. Using this flag also invokes the --normalize-severity flag."
13
+
},
14
+
"validations": {
15
+
"cannotWriteTableToFile": "Format 'table' can't be written to a file. Specify a different format.",
16
+
"outfileFormatMismatch": "The selected output format doesn't match the output file type. Output format: %s. Output file type: %s.",
17
+
"outfileMustBeValid": "--outfile must be a well-formed filepath.",
18
+
"outfileMustBeSupportedType": "--outfile must be of a supported type: .csv; .xml; .json; .html; .sarif.",
"formatDescriptionLong": "Specifies results output format written directly to the console.",
8
-
"normalizesevDescription": "return normalized severity in addition to the engine-specific severity",
9
-
"normalizesevDescriptionLong": "Returns normalized severity 1 (high), 2 (moderate), and 3 (low) and the engine-specific severity. For the html option, normalized severity is displayed instead of the engine severity.",
10
-
"outfileDescription": "write output to a file",
11
-
"outfileDescriptionLong": "Writes output to a file.",
12
-
"projectdirDescription": "provide root directory of project",
13
-
"projectdirDescriptionLong": "Provides the relative or absolute root project directory used to set the context for Graph Engine's analysis. Project directory must be a path, not a glob. Specify multiple values as a comma-separated list.",
14
6
"ruledisablewarningviolationDescription": "disable warning violations from Salesforce Graph Engine. Alternatively, set value using environment variable `SFGE_RULE_DISABLE_WARNING_VIOLATION`",
15
7
"ruledisablewarningviolationDescriptionLong": "Disables warning violations, such as those on StripInaccessible READ access, to get only high-severity violations (default: false). Inherits value from SFGE_RULE_DISABLE_WARNING_VIOLATION env-var if set.",
16
8
"rulethreadcountDescription": "specify number of threads that evaluate DFA rules. Alternatively, set value using environment variable `SFGE_RULE_THREAD_COUNT`. Default is 4",
17
9
"rulethreadcountDescriptionLong": "Specifies number of rule evaluation threads, or how many entrypoints can be evaluated concurrently. Inherits value from SFGE_RULE_THREAD_COUNT env-var, if set. Default is 4.",
18
10
"rulethreadtimeoutDescription": "specify timeout for individual rule threads in milliseconds. Alternatively, set the timeout value using environment variable `SFGE_RULE_THREAD_TIMEOUT`. Default: 90000 ms",
19
11
"rulethreadtimeoutDescriptionLong": "Specifies time limit for evaluating a single entrypoint in milliseconds. Inherits value from SFGE_RULE_THREAD_TIMEOUT env-var if set. Default is 900,000 ms, or 15 minutes.",
20
-
"sevthresholdDescription": "throw an error when violations of specific or higher severity are detected, and invoke --normalize-severity",
21
-
"sevthresholdDescriptionLong": "Throws an error when violations are found with equal or greater severity than provided value. Values are 1 (high), 2 (moderate), and 3 (low). Exit code is the most severe violation. Using this flag also invokes the --normalize-severity flag.",
22
12
"sfgejvmargsDescription": "specify Java Virtual Machine (JVM) arguments to optimize Salesforce Graph Engine execution to your system (optional)",
23
13
"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.",
24
14
"targetDescription": "return location of source code",
@@ -27,12 +17,10 @@ module.exports = {
27
17
"validations": {
28
18
"methodLevelTargetCannotBeGlob": "Method-level targets supplied to --target cannot be globs",
29
19
"methodLevelTargetMustBeRealFile": "Method-level target %s must be a real file",
"formatDescriptionLong": "Specifies output format with results written directly to the console.",
13
-
"outfileDescription": "write output to a file",
14
-
"outfileDescriptionLong": "Writes output to a file.",
15
11
"envDescription": "[deprecated] override ESLint's default environment variables, in JSON-formatted string",
16
12
"envDescriptionLong": "[deprecated] Overrides ESLint's default environmental variables, in JSON-formatted string.",
17
13
"envParamDeprecationWarning": "--env parameter is being deprecated, and will be removed in a future release.",
18
14
"tsconfigDescription": "location of tsconfig.json file",
19
15
"tsconfigDescriptionLong": "Location of tsconfig.json file used by eslint-typescript engine.",
20
-
"stDescription": "throw an error when a violation threshold is reached, the --normalize-severity is invoked, and severity levels are reset to the baseline",
21
-
"stDescriptionLong": "Throws an error when violations are found with equal or greater severity than the provided value. --normalize-severity is invoked and severity levels are reset to the baseline. Normalized severity values are: 1 (high), 2 (moderate), and 3 (low). Exit code is the most severe violation.",
22
-
"nsDescription": "return normalized severity 1 (high), 2 (moderate), and 3 (low), and the engine-specific severity",
23
-
"nsDescriptionLong": "Returns normalized severity 1 (high), 2 (moderate), and 3 (low), and the engine-specific severity. For the html option, the normalized severity is displayed instead of the engine severity.",
24
16
'engineDescription': "specify which engines to run",
25
17
'engineDescriptionLong': "Specifies one or more engines to run. Submit multiple values as a comma-separated list.",
26
18
'eslintConfigDescription': 'specify the location of eslintrc config to customize eslint engine',
27
19
'eslintConfigDescriptionLong': 'Specifies the location of eslintrc config to customize eslint engine.',
28
20
'pmdConfigDescription': 'specify location of PMD rule reference XML file to customize rule selection',
29
21
'pmdConfigDescriptionLong': 'Specifies the location of PMD rule reference XML file to customize rule selection.',
"verboseViolationsDescriptionLong": "Returns retire-js violation messages details about each vulnerability, including summary, Common Vulnerabilities and Exposures (CVE), and URLs."
23
+
"verboseViolationsDescriptionLong": "Returns retire-js violation messages details about each vulnerability, including summary, Common Vulnerabilities and Exposures (CVE), and URLs."
32
24
},
33
25
"validations": {
34
26
"methodLevelTargetingDisallowed": "The target '%s' is invalid because method-level targeting isn't supported with this command.",
35
-
"outfileFormatMismatch": "The selected output format doesn't match the output file type. Output format: %s. Output file type: %s.",
36
-
"outfileMustBeValid": "--outfile must be a well-formed filepath.",
37
-
"outfileMustBeSupportedType": "--outfile must be of a supported type: .csv; .xml; .json; .html; .sarif.",
38
-
"cannotWriteTableToFile": "Format 'table' can't be written to a file. Specify a different format.",
39
27
"tsConfigEslintConfigExclusive": "A --tsconfig flag can't be specified with an --eslintconfig flag. Review your tsconfig path in the eslint config file under 'parseOptions.project'.",
40
28
},
41
29
"output": {
42
-
"noViolationsDetected": "Executed engines: %s. No rule violations found.",
43
30
"invalidEnvJson": "--env parameter must be a well-formed JSON.",
44
-
"engineSummaryTemplate": "Executed %s, found %s violation(s) across %s file(s).",
45
-
"writtenToOutFile": "Rule violations were written to %s.",
46
-
"writtenToConsole": "Rule violations were logged to the console.",
47
-
"sevThresholdSummary": "Rule violations of severity %s or more severe were detected.",
48
-
"pleaseSeeAbove": "Review the logs.",
49
31
"filtersIgnoredCustom": "Rule filters will be ignored by engines that are run with custom config using --pmdconfig or --eslintconfig flags. Modify your config file to include your filters."
50
32
},
51
33
"rulesetDeprecation": "The 'ruleset' command parameter is deprecated. Use 'category' instead.",
@@ -96,5 +78,13 @@ This example uses --normalize-severity to output normalized severity and engine-
96
78
97
79
This example uses --severity-threshold to throw a non-zero exit code when rule violations of normalized severity 2 or greater are found. If any violations with the specified severity (or greater) are found, the exit code equals the severity of the most severe violation.
0 commit comments