Skip to content

Verify Command

David Alcantar edited this page May 17, 2023 · 8 revisions

The Verify command verifies the syntax and consistency of the rules in the given directory. This command is useful when authoring new rules.

Syntax

Usage: devskim verify [arguments] [options]

Arguments:
  -r                         Comma separated list of paths to rules files to use

Options:
  --languages                Path to custom json formatted Language file to specify languages. 
                             When specified, --comments must also be specified.
  --comments                 Path to custom json formatted Comments file to specify comments. 
                             When specified, --languages must also be specified.
  -x, --console-verbosity    Console verbosity [Verbose|Debug|Information|Warning|Error|Fatal] (Default: Information) 
  --disable-console          Disable console output of logging messages. (Default: false) 
  -v, --log-file-level       Log file level [Verbose|Debug|Information|Warning|Error|Fatal] (Default: Error) 
  -l, --log-file-path        Log file path. If not set, will not log to file.
  --help                     Show help information.
  --version                  Display version information.

Example

devskim verify -r /home/user/myrules/

References