errata-ai / vale

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.
https://vale.sh
MIT License
4.3k stars 144 forks source link

`vale --output line` doesn't output the alert level #790

Closed jvoisin closed 3 months ago

jvoisin commented 3 months ago

Check for existing issues

Environment

$ vale -v
vale version 3.2.2
$ uname -a
Linux facilier 6.6.15-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.15-2 (2024-02-04) x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux trixie/sid
Release:    n/a
Codename:   trixie
$

Describe the bug / provide steps to reproduce it

$ wget --quiet https://github.com/errata-ai/vale/blob/v3/README.md
$ vale --output line ./README.md 
README.md:17:42:Vale.Spelling:Did you really mean 'Config'?
README.md:42:14:Vale.Spelling:Did you really mean 'Appwrite'?
README.md:58:460:Vale.Spelling:Did you really mean 'Linode'?
README.md:58:603:Vale.Spelling:Did you really mean 'Spotify'?
README.md:73:3:Vale.Spelling:Did you really mean 'textlint'?
README.md:76:3:Vale.Spelling:Did you really mean 'proselint'?
README.md:77:3:Vale.Spelling:Did you really mean 'Joblint'?
README.md:78:3:Vale.Spelling:Did you really mean 'alex'?
README.md:119:56:Vale.Spelling:Did you really mean 'Joblint's'?
[1]
$ vale ./README.md 

 README.md
 17:42   error  Did you really mean 'Config'?   Vale.Spelling 
 42:14   error  Did you really mean             Vale.Spelling 
                'Appwrite'?                                   
 58:460  error  Did you really mean 'Linode'?   Vale.Spelling 
 58:603  error  Did you really mean 'Spotify'?  Vale.Spelling 
 73:3    error  Did you really mean             Vale.Spelling 
                'textlint'?                                   
 76:3    error  Did you really mean             Vale.Spelling 
                'proselint'?                                  
 77:3    error  Did you really mean 'Joblint'?  Vale.Spelling 
 78:3    error  Did you really mean 'alex'?     Vale.Spelling 
 119:56  error  Did you really mean             Vale.Spelling 
                'Joblint's'?                                  

✖ 9 errors, 0 warnings and 0 suggestions in 1 file.
[1]
$
jdkato commented 3 months ago

https://github.com/errata-ai/vale/pull/379