-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
Fix problems with r-lintr, add unit tests #4235
Conversation
Sorry, it is not a real approval, I just mispressed on the phone |
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.
I remember having to update the R tests, I think the test files (with the comments), were directly from the projects' test files.
The good files should be what the bad file should be once formatted by the tool. So I would be suprised that the comments removed only in the good file (that were there from the project test files) would work as expected. (Unless the tool strips comments). You can wait to see test failures to be sure.
It seems like the R tests passed just fine - 2/3 of the failed checks seem unrelated to these changes, and the third seems to be an over-aggressive spell-checker. I'm not sure how to proceed from here - do you have any advice? (No rush, it's a long weekend here in the US and I'm idly checking this.) Tests + Deploy Docker Image - DEVLine 1309: Line 1337: It seems like the errors were with the markdown tests?
Gitpod / build:These errors relate to installing
MegalinterThe spell-checker is complaining about the embedded R-code:
|
@nwiltsie thanks for your PR :) You can update .cspell.json to add setwd in allowed words The other issues are indeed not related to your PR, once we'll fix them in main you'll be able to merge the new main in your branch and your PR will pass :) |
@nwiltsie i updated your branch, let's see if it passes :) |
Thanks @nvuillam! |
Fixes #2885, fixes #2886.
I'm back to try again after I was stymied with #2887!
Proposed Changes
purrr::keep
filter for lints..lintr
file.TEMPLATE/.lintr
file and update logic for supplying user value..lintr
file be present - it will search up the directory tree, and finally fall back to default settings if no configuration file is found.Readiness Checklist
Author/Contributor
Reviewing Maintainer
breaking
if this is a large fundamental changeautomation
,bug
,documentation
,enhancement
,infrastructure
, orperformance