1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-19 14:19:48 +00:00

style(rubocop): Style/TrailingCommaInArrayLiteral

هذا الالتزام موجود في:
Adam Cooke
2024-03-12 11:45:44 +00:00
الأصل d84152eb5d
التزام 4e13577891
13 ملفات معدلة مع 40 إضافات و25 حذوفات

عرض الملف

@@ -111,9 +111,11 @@ class DNSResolver
def dns(raise_timeout_errors: false)
Resolv::DNS.open(nameserver: @nameservers,
raise_timeout_errors: raise_timeout_errors) do |dns|
dns.timeouts = [Postal::Config.dns.timeout,
Postal::Config.dns.timeout / 2,
Postal::Config.dns.timeout / 2]
dns.timeouts = [
Postal::Config.dns.timeout,
Postal::Config.dns.timeout / 2,
Postal::Config.dns.timeout / 2,
]
yield dns
end
end

عرض الملف

@@ -13,7 +13,7 @@ class ReplySeparator
/^>*\s*On.{10,200}wrote:\s*$.*/m,
/^>*\s*Sent from my.*/m,
/^>*\s*=== Please reply above this line ===.*/m,
/(^>.*\n?){10,}/
/(^>.*\n?){10,}/,
].freeze
def self.separate(text)

عرض الملف

@@ -155,7 +155,7 @@ module SMTPServer
[
"250-My capabilities are",
Postal::Config.smtp_server.tls_enabled? && !@tls ? "250-STARTTLS" : nil,
"250 AUTH CRAM-MD5 PLAIN LOGIN"
"250 AUTH CRAM-MD5 PLAIN LOGIN",
].compact
end

عرض الملف

@@ -26,7 +26,7 @@ module Worker
# @return [Array<Class>]
JOBS = [
Jobs::ProcessQueuedMessagesJob,
Jobs::ProcessWebhookRequestsJob
Jobs::ProcessWebhookRequestsJob,
].freeze
# An array of tasks that should be processed
@@ -41,7 +41,7 @@ module Worker
PruneSuppressionListsScheduledTask,
PruneWebhookRequestsScheduledTask,
SendNotificationsScheduledTask,
TidyQueuedMessagesTask
TidyQueuedMessagesTask,
].freeze
# @param [Integer] thread_count The number of worker threads to run in this process