Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
lintr 3.1.2 source code.tar.gz | 2024-03-22 | 3.5 MB | |
lintr 3.1.2 source code.zip | 2024-03-22 | 3.7 MB | |
README.md | 2024-03-22 | 1.6 kB | |
Totals: 3 Items | 7.2 MB | 0 |
New and improved features
Lint accuracy fixes: removing false positives
unreachable_code_linter()
ignores reachable code in inline functions likefunction(x) if (x > 2) stop() else x
(#2259, @MEO265).unnecessary_lambda_linter()
- ignores extractions with explicit returns like
lapply(l, function(x) foo(x)$bar)
(#2258, @MichaelChirico). - ignores calls on the RHS of operators like
lapply(l, function(x) "a" %in% names(x))
(#2310, @MichaelChirico). vector_logic_linter()
recognizes some cases where bitwise&
/|
are used correctly (#1453, @MichaelChirico).expect_comparison_linter()
ignores faulty usage likeexpect_true(x, y > z)
(#2083, @MichaelChirico). Note thaty > z
is being passed to theinfo=
argument, so this is likely a mistake.consecutive_assertion_linter()
ignores cases where a second assertion follows an intervening assignment with=
(#2444, @MichaelChirico).
Lint accuracy fixes: removing false negatives
missing_argument_linter()
catches all missing arguments in calls with several, e.g.foo(,,)
gives 3 lints instead of 2 (#2399, @MichaelChirico).duplicate_argument_linter()
no longer misses cases with duplicate arguments where a comment comes between the argument name and=
(#2402, @MichaelChirico).
Notes
- Fixed a test assuming a specific parser error message that recently changed in r-devel (#2527, @IndrajeetPatil).
- @MichaelChirico has taken over CRAN maintainer duties for the package. Many thanks to @jimhester for more than 10 years and 15 releases wearing that hat!!