Skip to content

v.vet #

enum ErrorKind #

enum ErrorKind {
	error
	warning
	notice
}

enum ErrorType #

enum ErrorType {
	default
	space_indent
	trailing_space
}

ErrorType is used to filter out false positive errors under specific conditions

enum FixKind #

enum FixKind {
	unknown
	doc
	vfmt
}

struct Error #

@[minify]
struct Error {
pub mut:
	kind ErrorKind @[required]
pub:
	// General message
	message   string    @[required]
	details   string    // Details about how to resolve or fix the situation
	file_path string    // file where the error have origin
	pos       token.Pos // position in the file
	fix       FixKind   @[required]
	typ       ErrorType @[required]
}