summaryrefslogtreecommitdiff
path: root/lib/diff/lcs
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2021-12-23 11:25:24 -0500
committerAustin Ziegler <austin@zieglers.ca>2022-07-04 20:26:10 -0400
commit7d087cc973685105e2bc1c69dca60d719138dcbc (patch)
tree19f25a7ac7756dbf26b70c7df2a475d535a044f7 /lib/diff/lcs
parentdca29cd3a74035df6d462f7d0def64e991bc84fc (diff)
downloaddiff-lcs-7d087cc973685105e2bc1c69dca60d719138dcbc.tar.gz
Clean up lint directives
Diffstat (limited to 'lib/diff/lcs')
-rw-r--r--lib/diff/lcs/backports.rb4
-rw-r--r--lib/diff/lcs/callbacks.rb2
-rw-r--r--lib/diff/lcs/hunk.rb4
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/diff/lcs/backports.rb b/lib/diff/lcs/backports.rb
index 642fc9c..3d2a768 100644
--- a/lib/diff/lcs/backports.rb
+++ b/lib/diff/lcs/backports.rb
@@ -1,9 +1,9 @@
# frozen_string_literal: true
unless 0.respond_to?(:positive?)
- class Fixnum # rubocop:disable Lint/UnifiedInteger, Style/Documentation
+ class Fixnum # standard:disable Lint/UnifiedInteger
def positive?
- self > 0 # rubocop:disable Style/NumericPredicate
+ self > 0
end
end
end
diff --git a/lib/diff/lcs/callbacks.rb b/lib/diff/lcs/callbacks.rb
index cdda2dd..6fc229b 100644
--- a/lib/diff/lcs/callbacks.rb
+++ b/lib/diff/lcs/callbacks.rb
@@ -2,7 +2,7 @@
require "diff/lcs/change"
-module Diff::LCS # rubocop:disable Style/Documentation
+module Diff::LCS
# This callback object implements the default set of callback events,
# which only returns the event itself. Note that #finished_a and
# #finished_b are not implemented -- I haven't yet figured out where they
diff --git a/lib/diff/lcs/hunk.rb b/lib/diff/lcs/hunk.rb
index 9ff3638..9f596f3 100644
--- a/lib/diff/lcs/hunk.rb
+++ b/lib/diff/lcs/hunk.rb
@@ -67,9 +67,9 @@ class Diff::LCS::Hunk
# Change the "start" and "end" fields to note that context should be added
# to this hunk.
- attr_accessor :flag_context # rubocop:disable Layout/EmptyLinesAroundAttributeAccessor
+ attr_accessor :flag_context
undef :flag_context=
- def flag_context=(context) # :nodoc: # rubocop:disable Lint/DuplicateMethods
+ def flag_context=(context) # :nodoc: # standard:disable Lint/DuplicateMethods
return if context.nil? || context.zero?
add_start = context > @start_old ? @start_old : context