-
Notifications
You must be signed in to change notification settings - Fork 0
Adjusted handling of path prefixes and .lintr to pass tests #2
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
Adjusted handling of path prefixes and .lintr to pass tests #2
Conversation
Prevented from adding directory prefixes to full paths. Adjusted exclusion prefixes in lint_package. Removed exclusions-test from .lintr.
|
Thanks for this @joaopmatias . I won't have time to focus on this branch for a few days. Do you have a test that can distinguish the changes made to |
|
Hi @russHyde ! Yes, I can make a unit test that distinguishes those changes soon. |
|
Hi @russHyde ! I added some tests covering the changes involving the function |
|
Hi. Sorry I haven't been more responsive. This PR (the combination of our changes) is a bit bigger than I expected and life got in the way. I'll try to review it properly this week. |
|
Hi! That's fine by me. The changes definitely seem to be plenty compared to the expected change in behavior, but they are looking very good, in my opinion. |
|
Thanks. I appreciate that you think the changes are looking good, but you haven't provided much explanation here re
For example, why was the test-exclusions file removed from the .lintr config and how does that connect to the aims of the pull request? So I'll have to do a bit of guesswork before I can go forward. |
|
Let me try to answer your questions.
The changes affect the function Additionally, files described with a relative path in the argument Finally,
The changes to the function The changes to the function The changes to |
|
I only noticed that I will add a commit reverting |
I would like to draw the attention to some changes that could be useful.
Removed
test-exclusionsfrom.lintr.Changed arguments of one instance of
normalize_exclusions, where part of the input was already in the form of absolute paths.Changed
normalize_exclusionsto prevent adding a prefix when the paths in the exclusions are absolute paths.