From f8e278d1389d9806c4916a1400ea27b8e62aefc0 Mon Sep 17 00:00:00 2001 From: Daniel Vandersluis Date: Thu, 5 Aug 2021 15:01:35 -0400 Subject: [PATCH] Fix `Layout/LeadingCommentSpace` offenses. (#194) --- .rubocop.yml | 1 + lib/rubocop/ast/node_pattern.rb | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) 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