Skip to content

Ignore trailing whitespace inside strings (optionally?) #1045

@MichaelChirico

Description

@MichaelChirico

Currently this lints:

lintr::lint("a <- '\n  \n'", lintr::trailing_whitespace_linter())
# <text>:2:1: style: Trailing whitespace is superfluous.
#   
# ^~

But there could be any number of reasons to include trailing whitespace inside a string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions