summaryrefslogtreecommitdiff
path: root/lib/diff
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2021-12-23 11:13:21 -0500
committerAustin Ziegler <austin@zieglers.ca>2022-07-04 20:26:10 -0400
commit927b9b3c935f08a1611059e81b411c2ee2ff9724 (patch)
tree88be680b91bc212fe2866b525de1563e3d91fd67 /lib/diff
parent396a82c4d56bc0067c86de7cd32a4ae75f292c41 (diff)
downloaddiff-lcs-927b9b3c935f08a1611059e81b411c2ee2ff9724.tar.gz
Ignore Style/HashSyntax
Diffstat (limited to 'lib/diff')
-rw-r--r--lib/diff/lcs.rb2
-rw-r--r--lib/diff/lcs/htmldiff.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/diff/lcs.rb b/lib/diff/lcs.rb
index 031e2d7..4461af0 100644
--- a/lib/diff/lcs.rb
+++ b/lib/diff/lcs.rb
@@ -576,10 +576,12 @@ class << Diff::LCS
end
end
+ # standard:disable Style/HashSyntax
PATCH_MAP = { # :nodoc:
:patch => { "+" => "+", "-" => "-", "!" => "!", "=" => "=" }.freeze,
:unpatch => { "+" => "-", "-" => "+", "!" => "!", "=" => "=" }.freeze
}.freeze
+ # standard:enable Style/HashSyntax
# Applies a +patchset+ to the sequence +src+ according to the +direction+
# (<tt>:patch</tt> or <tt>:unpatch</tt>), producing a new sequence.
diff --git a/lib/diff/lcs/htmldiff.rb b/lib/diff/lcs/htmldiff.rb
index 7eab41d..a57dd51 100644
--- a/lib/diff/lcs/htmldiff.rb
+++ b/lib/diff/lcs/htmldiff.rb
@@ -46,12 +46,14 @@ class Diff::LCS::HTMLDiff
end
end
+ # standard:disable Style/HashSyntax
DEFAULT_OPTIONS = {
:expand_tabs => nil,
:output => nil,
:css => nil,
:title => nil
}.freeze
+ # standard:enable Style/HashSyntax
# standard:disable Layout/HeredocIndentation
DEFAULT_CSS = <<-CSS