Skip to content

paren_brace_linter false positive within regex strings: "(match_group){quantifier}" #441

@russHyde

Description

@russHyde

paren_brace_linter flags the "){" within regex definition below:

#' Checks if a file has a .tar or .tar.bz2 extension
#'
#' @noRd
.is_tar_file <- function(x) {
  grepl(pattern = ".*\\.tar(\\.bz2){0,1}", x)
}

Should paren_brace_linter be made more strict - so that it doesn't consider strings?

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