errata-ai / vale

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

E100 for dangling symlinks #919

Open teners opened 3 weeks ago

teners commented 3 weeks ago

Check for existing issues

Environment

Tested on:

Describe the bug / provide steps to reproduce it

vale.ini:

StylesPath = .vale
MinAlertLevel = suggestion
IgnoredScopes = link, code
Packages = https://gitlab.example.net/documentation-linter/DevDocs.zip
[formats]
mdx = md
[*.md]
BasedOnStyles = DevDocs
  1. Create a dangling symlink ln -s not-found.py symlink.py
  2. Run vale vale . --output=JSON

Expected behaviour

The command is unaffected by the dangling symlink.

Actual behaviour

The command fails with

{
  "Code": "E100",
  "Text": "stat symlink.py: no such file or directory"
}

Notes