Skip to content

Commit

Permalink
#664: Update rubocop-performance requirement from = 1.14.2 to = 1.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dgroup authored Aug 11, 2023
1 parent af5bb10 commit 54b606b
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 14 deletions.
6 changes: 5 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ Style/SwapValues: # (new in 1.1)
Enabled: true
Style/HashConversion: # (new in 1.10)
Enabled: true
Style/RedundantStringEscape: # (new in 1.7)
Enabled: true
Exclude:
- "test/lazylead/task/svn/grep_test.rb"
Minitest/AssertInDelta: # (new in 0.10)
Enabled: true
Minitest/AssertionInLifecycleHook: # (new in 0.10)
Expand Down Expand Up @@ -210,7 +214,7 @@ Performance/RedundantEqualityComparisonBlock: # (new in 1.10)
Enabled: true
Performance/RedundantSplitRegexpArgument: # (new in 1.10)
Enabled: true
Gemspec/DateAssignment: # (new in 1.10)
Gemspec/DeprecatedAttributeAssignment: # (new in 1.10)
Enabled: true
Gemspec/RequireMFA:
Enabled: false
4 changes: 1 addition & 3 deletions lazylead.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |s|
s.specification_version = 2 if s.respond_to? :specification_version=
s.rubygems_version = "2.2"
s.required_ruby_version = ">=2.6.5"
s.name = "lazylead"
s.version = "0.0.0"
Expand Down Expand Up @@ -93,7 +91,7 @@ tasks instead of solving technical problems."
s.add_development_dependency "rdoc", "6.4.0"
s.add_development_dependency "rubocop", "1.50.2"
s.add_development_dependency "rubocop-minitest", "0.20.1"
s.add_development_dependency "rubocop-performance", "1.14.2"
s.add_development_dependency "rubocop-performance", "1.16.0"
s.add_development_dependency "rubocop-rake", "0.6.0"
s.add_development_dependency "rubocop-rspec", "2.11.1"
s.add_development_dependency "ruby-prof", "1.4.3"
Expand Down
2 changes: 1 addition & 1 deletion lib/lazylead/cli/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def run(opts)
def apply_vcs_migration(opts)
@db = "#{File.expand_path(opts[:home])}/#{opts[:sqlite]}"
vcs = "#{File.expand_path(opts[:home])}/#{opts[:vcs4sql]}"
@log.debug "Database: '#{@db.colorize(:light_blue)}', "\
@log.debug "Database: '#{@db.colorize(:light_blue)}', " \
"sql migration dir: '#{vcs.colorize(:light_blue)}'"
Vcs4sql::Sqlite::Migration.new(@db).upgrade vcs, opts[:testdata]
@log.debug "Migration applied to '#{@db.colorize(:light_blue)}' from " \
Expand Down
4 changes: 2 additions & 2 deletions lib/lazylead/exchange.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def initialize(
# :opts :: the mail configuration like from, cc, subject, template.
def send(opts)
if opts.msg_to.empty?
@log.warn "ll-012: Email can't be sent to '#{opts.msg_to}," \
" more: '#{opts}'"
@log.warn "ll-012: Email can't be sent to '#{opts.msg_to}, " \
"more: '#{opts}'"
else
msg = make_msg opts
cli.send_message msg
Expand Down
4 changes: 2 additions & 2 deletions lib/lazylead/postman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def initialize(log = Log.new)
# :opts :: the mail configuration like to, from, cc, subject, template.
def send(opts)
if opts.msg_to.empty?
@log.warn "ll-013: Email can't be sent to '#{opts.msg_to}," \
" more: '#{opts}'"
@log.warn "ll-013: Email can't be sent to '#{opts.msg_to}, " \
"more: '#{opts}'"
else
mail = make_email(opts)
mail.deliver
Expand Down
4 changes: 2 additions & 2 deletions lib/lazylead/system/jira.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def initialize(opts, salt = NoSalt.new, log = Log.new)
@salt = salt
@log = log
@log.debug "Initiate a Jira client using following opts: " \
"#{@opts.except 'password', :password} " \
" and salt #{@salt.id} (found=#{@salt.specified?})"
"#{@opts.except 'password', :password} " \
"and salt #{@salt.id} (found=#{@salt.specified?})"
end

# Find the jira issues by 'JQL'
Expand Down
4 changes: 2 additions & 2 deletions lib/lazylead/task/accuracy/accuracy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def comment
comment = [
"Hi [~#{reporter}],",
"",
"The triage accuracy is '{color:#{color}}#{@score}{color}'" \
" (~{color:#{color}}#{@accuracy}%{color}), here are the reasons why:",
"The triage accuracy is '{color:#{color}}#{@score}{color}' " \
"(~{color:#{color}}#{@accuracy}%{color}), here are the reasons why:",
"|| Ticket requirement || Status || Field ||"
]
@opts[:rules].each do |r|
Expand Down
2 changes: 1 addition & 1 deletion lib/lazylead/task/accuracy/stacktrace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def pairs(words, text)
words.each_with_index do |e, i|
next unless e.start_with? text
pair = snippets.last
pair << i if pair.size.zero? || pair.size == 1
pair << i if pair.empty? || pair.size == 1
snippets[-1] = pair
snippets << [] if pair.size == 2
end
Expand Down

0 comments on commit 54b606b

Please sign in to comment.