mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vvet: move to own subdir, prepare richer suggestions (#7989)
This commit is contained in:
2
cmd/tools/vvet/tests/array_init_one_val.out
Normal file
2
cmd/tools/vvet/tests/array_init_one_val.out
Normal file
@@ -0,0 +1,2 @@
|
||||
cmd/tools/vvet/tests/array_init_one_val.vv:2: Use `var == value` instead of `var in [value]`
|
||||
NB: You can run `v fmt -w file.v` to fix these automatically
|
||||
5
cmd/tools/vvet/tests/array_init_one_val.vv
Normal file
5
cmd/tools/vvet/tests/array_init_one_val.vv
Normal file
@@ -0,0 +1,5 @@
|
||||
fn main() {
|
||||
if 1 in [1] {
|
||||
println('hello world')
|
||||
}
|
||||
}
|
||||
2
cmd/tools/vvet/tests/indent_with_space.out
Normal file
2
cmd/tools/vvet/tests/indent_with_space.out
Normal file
@@ -0,0 +1,2 @@
|
||||
cmd/tools/vvet/tests/indent_with_space.vv:2: Looks like you are using spaces for indentation.
|
||||
NB: You can run `v fmt -w file.v` to fix these automatically
|
||||
3
cmd/tools/vvet/tests/indent_with_space.vv
Normal file
3
cmd/tools/vvet/tests/indent_with_space.vv
Normal file
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
_ = 1 == 2
|
||||
}
|
||||
2
cmd/tools/vvet/tests/parens_space_a.out
Normal file
2
cmd/tools/vvet/tests/parens_space_a.out
Normal file
@@ -0,0 +1,2 @@
|
||||
cmd/tools/vvet/tests/parens_space_a.vv:1: Looks like you are adding a space after `(`
|
||||
NB: You can run `v fmt -w file.v` to fix these automatically
|
||||
4
cmd/tools/vvet/tests/parens_space_a.vv
Normal file
4
cmd/tools/vvet/tests/parens_space_a.vv
Normal file
@@ -0,0 +1,4 @@
|
||||
fn main() {
|
||||
_ = 1 + ( 1 + 2)
|
||||
}
|
||||
|
||||
2
cmd/tools/vvet/tests/parens_space_b.out
Normal file
2
cmd/tools/vvet/tests/parens_space_b.out
Normal file
@@ -0,0 +1,2 @@
|
||||
cmd/tools/vvet/tests/parens_space_b.vv:1: Looks like you are adding a space before `)`
|
||||
NB: You can run `v fmt -w file.v` to fix these automatically
|
||||
4
cmd/tools/vvet/tests/parens_space_b.vv
Normal file
4
cmd/tools/vvet/tests/parens_space_b.vv
Normal file
@@ -0,0 +1,4 @@
|
||||
fn main() {
|
||||
_ = 1 + (1 + 2 )
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user