-
Notifications
You must be signed in to change notification settings - Fork 18
Reinstate lint infrastructure as GHA #396
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
base: main
Are you sure you want to change the base?
Conversation
Thanks, this looks much cleaner overall.
What automation (if any) do you use to remove lints everywhere? It will be easiest for me to merge a slew of the changes up front, this might take some time. |
Just regex replacement and multicursor mode
OK, take your time. Also happy to split it up if that makes more sense. |
# @return | ||
# `dbBind()` returns the result set, | ||
# invisibly, | ||
# for queries issued by [dbSendQuery()] or [dbSendQueryArrow()] and | ||
placeholder_funs <- get_placeholder_funs(ctx) | ||
is_null_check <- ctx$tweaks$is_null_check | ||
for (placeholder_fun in placeholder_funs) { | ||
bind_values <- structure(data.frame(1L, check.names = FALSE), names = "") | ||
bind_values <- structure(data.frame(1L), names = "") |
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.
@krlmlr is {constructive} generating these? maybe I need a devel version?
This started from noticing
test-lint.R
is not really doing anything, and that {lintr} should probably be removed as a package dependency.All changes to package code here are suggestions, I'm happy to revert anything.
Most of the changes are from the
expect*
series of linters that recommend "best practices" for {testthat} usage.