-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#242] No scan symlinks as md files #261
Conversation
ff20ef4
to
b68920f
Compare
After several attempts on where to ignore symlinks, I have implemented the simplest one and we will complicate it in a following PR for #244 if necessary. |
b68920f
to
609282a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me.
I extra checked the commit description, and see everything I wanted to see there 👍
Leaving just two comments.
@@ -44,10 +44,11 @@ Unreleased | |||
* [#254](https://github.com/serokell/xrefcheck/pull/254) | |||
+ Now the `dump-config` command does not overwrite a file unless explicitly told with a | |||
`--force` flag. Also, a `--stdout` flag allows to print the config to stdout instead. | |||
the configured Markdown flavour. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good change 👍
And I would like it to be placed to a different commit 😸
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the addition below should probably belong to the main commit )
Also, I would add a description to that commit you extracted after all. At a first glance, it's not clear why exactly you delete this line, maybe it was meant to contain some important information and should be extended, not removed. If in the commit description you mention that this was an accidental copy-paste, that would make the reasoning much clearer for an arbitrary git history reader.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good, thank you 👍
609282a
to
066da26
Compare
066da26
to
1431587
Compare
1431587
to
e45ebd8
Compare
Problem: There is a duplicated line in the changelog unreleased section, which seems to be an accidental copy-paste typo or a bad merge conflict resolution. Solution: Delete the aforementioned changelog line.
Problem: When the repository contains a symlink to a markdown file, it is processed by xrefcheck as if it was the same markdown file but in the symlink's location. This leads to broken references and can be avoided because neither GitHub nor GitLab try to render symlinks as the file they point to. Solution: Consider symlinks as no scannable files. In the future, we will consider to include a new dedicated scanner for symlinks if it works.
e45ebd8
to
fef5153
Compare
Problem: when the repository contains a symlink to a markdown file, it is processed by xrefcheck as if it was the same markdown file but in the symlink's location. This leads to broken references and can be avoided because neither GitHub nor GitLab try to render symlinks as the file they point to.
Solution: consider symlinks as no scannable files. In the future, we will consider to include a new dedicated scanner for symlinks if it works.
Related issue(s)
Fixes #242
Relates #244
✅ Checklist for your Pull Request
Related changes (conditional)
Tests
silently reappearing again.
Documentation
Public contracts
of Public Contracts policy.
and
Stylistic guide (mandatory)