Skip to content

Add allow_multiple_spaces = TRUE to infix_spaces_linter() to fully replace assignment_linter() #940

Closed

Description

@AshesITR

Since @f-ritter's original use-case was disallowing these, I think we should also support that rule via an argument (allow_multiple_spaces = TRUE). WDYT?

Originally posted by @AshesITR in #931 (comment)

NB: The implementation will likely be easier using XPath instead of ids_with_token.

Activity

  1. MichaelChirico commented on Mar 14, 2022

    @MichaelChirico
    Collaborator

    Copying comment from the thread too:

    should be a lot easier if we convert the linter to XPath at the same time (requires something like following-sibling::[@col1 = preceding-sibling::/@Col2] vs. > preceding-sibling::*/@Col2 iinm)

  2. MichaelChirico commented on Mar 16, 2022

    @MichaelChirico
    Collaborator

    NB: be sure to offer attribution for this fix when this is filed. The following was lost in #931

    New assignment_spaces() lintr. (#538, @f-ritter)

  3. added this to the 3.0.0 milestone on Mar 22, 2022
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions