Skip to content

New return_linter to enforce consistent return styleΒ #1100

@AshesITR

Description

@AshesITR

Tidyverse expects implicit returns, so those should be the default.

Basically check that the last expr in all function definitions is a) never a return() or b) always a return().

Signature could maybe be return_linter(use_implicit_returns = TRUE)?

The google linters introduced a bunch of these (grep return\(lapply\( R/*.R)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions