Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Duplicate lints for line_length_linter #681

@AshesITR

Description

@AshesITR

Found during vignette writing for #660

lintr::lint("x <- 2 # -------------------------------------------------------------------------------\n", 
            parse_settings = FALSE)
#> <text>:1:1: style: Lines should not be more than 80 characters.
#> x <- 2 # -------------------------------------------------------------------------------
#> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#> <text>:1:1: style: Lines should not be more than 80 characters.
#> x <- 2 # -------------------------------------------------------------------------------
#> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Created on 2020-12-06 by the reprex package (v0.3.0)

Happens only if the offending line contains R code.
I assume the problem is we lint over full_parsed_content plus parsed_content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions