2022-10-10 11:12:14 -04:00
|
|
|
# vale
|
|
|
|
|
|
|
|
> Extensible style checker that supports multiple markup formats, such as Markdown and AsciiDoc.
|
|
|
|
> More information: <https://vale.sh>.
|
|
|
|
|
|
|
|
- Check the style of a file:
|
|
|
|
|
2022-12-04 10:12:49 +01:00
|
|
|
`vale {{path/to/file}}`
|
2022-10-10 11:12:14 -04:00
|
|
|
|
|
|
|
- Check the style of a file with a specified configuration:
|
|
|
|
|
2022-12-04 10:12:49 +01:00
|
|
|
`vale --config='{{path/to/.vale.ini}}' {{path/to/file}}`
|
2022-10-10 11:12:14 -04:00
|
|
|
|
|
|
|
- Output the results in JSON format:
|
|
|
|
|
2022-12-04 10:12:49 +01:00
|
|
|
`vale --output=JSON {{path/to/file}}`
|
2022-10-10 11:12:14 -04:00
|
|
|
|
|
|
|
- Check style issues at the specific severity and higher:
|
|
|
|
|
2023-06-13 02:11:18 +08:00
|
|
|
`vale --minAlertLevel={{suggestion|warning|error}} {{path/to/file}}`
|
2022-10-10 11:12:14 -04:00
|
|
|
|
2022-12-04 08:53:34 +01:00
|
|
|
- Check the style from `stdin`, specifying markup format:
|
2022-10-10 11:12:14 -04:00
|
|
|
|
|
|
|
`cat {{file.md}} | vale --ext=.md`
|
|
|
|
|
|
|
|
- List the current configuration:
|
|
|
|
|
|
|
|
`vale ls-config`
|