Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Oct 23, 2021
1 parent 859dc18 commit e3b6b3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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 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 e3b6b3d

Please sign in to comment.