-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests for
trailing_blank_lines_linter()
with chunks (#1614)
* Tests for `trailing_blank_lines_linter()` with chunks Closes #741 * Use `library(withr)` * formatting * restructure * Don't set `content` to `NULL` * make it DAMP * restructure to bring message closer to expectations * use namespace * use loadNamespace() for test-required packages * Update test-trailing_blank_lines_linter.R * Apply cleanup to the rest of the file * same clean up in another test file * Use `trim_some()` Co-authored-by: Michael Chirico <chiricom@google.com>
- Loading branch information
1 parent
8bec6df
commit a6254c2
Showing
4 changed files
with
125 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
library(testthat) | ||
library(lintr) | ||
loadNamespace("rex") | ||
loadNamespace("withr") | ||
|
||
test_check("lintr") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters