mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: update rubocop to version 0.77
We like to stay as close as possible to latest with rubocop cause the cops get better. This update required some code changes, specifically the default is to avoid explicit returns where implicit is done Also this renames a few rules
This commit is contained in:
@ -29,7 +29,7 @@ class BulkImport::Base
|
||||
NOW ||= "now()".freeze
|
||||
PRIVATE_OFFSET ||= 2**30
|
||||
|
||||
# rubocop:disable Layout/AlignHash
|
||||
# rubocop:disable Layout/HashAlignment
|
||||
|
||||
CHARSET_MAP = {
|
||||
"armscii8" => nil,
|
||||
@ -70,7 +70,7 @@ class BulkImport::Base
|
||||
"utf8" => Encoding::UTF_8,
|
||||
}
|
||||
|
||||
# rubocop:enable Layout/AlignHash
|
||||
# rubocop:enable Layout/HashAlignment
|
||||
|
||||
def initialize
|
||||
charset = ENV["DB_CHARSET"] || "utf8"
|
||||
|
Reference in New Issue
Block a user