Skip to content

Commit

Permalink
Merge pull request #104 from sue445/fix_ci
Browse files Browse the repository at this point in the history
Fix ci
  • Loading branch information
sue445 authored Oct 23, 2021
2 parents ef122c8 + e3b6b3d commit 7c88e47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rubocop/isucon/sql_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.parse_tables(sql)
sql = sql.gsub(/ON\s+DUPLICATE\s+KEY\s+UPDATE/i, "")

sql.scan(/(?:FROM|INTO|UPDATE|JOIN)\s+([^(]+?)[\s(]/i).
map { |matched| matched[0].strip.delete("`") }.reject(&:empty?).uniq
map { |matched| matched[0].strip.delete("`") }.reject(&:empty?).uniq # rubocop:disable Layout/DotPosition
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion rubocop-isucon.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency "activerecord", ">= 6.1.0"
spec.add_runtime_dependency "gda"
spec.add_runtime_dependency "rubocop", ">= 1.22.0"
spec.add_runtime_dependency "rubocop", ">= 1.22.2"
spec.add_runtime_dependency "rubocop-performance"

spec.add_development_dependency "benchmark-ips"
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/isucon/database_connection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
adapter: "sqlite3",
database: ":memory:",
timeout: 500,
}.transform_keys(&:to_s)
}.transform_keys(&:to_s) # rubocop:disable Layout/DotPosition
end

describe "#column_names" do
Expand Down

0 comments on commit 7c88e47

Please sign in to comment.