Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Layout/LeadingCommentSpace offenses #194

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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