Repository navigation
expect_lint() improvement - #233
Conversation
Instead, just write 'content' to a temporary file
Codecov Report
@@ Coverage Diff @@
## master #233 +/- ##
==========================================
+ Coverage 85.87% 86.13% +0.26%
==========================================
Files 39 39
Lines 2180 2178 -2
==========================================
+ Hits 1872 1876 +4
+ Misses 308 302 -6
Continue to review full report at Codecov.
|
|
I think this is fine, but really we should remove the file handing entirely and modify the tests to lint a text by ending with a newline. e.g. lintr::lint("a = b\n")
#> <text>:1:3: style: Use <-, not =, for assignment.
#> a = b |
|
Thanks Jim. I now understand the undocumented piece of code in |
* Because a vector is not good way to store checks (which are represented by heterogenous data types: strings, integers, lists, ...). * This allows to check for the "range" Lint field, which is a list. * In the docs, recommend to use named lists of checks instead of named vectors.
|
Hi Jim, |
and renamed a variable to snake_case
|
LGTM, thank you! |
No description provided.