You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing object_usage_linter due to line break #507
Thanks for reporting.
The issue is in parse_check_usage when multiline warnings are issued:
foo<-function() {
# warnsif (unknown_function()) NULL# does not warnif (unknown_function()) {
NULL
}
}
codetools::checkUsage(foo)
#> <anonymous>: no visible global function definition for 'unknown_function' (<text>:4)#> <anonymous>: no visible global function definition for 'unknown_function' (<text>:7-9)lintr:::parse_check_usage(foo)
#> message name#> 1 no visible global function definition for 'unknown_function' unknown_function#> 2 <NA> <NA>#> path line_number#> 1 <text> 4#> 2 <NA> <NA>
Activity
infotroph commentedon Feb 15, 2021
A variant of this that bit me today: multiline conditionals.
AshesITR commentedon Feb 15, 2021
Thanks for reporting.
The issue is in
parse_check_usagewhen multiline warnings are issued:Created on 2021-02-15 by the reprex package (v1.0.0)
Correctly parse checkUsage when a multiline warning is encountered
Correctly parse checkUsage when a multiline warning is encountered (#758