Skip to content

Commit

Permalink
Fix Layout/LeadingCommentSpace offenses. (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvandersluis committed Aug 5, 2021
1 parent dc23581 commit f8e278d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Expand Up @@ -18,6 +18,7 @@ AllCops:
- 'spec/rubocop/ast/node_pattern/parse_helper.rb'
- 'spec/rubocop/ast/fixtures/*'
TargetRubyVersion: 2.5
SuggestExtensions: false

InternalAffairs/NodeMatcherDirective:
Exclude:
Expand Down
10 changes: 5 additions & 5 deletions lib/rubocop/ast/node_pattern.rb
Expand Up @@ -80,23 +80,23 @@ def to_s
"#<#{self.class} #{pattern}>"
end

def marshal_load(pattern) #:nodoc:
def marshal_load(pattern) # :nodoc:
initialize pattern
end

def marshal_dump #:nodoc:
def marshal_dump # :nodoc:
pattern
end

def as_json(_options = nil) #:nodoc:
def as_json(_options = nil) # :nodoc:
pattern
end

def encode_with(coder) #:nodoc:
def encode_with(coder) # :nodoc:
coder['pattern'] = pattern
end

def init_with(coder) #:nodoc:
def init_with(coder) # :nodoc:
initialize(coder['pattern'])
end

Expand Down

0 comments on commit f8e278d

Please sign in to comment.