v2 / vlib / v / help / common / vet.txt
23 lines · 15 sloc · 802 bytes · 45b79dfb9711cec3b3494c54c0f0f087e241d503
Raw
Reports suspicious code constructs.

Usage:
  v vet [options] path_to_source.v [path_to_other_source.v]
  v vet [options] path/to/dir [path/to/other_dir]

Options:
  -W                  Exit with code 1, even if vet only reported warnings.
                      Useful for checks in CI.

  -w, -hide-warnings  Do not print warnings to stderr.

  -v, -verbose        Enable verbose logging.

  -F                  Report empty and long function declaration 
                      (default: >300 lines).

  -I                  Report potential function to be inlined.

  -p                  Report private functions with missing documentation too
                      (by default, only the `pub fn` functions will be reported).

  -r                  Report repeated piece of code (e.g. var[0], call()).