forked from vlang/v
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/check-md: allow directories as args and deprecate -all flag (vl…
- Loading branch information
Lukas Neubert
authored
Feb 5, 2021
1 parent
12e8e31
commit 76ea3e7
Showing
9 changed files
with
71 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
check-md is a tool to check the passed markdown files for correct ```v ``` code blocks | ||
and other style violations like too long lines/links etc... | ||
|
||
Usage: | ||
a) `v check-md [flags] <...files>` - Check the given .md files. | ||
b) `v check-md [flags] <...dirs>` - Check *all* files in the given directories. | ||
Note: You can also combine files and directories. | ||
|
||
Flags: | ||
-hide-warnings Do not print warnings, only errors. | ||
|
||
NB: There are several special keywords, which you can put after the code fences for v. | ||
These are: | ||
compile - Default, can be omitted. The example will be compiled and formatting is verified. | ||
live - Compile hot reload examples with the ´-live´ flag set and verify formatting. | ||
ignore - Ignore the example, useful for examples that just use the syntax highlighting | ||
failcompile - Known failing compilation. Useful for examples demonstrating compiler errors. | ||
oksyntax - Should parse and be formatted but may not compile. Useful for partial examples. | ||
badsyntax - Known bad syntax, it should not even parse. | ||
wip - Like ignore; a planned feature; easy to search. | ||
nofmt - Disable fmt verification for individual code blocks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters