Skip to content

fix and test namespace_imports() in object_name_linter - #740

Merged
AshesITR merged 1 commit into
masterfrom
fix/642-namespace-imports
Feb 8, 2021
Merged

AshesITR merged 1 commit into
masterfrom
fix/642-namespace-imports

Conversation

@AshesITR

@AshesITR AshesITR commented Feb 7, 2021

Copy link
Copy Markdown
Collaborator

fixes #642

also increases coverage of R/namespace.R to 100%

fixes #642

also increases coverage of R/namespace.R to 100%
@AshesITR AshesITR mentioned this pull request Feb 7, 2021
@MichaelChirico MichaelChirico mentioned this pull request Feb 7, 2021
20 tasks
linted_files <- unique(names(lints))

# lintr paths contain backslash on windows, list.files uses forward slash.
linted_files <- gsub("\\", "/", linted_files, fixed = TRUE)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not particularly important for a test case like this but i think normalizePath handles this right?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We'd have to normalize both paths because that also makes them absolute.

@AshesITR
AshesITR merged commit 8539ea7 into master Feb 8, 2021
@AshesITR
AshesITR deleted the fix/642-namespace-imports branch February 8, 2021 07:23
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.

Intended behaviour of namespace_imports for object_name_linter?

2 participants