Skip to content

line_length_linter() message should mention the current line length #2057

@MichaelChirico

Description

@MichaelChirico

This can be helpful to tell at a glance how wide the line is, e.g. in contexts where we don't have our handy IDE ruler visible, we can often guess how to split up the line based on if it's just a few or many characters too long.

I'd also get some mileage out of it while linting our own package -- when running lint_package(linters = all_linters()), the default of 80 characters applies --> many false positives, we could filter those out if we could subset on the message being >= 120 instead. This is not the proper way to handle this problem, but would be handy in interactive situations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions