Repository navigation
Only replace long strings - #384
Conversation
|
@krlmlr there seems to be a bug in the R base parser of |
Codecov Report
@@ Coverage Diff @@
## master #384 +/- ##
==========================================
- Coverage 91.68% 91.02% -0.67%
==========================================
Files 30 30
Lines 1479 1526 +47
==========================================
+ Hits 1356 1389 +33
- Misses 123 137 +14
Continue to review full report at Codecov.
|
013e883 to
7cbc6fb
Compare
This is implemented with e85b29c. |
7b196c6 to
5dab0a3
Compare
fix misnomer of `verify_str_txt()`, better variable names within this function, outsource identification of insufficiently parsed strings in identify_insufficiently_parsed_stings(), add line and col check.
validate parse table for R < 3.2 as parsing problems were found on travis with R 3.1 https://travis-ci.org/r-lib/styler/builds/361687013
5dab0a3 to
32d447b
Compare
Another attempt to solve #216, by implementing suggestion 2 suggested in #216 (comment). That is, only replace the strings that are necessary, not all strings if there is one string in the parse data that is longer than 1'000. This does (not yet) implement line / col substitution but returns an error if there is a problem, so we are failing fast instead of silently. I think it's rather unlikely that this is going to cause a problem in the future.
Also closes #383.