Skip to content

brace_linter and paren_body_linter report the same lint #2946

@mcol

Description

@mcol

I'm not familiar with how linters are implemented, but perhaps it's possible that only one of those linters takes care of the space before a curly brace:

file.R:125:31: style: [brace_linter] There should be a space before an opening curly brace.
  if(inherits(object, "list")){
                              ^
file.R:125:31: style: [paren_body_linter] Put a space between a right parenthesis and a body expression.
  if(inherits(object, "list")){
                              ^
file.R:130:42: style: [brace_linter] There should be a space before an opening curly brace.
    results <- lapply(object, function(o){
                                         ^
file.R:130:42: style: [paren_body_linter] Put a space between a right parenthesis and a body expression.
    results <- lapply(object, function(o){
                                         ^

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