sf scanner rule remove

Removes custom rules from the registry of available rules. Use the -p|--path parameter to specify one or more paths to remove. If you don't specify any parameters, the command lists all valid custom paths but doesn't remove any.

Review these examples for some ideas on how to run scanner rule remove.

This example runs the command without arguments to see a list of registered custom paths.

This example uses the --path parameter to deregister the rules defined in somerules.jar and myrules.xml, and all JARs/XMLs contained in the rules folder.

  • ~/path/to/somerules.jar,~/path/to/category/apex/myrules.xml,~/path/to/folder/containing/rule: One or more paths to remove.

This example uses the --force flag to bypass the confirmation prompt, removing all rules defined in somerules.jar. By default, a list of all the rules that are deregistered is displayed, and the action must be confirmed. To bypass that confirmation, use the --force flag.

  • ~/path/to/somerules.jar: One or more paths to remove.

sf scanner rule remove

   [-f]

   [-p PATH_LIST]

   [--json]

   [--verbose]

-f | --force

Optional

Bypasses the confirmation prompt and immediately removes the rules.

Type: boolean

-p | --path PATH_LIST

Optional

One or more paths to remove. Specify multiple values with a comma-separated list.

Type: option

--json

Optional

Format output as JSON.

Type: boolean

--verbose

Optional

Emit additional command output to stdout.

Type: boolean