-
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
[#139] [#168] [#195] Ignore build-related files #174
Conversation
Am I right that now we check only staged files? And what about links to unstaged ones - will we report them? Another comment - I am not sure that xrefcheck should work only with Git repos (and before this commit we can run this in any folder) So I think there should be CLI opt and config flag to disable "git ls-files" usage |
Yes, now we only check files tracked by git.
Oh, indeed links to untracked files are still valid. Thank you for noticing that!
True, but before that commit we still check unstaged changes and also have to specify ignored files twice(for git and for xrefcheck). Not sure if it makes sense to check untracked files.
Here is quote from issue comments
|
@dcastro what do you think about making an option to disable "git ls-files" call? For example, someone can use xrefcheck on directory which is served by FTP server. I think it's better to give not perfect reports (when talking about rendering GitHub/GitLab anchors) then don't give any |
9c644c4
to
2af2796
Compare
Looks like #168 is no longer an issue. Added test. |
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.
IDK should we add tests on CI which checks new behavior (git ls-files`), by the way. We can make bats script that generate new repository in temp dir, if we really need this
a7141d9
to
ae18d4f
Compare
Added tests |
fe069ad
to
24fff6a
Compare
0e3a6d5
to
9fcc9ec
Compare
Also fixed a bug where the |
edfc3a4
to
81b8ab4
Compare
Problem: At the moment, we're using the ignored option for mainly 2 purposes: 1) to ignore all files in the `.git` folder (`.git/**/*`) to ignore all build-related temporary files (the default config ignores `.stack-work/**/*`). A more robust alternative might be to ignore all files implicitly ignored by git. Solution: Use `git ls-files` to ignore all files implicitly ignored by git.
81b8ab4
to
bfbe20a
Compare
Problem: As of [v0.2.2](https://github.com/serokell/xrefcheck/releases/tag/v0.2.2), xrefcheck now requires git to be available in the PATH. See: * serokell/xrefcheck#139 * serokell/xrefcheck#174 Solution: add `git` as a dependency in the dockerfile.
Description
Problem: At the moment, we're using the ignored option for mainly 2 purposes: 1) to ignore all files in the
.git
folder (.git/**/*
) to ignore all build-related temporary files (the default config ignores.stack-work/**/*
). A more robust alternative might be to ignore all files implicitly ignored by git.Solution: Use
git ls-files
to ignore all files implicitly ignored by git.Related issue(s)
Fixes #139
Fixes #168
Fixes #195
✅ Checklist for your Pull Request
Ideally a PR has all of the checkmarks set.
If something in this list is irrelevant to your PR, you should still set this
checkmark indicating that you are sure it is dealt with (be that by irrelevance).
Related changes (conditional)
Tests
silently reappearing again.
Documentation
Public contracts
of Public Contracts policy.
and
Stylistic guide (mandatory)
✓ Release Checklist
package.yaml
.under the "Unreleased" section to a new section for this release version.
vX.Y.Z
.xrefcheck-action
.