Skip to content

[prism] differing behavior with comment indentation in class << self #664

@froydnj

Description

@froydnj

I have seen this kind of indentation change other places, usually in case when blocks, too. Input, unchanged by ripper:

def self.nocwd!
  class << self
  # rubocop:disable StripeLint/NoDefineMethod
    define_method(:skip_chdir_to_tmpdir) { }
  end
end

rubyfmt --prism gives:

def self.nocwd!
  class << self
    # rubocop:disable StripeLint/NoDefineMethod
    define_method(:skip_chdir_to_tmpdir) { }
  end
end

I think the prism behavior is preferable here?

cc @reese

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions