Skip to content

object_usage_linter fails to parse inline function output #1917

@MichaelChirico

Description

@MichaelChirico
lintr::lint("
foo <- function() s
", lintr::object_usage_linter())

Throws a warning about an internal error:

Warning message:
In parse_check_usage(fun, known_used_symbols = known_used_symbols,  :
  Possible bug in lintr: Couldn't parse usage message ‘<anonymous>: no visible binding for global variable 's'
’. Ignoring 1 usage warnings. Please report an issue at https://github.com/r-lib/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions