Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AshesITR
Copy link
Collaborator

Also remove relevant # nolint in lintrs own .onLoad.

fixes #500

x %in% base_funs
}

# see ?".onLoad" and ?"Startup"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, very good idea to note where they come from :-)

MichaelChirico
MichaelChirico previously approved these changes Nov 28, 2020
@AshesITR
Copy link
Collaborator Author

@MichaelChirico can you re-approve (merging master wasn't clean)? Thanks!

@AshesITR AshesITR merged commit e48ace4 into master Nov 29, 2020
@AshesITR AshesITR deleted the feature/object_name_linter-special_functions branch November 29, 2020 18:11
".Last"
)

is_special_function <- function(x) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm I guess we need a test for this 😅 I'm seeing this on current master when trying to do #597:

R/zzz.R:185:1: style: Variable and function name style should be snake_case.
.onLoad <- function(libname, pkgname) {
^~~~~~~

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue is that strip_names removes the leading .. So actually we need to search for onLoad etc.

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.

object_name_linter() complains about ns-hooks (e.g. .onLoad)

3 participants