diff options
author | Austin Ziegler <austin@zieglers.ca> | 2021-12-23 11:25:24 -0500 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2022-07-04 20:26:10 -0400 |
commit | 7d087cc973685105e2bc1c69dca60d719138dcbc (patch) | |
tree | 19f25a7ac7756dbf26b70c7df2a475d535a044f7 /lib | |
parent | dca29cd3a74035df6d462f7d0def64e991bc84fc (diff) | |
download | diff-lcs-7d087cc973685105e2bc1c69dca60d719138dcbc.tar.gz |
Clean up lint directives
Diffstat (limited to 'lib')
-rw-r--r-- | lib/diff/lcs.rb | 4 | ||||
-rw-r--r-- | lib/diff/lcs/backports.rb | 4 | ||||
-rw-r--r-- | lib/diff/lcs/callbacks.rb | 2 | ||||
-rw-r--r-- | lib/diff/lcs/hunk.rb | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/lib/diff/lcs.rb b/lib/diff/lcs.rb index 77b508f..30385f8 100644 --- a/lib/diff/lcs.rb +++ b/lib/diff/lcs.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -module Diff; end unless defined? Diff # rubocop:disable Style/Documentation +module Diff; end unless defined? Diff # == How Diff Works (by Mark-Jason Dominus) # @@ -55,7 +55,7 @@ end require "diff/lcs/callbacks" require "diff/lcs/internals" -module Diff::LCS # rubocop:disable Style/Documentation +module Diff::LCS # Returns an Array containing the longest common subsequence(s) between # +self+ and +other+. See Diff::LCS#lcs. # 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 |