Skip to content

Remove redundant _linter suffix from auto names? #872

Closed
@AshesITR

Description

@AshesITR

The new # nolint: xxx. feature makes it more likely for linter names to appear in source code.
I would therefor suggest we remove the redundant _linter suffix from the names to make most lint exclusions look more natural.
Compare:

my.bad.name <- function(a, b) { # nolint: object_name_linter.
  # Very long comment explaining why the name came to be and needs to stay # nolint: line_length_linter.
  a + b
}

to

my.bad.name <- function(a, b) { # nolint: object_name.
  # Very long comment explaining why the name came to be and needs to stay # nolint: line_length.
  a + b
}

wdyt?

cc @MichaelChirico @jimhester

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions