Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

E100 for dangling symlinks #919

Open
1 task done
teners opened this issue Nov 5, 2024 · 0 comments
Open
1 task done

E100 for dangling symlinks #919

teners opened this issue Nov 5, 2024 · 0 comments

Comments

@teners
Copy link
Contributor

teners commented Nov 5, 2024

Check for existing issues

  • Completed

Environment

Tested on:

  • macOS 15.1, installed via Homebrew
  • Debian 12, installed by direct download from GitHub releases
  • vale 3.6.1–3.8.0

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

  • vale sync is not affected
  • I'm not sure whether this behaviour is completely incorrect, or if it makes sense for files that are actually being checked by vale — probably if I had a broken symlink to a Markdown file in my project, it would be okay if the command faild, but maybe the error message could be improved.
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant