Skip to content

Inconsistent indention for EQ_SUB #351

Closed

Description

@martin-mfg

The following code was styled using the latest development version of styler:

a_very_long_function_name <- function(parameter_name =
                                      "a very long default value") {
  NULL
}

a_very_long_function_name(
  parameter_name =
    "a very long default value"
)

What confuses me here is that in the function call, "a very long default value" is indented by 1 more level than parameter_name =, but in the function definition this is not the case.
I think there is no rule in the tidyverse style guide that governs this behaviour, so in my opinion it would be reasonable to apply the same indention strategy in both cases.

Activity

  1. lorenzwalthert commented on Feb 20, 2018

    @lorenzwalthert
    Collaborator

    Thanks @martin-mfg, this is indeed unexpected. I think I know where it stems from and I will look into it as soon as possible.

  2. lorenzwalthert commented on Feb 20, 2018

    @lorenzwalthert
    Collaborator

    Blocked by #352.

  3. changed the title [-]inconsistent indention for EQ_SUB[/-] [+]Inconsistent indention for EQ_SUB[/+] on Feb 20, 2018
  4. lorenzwalthert commented on Feb 28, 2018

    @lorenzwalthert
    Collaborator

    Blocked by #357.

  5. lorenzwalthert commented on Mar 1, 2018

    @lorenzwalthert
    Collaborator

    Closed with #353.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions