Skip to content

false positive Commas should never have a space before lint for switch statements #708

Closed

Description

@IndrajeetPatil

The following code

  switch(
    method,
    "One Sample t-test" = ,
    "Two Sample t-test" = ,
    "Paired t-test" = "t-test"
)

produces a (in my opinion) false positive lint:

Commas should never have a space before

Note that I can just remove the white space before ,, but then there would be a lint about expected whitespace around = operator.

Activity

  1. AshesITR commented on Jan 7, 2021

    @AshesITR
    Collaborator

    Can you please test with the current dev version?
    This particular instance of the issue should be fixed by #499.

  2. IndrajeetPatil commented on Jan 7, 2021

    @IndrajeetPatil
    ContributorAuthor

    Thanks! Works for me.

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

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