Skip to content

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

MichaelChirico
Copy link
Contributor

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.

@krlmlr
Copy link
Member

krlmlr commented Mar 16, 2025

Thanks, this looks much cleaner overall.

R CMD check is unhappy: "Undefined global functions or variables: NUL"

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.

@MichaelChirico
Copy link
Contributor Author

What automation (if any) do you use to remove lints everywhere?

Just regex replacement and multicursor mode

It will be easiest for me to merge a slew of the changes up front, this might take some time.

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 = "")
Copy link
Contributor Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants