From 4cdb06084f0dbbdc9a29ed132896db45d352aa3d Mon Sep 17 00:00:00 2001 From: Alexander Brandon Coles Date: Fri, 18 Jul 2025 17:36:20 +0100 Subject: [PATCH] Freeze string literals in app/mailers rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/mailers --- app/mailers/announcement_mailer.rb | 2 ++ app/mailers/application_mailer.rb | 2 ++ app/mailers/digest_mailer.rb | 2 ++ app/mailers/interceptors/default_headers.rb | 2 ++ app/mailers/interceptors/do_not_send_mails_without_recipient.rb | 2 ++ app/mailers/member_mailer.rb | 2 ++ app/mailers/project_mailer.rb | 2 ++ app/mailers/reminders/notification_mailer.rb | 2 ++ app/mailers/user_mailer.rb | 2 ++ app/mailers/work_package_mailer.rb | 2 ++ 10 files changed, 20 insertions(+) diff --git a/app/mailers/announcement_mailer.rb b/app/mailers/announcement_mailer.rb index 5a66df5162c..525a9edc548 100644 --- a/app/mailers/announcement_mailer.rb +++ b/app/mailers/announcement_mailer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- copyright # OpenProject is an open source project management software. # Copyright (C) the OpenProject GmbH diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index 58ce970fe75..09b057c10fa 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- copyright # OpenProject is an open source project management software. # Copyright (C) the OpenProject GmbH diff --git a/app/mailers/digest_mailer.rb b/app/mailers/digest_mailer.rb index 797941d6e12..21827e3946f 100644 --- a/app/mailers/digest_mailer.rb +++ b/app/mailers/digest_mailer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- copyright # OpenProject is an open source project management software. # Copyright (C) the OpenProject GmbH diff --git a/app/mailers/interceptors/default_headers.rb b/app/mailers/interceptors/default_headers.rb index 7c585e61b3e..ba16ce37c3b 100644 --- a/app/mailers/interceptors/default_headers.rb +++ b/app/mailers/interceptors/default_headers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Interceptors module DefaultHeaders module_function diff --git a/app/mailers/interceptors/do_not_send_mails_without_recipient.rb b/app/mailers/interceptors/do_not_send_mails_without_recipient.rb index 1c3e684e043..d29554ad078 100644 --- a/app/mailers/interceptors/do_not_send_mails_without_recipient.rb +++ b/app/mailers/interceptors/do_not_send_mails_without_recipient.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Interceptors module DoNotSendMailsWithoutRecipient module_function diff --git a/app/mailers/member_mailer.rb b/app/mailers/member_mailer.rb index b83e0102ccb..067fd8f3254 100644 --- a/app/mailers/member_mailer.rb +++ b/app/mailers/member_mailer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- copyright # OpenProject is an open source project management software. # Copyright (C) the OpenProject GmbH diff --git a/app/mailers/project_mailer.rb b/app/mailers/project_mailer.rb index bb4e9ac2f0a..5964de2fbbc 100644 --- a/app/mailers/project_mailer.rb +++ b/app/mailers/project_mailer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- copyright # OpenProject is an open source project management software. # Copyright (C) the OpenProject GmbH diff --git a/app/mailers/reminders/notification_mailer.rb b/app/mailers/reminders/notification_mailer.rb index e193727ebef..d0a2e0ed116 100644 --- a/app/mailers/reminders/notification_mailer.rb +++ b/app/mailers/reminders/notification_mailer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- copyright # OpenProject is an open source project management software. # Copyright (C) the OpenProject GmbH diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 4947c77dd9c..b912a1a8053 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- copyright # OpenProject is an open source project management software. # Copyright (C) the OpenProject GmbH diff --git a/app/mailers/work_package_mailer.rb b/app/mailers/work_package_mailer.rb index e96b30a6c44..75a48ac27c5 100644 --- a/app/mailers/work_package_mailer.rb +++ b/app/mailers/work_package_mailer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- copyright # OpenProject is an open source project management software. # Copyright (C) the OpenProject GmbH