Skip to content

False positive in function_left_parentheses_linter() #1963

Closed

Description

@IndrajeetPatil
'roxygen2::roc_proc_text(paste(roxygen, collapse = "\n"))[[1L]]$get_section("examples")' -> code

lintr::lint(text = code, linters = lintr::function_left_parentheses_linter())
#> <text>:1:1: style: [function_left_parentheses_linter] Left parenthesis should be on the same line as the function's symbol.
#> roxygen2::roc_proc_text(paste(roxygen, collapse = "
#> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Created on 2023-04-17 with reprex v2.0.2

Activity

  1. lorenzwalthert commented on Apr 17, 2023

    @lorenzwalthert

    Also with lines broken (not sure that matters?):

    text <- roxygen2::roc_proc_text(
      roxygen2::rd_roclet(),
      paste(roxygen, collapse = "\n")
    )[[1L]]$get_section("examples")
  2. added this to the milestone on Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    false-positivecode that shouldn't lint, but doesregressioncode that used to work, but now doesn't

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions