diff --git a/.rubocop.yml b/.rubocop.yml index 62cd57765..99d4477b3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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: diff --git a/lib/rubocop/ast/node_pattern.rb b/lib/rubocop/ast/node_pattern.rb index c2e0e1950..a3e5cddad 100644 --- a/lib/rubocop/ast/node_pattern.rb +++ b/lib/rubocop/ast/node_pattern.rb @@ -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