@salesforce/sfdx-scanner
Advanced tools
Comparing version 1.0.27 to 1.0.28
@@ -5,3 +5,3 @@ module.exports = { | ||
"VersionNotFound": "Unable to find Java version. [Todo: Instructions on how to setup correctly]", | ||
"InvalidVersion": "Java version %s not supported. [Todo: Instructions on how to setup correctly]" | ||
"InvalidVersion": "Java version %s not supported. Please install Java 1.8 or later." | ||
}; |
@@ -1,1 +0,1 @@ | ||
{"version":"1.0.27","commands":{"scanner:run":{"id":"scanner:run","description":"Evaluate a selection of rules against a codebase.","usage":"<%= command.id %> [-c <array>] [-r <array>] [-t <array> | undefined] [-f xml|junit|csv|table] [-o <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/sfdx-scanner","pluginType":"core","aliases":[],"examples":["Invoking without specifying any rules causes all rules to be run.\n E.g., $ sfdx scanner:run --format xml --target \"somefile.js\"\n Evaluates all rules against somefile.js.\n\nSpecifying multiple categories or rulesets is treated as a logical OR.\n E.g., $ sfdx scanner:run --format xml --target \"somefile.js\" --category \"Design,Best Practices\" --ruleset \"Braces\"\n Evaluates all rules in the Design and Best Practices categories, and all rules in the Braces ruleset.\n\nWrap globs in quotes.\n Unix example: $ sfdx scanner:run --target './**/*.js,!./**/IgnoreMe.js' ...\n Windows example: > sfdx scanner:run --target \".\\**\\*.js,!.\\**\\IgnoreMe.js\" ...\n Evaluate rules against all .js files below the current directory, except for IgnoreMe.js.\n"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"emit additional command output to stdout","allowNo":false},"category":{"name":"category","type":"option","char":"c","description":"One or more categories of rules to run. Multiple values can be specified as a comma-separated list."},"ruleset":{"name":"ruleset","type":"option","char":"r","description":"One or more rulesets to run. Multiple values can be specified as a comma-separated list."},"rulename":{"name":"rulename","type":"option","char":"n","description":"[Description of 'rulename' parameter]","hidden":true},"severity":{"name":"severity","type":"option","char":"s","description":"[Description of 'severity' parameter]","hidden":true},"exclude-rule":{"name":"exclude-rule","type":"option","description":"[Description of 'exclude-rule' parameter]","hidden":true},"target":{"name":"target","type":"option","char":"t","description":"Source code location. May use glob patterns. Multiple values can be specified as a comma-separated list"},"org":{"name":"org","type":"option","char":"a","description":"[Description of 'org' parameter]","hidden":true},"suppress-warnings":{"name":"suppress-warnings","type":"boolean","description":"[Description of 'suppress-warnings' parameter]","hidden":true,"allowNo":false},"format":{"name":"format","type":"option","char":"f","description":"Specifies output format with results written directly to the console.","helpValue":"(xml|junit|csv|table)","options":["xml","junit","csv","table"]},"outfile":{"name":"outfile","type":"option","char":"o","description":"Write output to a file."}},"args":[{"name":"file"}]},"scanner:scannerCommand":{"id":"scanner:scannerCommand","usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/sfdx-scanner","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[]},"scanner:rule:add":{"id":"scanner:rule:add","description":"Add custom rules to the scanner's registry.","usage":"<%= command.id %> -l <string> -p <array> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/sfdx-scanner","pluginType":"core","aliases":[],"examples":["PMD: Custom PMD rules should be in JARs. Adhere to PMD conventions, including defining rules in XMLs under a /category directory.\nRefer to PMD's documentation for information on writing rules: https://pmd.github.io/latest/pmd_userdocs_extending_writing_pmd_rules.html\n \n You may specify one or more JARs directly.\n E.g., $ sfdx scanner:rule:add --language apex --path \"/Users/me/rules/Jar1.jar,/Users/me/rules/Jar2.jar\"\n Successfully added rules for apex.\n 2 path(s) added:\n /Users/me/rules/SomeJar.jar,/Users/me/rules/AnotherJar.jar\n \n You may also specify a directory containing one or more JARs, all of which will be added.\n E.g., $ sfdx scanner:rule:add --language apex --path \"/Users/me/rules\"\n Successfully added rules for apex.\n 2 path(s) added:\n /Users/me/rules/SomeJar.jar,/Users/me/rules/AnotherJar.jar\n "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"language":{"name":"language","type":"option","char":"l","description":"Language against which the custom rules will evaluate.","required":true},"path":{"name":"path","type":"option","char":"p","description":"One or more paths to custom rule definitions. Specify multiple values with a comma-separated list.","required":true}},"args":[]},"scanner:rule:describe":{"id":"scanner:rule:describe","description":"Provide detailed information about a rule.","usage":"<%= command.id %> -n <string> [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/sfdx-scanner","pluginType":"core","aliases":[],"examples":["$ sfdx scanner:rule:describe --rulename ExampleRule\n name: ExampleRule\n categories: ExampleCategory\n rulesets: Ruleset1\n Ruleset2\n Ruleset3\n languages: apex\n description: Short description of rule\n message: ExampleRule Violated.\n "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"rulename":{"name":"rulename","type":"option","char":"n","description":"The name of a rule.","required":true},"verbose":{"name":"verbose","type":"boolean","description":"emit additional command output to stdout","allowNo":false}},"args":[{"name":"file"}]},"scanner:rule:list":{"id":"scanner:rule:list","description":"Lists basic information about all rules matching provided criteria","usage":"<%= command.id %> [-c <array>] [-r <array>] [-l <array>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/sfdx-scanner","pluginType":"core","aliases":[],"examples":["Invoking with no filter criteria returns all rules.\n E.g., $ sfdx scanner:rule:list\n Returns a table containing all rules.\n \nThe values supplied to a single filter are handled with a logical OR.\n E.g., $ sfdx scanner:rule:list --language apex,javascript\n Returns all rules for Apex OR Javascript.\n\nDifferent filters are combined with a logical AND.\n E.g., $ sfdx scanner:rule:list --language apex,javascript --ruleset Braces,Security\n Returns all rules that:\n 1) Target Apex OR Javascript,\n AND...\n 2) Are members of the Braces OR Security rulesets.\n "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"emit additional command output to stdout","allowNo":false},"category":{"name":"category","type":"option","char":"c","description":"Select rules by category. Enter multiple values as a comma-separated list."},"ruleset":{"name":"ruleset","type":"option","char":"r","description":"Select rules by ruleset. Enter multiple values as a comma-separated list."},"language":{"name":"language","type":"option","char":"l","description":"Select rules by language. Enter multiple values as a comma-separated list."},"severity":{"name":"severity","type":"option","char":"s","description":"[Description of 'severity' parameter]","hidden":true},"standard":{"name":"standard","type":"boolean","description":"[Description of 'standard' parameter]","hidden":true,"allowNo":false},"custom":{"name":"custom","type":"boolean","description":"[Description of 'custom' parameter]","hidden":true,"allowNo":false}},"args":[{"name":"file"}]}}} | ||
{"version":"1.0.28","commands":{"scanner:run":{"id":"scanner:run","description":"Evaluate a selection of rules against a codebase.","usage":"<%= command.id %> [-c <array>] [-r <array>] [-t <array> | undefined] [-f xml|junit|csv|table] [-o <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/sfdx-scanner","pluginType":"core","aliases":[],"examples":["Invoking without specifying any rules causes all rules to be run.\n E.g., $ sfdx scanner:run --format xml --target \"somefile.js\"\n Evaluates all rules against somefile.js.\n\nSpecifying multiple categories or rulesets is treated as a logical OR.\n E.g., $ sfdx scanner:run --format xml --target \"somefile.js\" --category \"Design,Best Practices\" --ruleset \"Braces\"\n Evaluates all rules in the Design and Best Practices categories, and all rules in the Braces ruleset.\n\nWrap globs in quotes.\n Unix example: $ sfdx scanner:run --target './**/*.js,!./**/IgnoreMe.js' ...\n Windows example: > sfdx scanner:run --target \".\\**\\*.js,!.\\**\\IgnoreMe.js\" ...\n Evaluate rules against all .js files below the current directory, except for IgnoreMe.js.\n"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"emit additional command output to stdout","allowNo":false},"category":{"name":"category","type":"option","char":"c","description":"One or more categories of rules to run. Multiple values can be specified as a comma-separated list."},"ruleset":{"name":"ruleset","type":"option","char":"r","description":"One or more rulesets to run. Multiple values can be specified as a comma-separated list."},"rulename":{"name":"rulename","type":"option","char":"n","description":"[Description of 'rulename' parameter]","hidden":true},"severity":{"name":"severity","type":"option","char":"s","description":"[Description of 'severity' parameter]","hidden":true},"exclude-rule":{"name":"exclude-rule","type":"option","description":"[Description of 'exclude-rule' parameter]","hidden":true},"target":{"name":"target","type":"option","char":"t","description":"Source code location. May use glob patterns. Multiple values can be specified as a comma-separated list"},"org":{"name":"org","type":"option","char":"a","description":"[Description of 'org' parameter]","hidden":true},"suppress-warnings":{"name":"suppress-warnings","type":"boolean","description":"[Description of 'suppress-warnings' parameter]","hidden":true,"allowNo":false},"format":{"name":"format","type":"option","char":"f","description":"Specifies output format with results written directly to the console.","helpValue":"(xml|junit|csv|table)","options":["xml","junit","csv","table"]},"outfile":{"name":"outfile","type":"option","char":"o","description":"Write output to a file."}},"args":[{"name":"file"}]},"scanner:scannerCommand":{"id":"scanner:scannerCommand","usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/sfdx-scanner","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[]},"scanner:rule:add":{"id":"scanner:rule:add","description":"Add custom rules to the scanner's registry.","usage":"<%= command.id %> -l <string> -p <array> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/sfdx-scanner","pluginType":"core","aliases":[],"examples":["PMD: Custom PMD rules should be in JARs. Adhere to PMD conventions, including defining rules in XMLs under a /category directory.\nRefer to PMD's documentation for information on writing rules: https://pmd.github.io/latest/pmd_userdocs_extending_writing_pmd_rules.html\n \n You may specify one or more JARs directly.\n E.g., $ sfdx scanner:rule:add --language apex --path \"/Users/me/rules/Jar1.jar,/Users/me/rules/Jar2.jar\"\n Successfully added rules for apex.\n 2 path(s) added:\n /Users/me/rules/SomeJar.jar,/Users/me/rules/AnotherJar.jar\n \n You may also specify a directory containing one or more JARs, all of which will be added.\n E.g., $ sfdx scanner:rule:add --language apex --path \"/Users/me/rules\"\n Successfully added rules for apex.\n 2 path(s) added:\n /Users/me/rules/SomeJar.jar,/Users/me/rules/AnotherJar.jar\n "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"language":{"name":"language","type":"option","char":"l","description":"Language against which the custom rules will evaluate.","required":true},"path":{"name":"path","type":"option","char":"p","description":"One or more paths to custom rule definitions. Specify multiple values with a comma-separated list.","required":true}},"args":[]},"scanner:rule:describe":{"id":"scanner:rule:describe","description":"Provide detailed information about a rule.","usage":"<%= command.id %> -n <string> [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/sfdx-scanner","pluginType":"core","aliases":[],"examples":["$ sfdx scanner:rule:describe --rulename ExampleRule\n name: ExampleRule\n categories: ExampleCategory\n rulesets: Ruleset1\n Ruleset2\n Ruleset3\n languages: apex\n description: Short description of rule\n message: ExampleRule Violated.\n "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"rulename":{"name":"rulename","type":"option","char":"n","description":"The name of a rule.","required":true},"verbose":{"name":"verbose","type":"boolean","description":"emit additional command output to stdout","allowNo":false}},"args":[{"name":"file"}]},"scanner:rule:list":{"id":"scanner:rule:list","description":"Lists basic information about all rules matching provided criteria","usage":"<%= command.id %> [-c <array>] [-r <array>] [-l <array>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/sfdx-scanner","pluginType":"core","aliases":[],"examples":["Invoking with no filter criteria returns all rules.\n E.g., $ sfdx scanner:rule:list\n Returns a table containing all rules.\n \nThe values supplied to a single filter are handled with a logical OR.\n E.g., $ sfdx scanner:rule:list --language apex,javascript\n Returns all rules for Apex OR Javascript.\n\nDifferent filters are combined with a logical AND.\n E.g., $ sfdx scanner:rule:list --language apex,javascript --ruleset Braces,Security\n Returns all rules that:\n 1) Target Apex OR Javascript,\n AND...\n 2) Are members of the Braces OR Security rulesets.\n "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"emit additional command output to stdout","allowNo":false},"category":{"name":"category","type":"option","char":"c","description":"Select rules by category. Enter multiple values as a comma-separated list."},"ruleset":{"name":"ruleset","type":"option","char":"r","description":"Select rules by ruleset. Enter multiple values as a comma-separated list."},"language":{"name":"language","type":"option","char":"l","description":"Select rules by language. Enter multiple values as a comma-separated list."},"severity":{"name":"severity","type":"option","char":"s","description":"[Description of 'severity' parameter]","hidden":true},"standard":{"name":"standard","type":"boolean","description":"[Description of 'standard' parameter]","hidden":true,"allowNo":false},"custom":{"name":"custom","type":"boolean","description":"[Description of 'custom' parameter]","hidden":true,"allowNo":false}},"args":[{"name":"file"}]}}} |
{ | ||
"name": "@salesforce/sfdx-scanner", | ||
"description": "Static code scanner that applies quality and security rules to Apex code, and provides feedback.", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"author": "ISV SWAT", | ||
@@ -88,3 +88,3 @@ "bugs": "https://github.com/forcedotcom/sfdx-scanner/issues", | ||
"test": "./gradlew test && nyc mocha \"./test/**/*.test.ts\"", | ||
"postinstall": "ts-node -e \"require('./lib/lib/JreSetupManager').verifyJreSetup()\"", | ||
"postinstall": "ts-node -e \"require('./lib/lib/postinstall').execute()\"", | ||
"coverage": "nyc report --reporter text", | ||
@@ -91,0 +91,0 @@ "version": "oclif-dev readme && git add README.md" |
@@ -24,3 +24,3 @@ | ||
$ sfdx (-v|--version|version) | ||
@salesforce/sfdx-scanner/1.0.27 linux-x64 node-v10.15.3 | ||
@salesforce/sfdx-scanner/1.0.28 linux-x64 node-v10.15.3 | ||
$ sfdx --help [COMMAND] | ||
@@ -81,3 +81,3 @@ USAGE | ||
_See code: [lib/commands/scanner/rule/add.js](https://github.com/forcedotcom/sfdx-scanner/blob/v1.0.27/lib/commands/scanner/rule/add.js)_ | ||
_See code: [lib/commands/scanner/rule/add.js](https://github.com/forcedotcom/sfdx-scanner/blob/v1.0.28/lib/commands/scanner/rule/add.js)_ | ||
@@ -115,3 +115,3 @@ ## `sfdx scanner:rule:describe -n <string> [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
_See code: [lib/commands/scanner/rule/describe.js](https://github.com/forcedotcom/sfdx-scanner/blob/v1.0.27/lib/commands/scanner/rule/describe.js)_ | ||
_See code: [lib/commands/scanner/rule/describe.js](https://github.com/forcedotcom/sfdx-scanner/blob/v1.0.28/lib/commands/scanner/rule/describe.js)_ | ||
@@ -165,3 +165,3 @@ ## `sfdx scanner:rule:list [-c <array>] [-r <array>] [-l <array>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
_See code: [lib/commands/scanner/rule/list.js](https://github.com/forcedotcom/sfdx-scanner/blob/v1.0.27/lib/commands/scanner/rule/list.js)_ | ||
_See code: [lib/commands/scanner/rule/list.js](https://github.com/forcedotcom/sfdx-scanner/blob/v1.0.28/lib/commands/scanner/rule/list.js)_ | ||
@@ -218,3 +218,3 @@ ## `sfdx scanner:run [-c <array>] [-r <array>] [-t <array> | undefined] [-f xml|junit|csv|table] [-o <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
_See code: [lib/commands/scanner/run.js](https://github.com/forcedotcom/sfdx-scanner/blob/v1.0.27/lib/commands/scanner/run.js)_ | ||
_See code: [lib/commands/scanner/run.js](https://github.com/forcedotcom/sfdx-scanner/blob/v1.0.28/lib/commands/scanner/run.js)_ | ||
@@ -235,3 +235,3 @@ ## `sfdx scanner:scannerCommand [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` | ||
_See code: [lib/commands/scanner/scannerCommand.js](https://github.com/forcedotcom/sfdx-scanner/blob/v1.0.27/lib/commands/scanner/scannerCommand.js)_ | ||
_See code: [lib/commands/scanner/scannerCommand.js](https://github.com/forcedotcom/sfdx-scanner/blob/v1.0.28/lib/commands/scanner/scannerCommand.js)_ | ||
<!-- commandsstop --> | ||
@@ -238,0 +238,0 @@ <!-- debugging-your-plugin --> |
Sorry, the diff of this file is not supported yet
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
74876529
168
2112