Files
tldr/pages.zh/common/vale.md

28 lines
609 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# vale
> 可扩展的样式检查器支持多种标记格式如Markdown和AsciiDoc。
> 更多信息:<https://vale.sh>。
- 检查文件的样式:
`vale {{path/to/file}}`
- 使用指定配置检查文件的样式:
`vale --config='{{path/to/.vale.ini}}' {{path/to/file}}`
- 以JSON格式输出结果
`vale --output=JSON {{path/to/file}}`
- 检查特定严重性及更高的样式问题:
`vale --minAlertLevel={{suggestion|warning|error}} {{path/to/file}}`
-`stdin`检查样式,指定标记格式:
`cat {{file.md}} | vale --ext=.md`
- 列出当前配置:
`vale ls-config`