-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vdoc: cleanup get_module_list
, add unit tests
#21057
Conversation
b41ad9c
to
71c0cf3
Compare
Did you mean |
The commit is related to cleaning up tests the A feature I would like to implement is a |
I'm coming to the But I'm not too attached to the feature, so if it's not wanted improving |
No, it is not. The difference is scope. To do that using |
It is better for the ecosystem to gradually fix those, not to make it easier for projects to use a global .vfmtignore file. |
cmd/tools/vdoc/tests/testdata/module_list_with_ignore/testdata/echo/echo.v
Outdated
Show resolved
Hide resolved
The decision to not have a .vfmtignore is comprehensible. I'll won't submit a PR. The issue of not beeing able to easily run |
v-analyzer can just use .vv for those files, similar to what V itself does. rename s/.v$/.vv/gm metadata/stubs/*.v
rename s/.v$/.vv/gm editors/code/syntaxes/tests/*.v
rename s/.v$/.vv/gm tests/testdata/documentation/*.v
rename s/.v$/.vv/gm tests/testdata/types/*.v vfmt does not complain anymore:
|
2ea7139
to
d4d1ed6
Compare
b193cf3
to
ba29008
Compare
ba29008
to
d54384c
Compare
db65ffc
to
5f34c61
Compare
079d72a
to
373841e
Compare
Cleans up the
get_module_list
function and adds simple unit tests for it andget_ignore_paths
. Hoping this creates a better base for further development of such features.E.g. I'd like to add the functionality for a.vfmtignore
- similar to a.prettierignore
, but for now with the simple functionality of the.vdocignore
- in a follow up.