Running an analysis using a custom YAML rule

To run an analysis, use the --rules option in the CLI.

Procedure

Note that if you wish to use the --target or --source option in the CLI, the engine will only select rules that match the label for that target. Therefore, make sure that you have added target or source labels on your rules. See Reserved labels for more details.