1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

97 Commits

Author SHA1 Message Date
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
yuyi
17000ef7b6
checker: check option fn returning error (fix #17423) (#17438) 2023-03-02 15:49:50 +02:00
ChAoS_UnItY
404a9aa442
v: forbid function parameter names, shadowing imported module names (#17210) 2023-02-08 20:37:04 +02:00
Christopher Fore
2029d1830f
tools: remove cmd/tools/modules/vhelp/ & add print to v share (#17178) 2023-02-01 11:18:23 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
Delyan Angelov
b52b8429d4
vfmt: implement support for // vfmt off and // vfmt on, with it, v fmt -w . now works. (#16335) 2022-11-05 09:08:01 +03:00
Delyan Angelov
f427a5241a
os,tools: add os.vtmp_dir()
Use it to consistently place all temporary files created by tests in a overridable folder specific to the user, that is easy to cleanup later.

NOTE: os.temp_dir() on macos returns `/tmp`, and using `/tmp/v` is a problem when multiple unix users are trying to access/create/write to it.
2022-11-03 10:19:51 +02:00
Delyan Angelov
0f3b2c2ae7
builtin: use C.fwrite (buffered) for _write_buf_to_fd (#14558) 2022-05-30 19:15:05 +03:00
Delyan Angelov
365e7d6b34
vfmt: ignore parser warnings, cleanup code 2022-04-23 11:10:12 +03:00
Delyan Angelov
8788512c4d
checker: make using err.msg and err.code produce an *actual* notice, even with the present compatibility hack (will be *removed* in 2022-06-01) 2022-04-12 14:56:02 +03:00
Delyan Angelov
60e718e7c6 test: save removing the nonexistent binary output for v fmt and v vet tests 2022-04-09 13:04:52 +03:00
Delyan Angelov
236bcda549
tools: speedup v fmt -verify when there are no file differences, avoiding diff.color_compare_files 2022-03-18 12:15:55 +02:00
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Tarcisio Gruppi
51513ae19a
vfmt: keep file permissions with -w on !windows (#13334) 2022-02-01 14:49:06 +02:00
Delyan Angelov
fa6f7d4c83
os: add os.quoted_path/1, use it consistently for running V itself 2022-01-22 21:13:28 +02:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
Delyan Angelov
fbe54e49f5
tools: support v fmt -w -backup file.v 2021-10-07 13:59:49 +03:00
yuyi
a5c784830b
all: simplify global_scope processing (#10848) 2021-07-18 15:29:34 +03:00
Delyan Angelov
972542d6ee
checker: [noreturn] part 2 (cleanup) (#10667) 2021-07-05 05:05:37 +03:00
Delyan Angelov
b6bd6d1d35
tests: add cmd/tools/vdoc/tests/vdoc_file_test.v, extract a v.util.diff module, cleanup 2021-06-22 18:52:34 +03:00
Lukas Neubert
4b230d16b3
vfmt: only print non-empty diffs (#9803) 2021-04-19 18:55:55 +03:00
crthpl
14434cc86a
all: bare metal support (fix -freestanding) (#9624) 2021-04-14 07:50:50 +02:00
Lukas Neubert
790961e73a
fmt: remove duplicate worker error check (#9631) 2021-04-08 02:11:56 +02:00
Lukas Neubert
0eb59cf2bd
fmt: prevent possible trailing whitespace in wrapped infixes (#9573) 2021-04-03 18:30:25 +02:00
Alexander Medvednikov
7385f8e56b all: a massive merge of ast and table modules 2021-04-02 01:57:09 +03:00
Delyan Angelov
9b78d7d21d
tools: check formatting of more modules with v test-cleancode, colorize v vet output 2021-03-24 12:39:39 +02:00
Lukas Neubert
141a6db16b
vfmt: print worker execution errors with -debug (#9238) 2021-03-10 20:21:39 +02:00
Delyan Angelov
d7049ae2da
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974) 2021-03-08 20:52:13 +02:00
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
Delyan Angelov
1e9ec6a126
vfmt: exit(1) after vfmt-ing a file with a syntax error 2021-02-04 16:00:14 +02:00
Lukas Neubert
3ef4885094
vfmt: enable colored warnings/errors (#8527) 2021-02-03 10:03:41 +02:00
Alexander Medvednikov
2c4674eb42 cgen: obfuscate functions 2021-02-02 09:14:41 +01:00
Julia Bogdan Filipchuk
d26ac0f6cb
vfmt: add ability to use vfmt as a filter from stdin to stdout (#8432) 2021-01-30 12:38:54 +02:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Delyan Angelov
aa37382e8d
tools: let v fmt use VTMP too, stabilise v test-cleancode 2021-01-09 20:41:15 +02:00
Delyan Angelov
7bf46c36bb
vfmt: add a comment about the role of the .is_worker field 2020-12-27 17:15:26 +02:00
Lukas Neubert
aac8520838
vfmt: correctly increment error counter (#7615) 2020-12-27 16:26:51 +02:00
Lukas Neubert
e8b5fa2134
vfmt: fix early exit when verifying multiple files; update help (#7611) 2020-12-27 14:36:59 +01:00
Lukas Neubert
dbdcef5166
quote_path: also quote ampersands (#6846) 2020-11-16 19:26:44 +02:00
Delyan Angelov
941f138934 vfmt: use rand.ulid() for the worker file name (make v test-fmt more robust) 2020-10-18 13:46:30 +03:00
Delyan Angelov
31ef921ef2 ci: fix warnings/errors due to the vfmt change 2020-10-15 16:17:52 +03:00
Enzo
a2fba05218
fmt: allow fmt to be run on directories (#6613) 2020-10-13 21:03:53 +02:00
Tom Paoletti
9ea7369b05
fmt: allow formatting of v shell files (.vsh) (#6555) 2020-10-04 06:33:38 +02:00
Alexander Medvednikov
3c90da6afa ci: enable vfmt check 2020-07-20 22:26:44 +02:00
Ryan Willis
e804ba5294
vfmt: add support for VDIFF_TOOL, detect more diffing tools (#5857) 2020-07-17 14:03:07 +03:00
Alexander Medvednikov
9b2cbdacc6 vfmt: verify 2020-07-16 19:46:03 +02:00
Alexander Medvednikov
5bd6d3acb5 vfmt: re-enable 2020-06-26 03:22:27 +02:00
Alexander Medvednikov
83b300435a vweb: escape html; table: rename parent_typ to parent_type 2020-06-24 22:12:33 +02:00