Skip to content

linter exclusions bug #746

@russHyde

Description

@russHyde

Running lint_package(linters = object_name_linter()) on current master of lintr:

R/utils.R:224:1: style: Variable and function name style should be snake_case or symbols.
Linter <- function(fun) { # nolint: object_name_linter.
^~~~~~

and a couple of similar issues.

Note that if the nolint comment for Linter in R/utils.R is changed, removing the terminal dot:

# R/utils.R
Linter <- function(fun) { # nolint: object_name_linter
  # blah
}

... no lint is thrown for the name Linter

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions