summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-15 01:32:57 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-15 01:32:57 +0000
commit5861160ffc350a97b5ff41465fbd7e03008853e4 (patch)
treead260a758b0c88c42debd6b567d6cd382d27ae42 /lib
parent9f4a4be01a48eb2cbb30f8786aee3b9fec830f19 (diff)
downloadredmine-5861160ffc350a97b5ff41465fbd7e03008853e4.tar.gz
redmine-5861160ffc350a97b5ff41465fbd7e03008853e4.zip
Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/diff.rb2
-rw-r--r--lib/generators/redmine_plugin/redmine_plugin_generator.rb2
-rw-r--r--lib/generators/redmine_plugin/templates/routes.rb2
-rw-r--r--lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb2
-rw-r--r--lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb2
-rw-r--r--lib/plugins/acts_as_activity_provider/init.rb2
-rw-r--r--lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb2
-rw-r--r--lib/plugins/acts_as_attachable/init.rb2
-rw-r--r--lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb2
-rw-r--r--lib/plugins/acts_as_customizable/init.rb2
-rw-r--r--lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb2
-rw-r--r--lib/plugins/acts_as_event/init.rb2
-rw-r--r--lib/plugins/acts_as_event/lib/acts_as_event.rb2
-rw-r--r--lib/plugins/acts_as_searchable/init.rb2
-rw-r--r--lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb2
-rw-r--r--lib/plugins/acts_as_tree/Rakefile2
-rw-r--r--lib/plugins/acts_as_tree/init.rb2
-rw-r--r--lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb2
-rw-r--r--lib/plugins/acts_as_tree/test/acts_as_tree_test.rb2
-rw-r--r--lib/plugins/acts_as_watchable/init.rb2
-rw-r--r--lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb2
-rw-r--r--lib/plugins/gravatar/Rakefile2
-rw-r--r--lib/plugins/gravatar/init.rb2
-rw-r--r--lib/plugins/gravatar/lib/gravatar.rb2
-rw-r--r--lib/plugins/gravatar/spec/gravatar_spec.rb2
-rw-r--r--lib/plugins/open_id_authentication/Rakefile2
-rw-r--r--lib/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb2
-rw-r--r--lib/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb2
-rw-r--r--lib/plugins/open_id_authentication/init.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/association.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/mem_cache_store.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb4
-rw-r--r--lib/plugins/open_id_authentication/lib/tasks/open_id_authentication_tasks.rake2
-rw-r--r--lib/plugins/open_id_authentication/test/mem_cache_store_test.rb2
-rw-r--r--lib/plugins/open_id_authentication/test/normalize_test.rb2
-rw-r--r--lib/plugins/open_id_authentication/test/open_id_authentication_test.rb2
-rw-r--r--lib/plugins/open_id_authentication/test/status_test.rb4
-rw-r--r--lib/plugins/open_id_authentication/test/test_helper.rb2
-rw-r--r--lib/redmine.rb2
-rw-r--r--lib/redmine/access_control.rb2
-rw-r--r--lib/redmine/access_keys.rb2
-rw-r--r--lib/redmine/activity.rb2
-rw-r--r--lib/redmine/activity/fetcher.rb2
-rw-r--r--lib/redmine/acts/positioned.rb2
-rw-r--r--lib/redmine/ciphering.rb2
-rw-r--r--lib/redmine/codeset_util.rb1
-rw-r--r--lib/redmine/configuration.rb2
-rw-r--r--lib/redmine/core_ext.rb2
-rw-r--r--lib/redmine/core_ext/active_record.rb2
-rw-r--r--lib/redmine/core_ext/string.rb2
-rw-r--r--lib/redmine/core_ext/string/conversions.rb2
-rw-r--r--lib/redmine/core_ext/string/inflections.rb2
-rw-r--r--lib/redmine/database.rb2
-rw-r--r--lib/redmine/default_data/loader.rb2
-rw-r--r--lib/redmine/export/csv.rb2
-rw-r--r--lib/redmine/export/pdf.rb2
-rw-r--r--lib/redmine/export/pdf/issues_pdf_helper.rb2
-rw-r--r--lib/redmine/export/pdf/wiki_pdf_helper.rb2
-rw-r--r--lib/redmine/field_format.rb2
-rw-r--r--lib/redmine/helpers/calendar.rb2
-rw-r--r--lib/redmine/helpers/diff.rb2
-rw-r--r--lib/redmine/helpers/gantt.rb2
-rw-r--r--lib/redmine/helpers/time_report.rb2
-rw-r--r--lib/redmine/helpers/url.rb2
-rw-r--r--lib/redmine/hook.rb2
-rw-r--r--lib/redmine/hook/listener.rb4
-rw-r--r--lib/redmine/hook/view_listener.rb2
-rw-r--r--lib/redmine/i18n.rb2
-rw-r--r--lib/redmine/imap.rb2
-rw-r--r--lib/redmine/info.rb2
-rw-r--r--lib/redmine/menu_manager.rb2
-rw-r--r--lib/redmine/mime_type.rb2
-rw-r--r--lib/redmine/my_page.rb2
-rw-r--r--lib/redmine/nested_set/issue_nested_set.rb2
-rw-r--r--lib/redmine/nested_set/project_nested_set.rb2
-rw-r--r--lib/redmine/nested_set/traversing.rb2
-rw-r--r--lib/redmine/notifiable.rb2
-rw-r--r--lib/redmine/pagination.rb2
-rw-r--r--lib/redmine/platform.rb2
-rw-r--r--lib/redmine/plugin.rb2
-rw-r--r--lib/redmine/pop3.rb2
-rw-r--r--lib/redmine/safe_attributes.rb2
-rw-r--r--lib/redmine/scm/adapters.rb2
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/bazaar_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/command_failed.rb2
-rw-r--r--lib/redmine/scm/adapters/cvs_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/filesystem_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/git_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/mercurial_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/subversion_adapter.rb2
-rw-r--r--lib/redmine/scm/base.rb2
-rw-r--r--lib/redmine/search.rb2
-rw-r--r--lib/redmine/sort_criteria.rb2
-rw-r--r--lib/redmine/subclass_factory.rb2
-rw-r--r--lib/redmine/sudo_mode.rb2
-rw-r--r--lib/redmine/syntax_highlighting.rb2
-rw-r--r--lib/redmine/themes.rb2
-rw-r--r--lib/redmine/thumbnail.rb2
-rw-r--r--lib/redmine/unified_diff.rb2
-rw-r--r--lib/redmine/utils.rb2
-rw-r--r--lib/redmine/version.rb2
-rw-r--r--lib/redmine/views/api_template_handler.rb2
-rw-r--r--lib/redmine/views/builders.rb2
-rw-r--r--lib/redmine/views/builders/json.rb2
-rw-r--r--lib/redmine/views/builders/structure.rb2
-rw-r--r--lib/redmine/views/builders/xml.rb2
-rw-r--r--lib/redmine/views/labelled_form_builder.rb2
-rw-r--r--lib/redmine/views/other_formats_builder.rb2
-rw-r--r--lib/redmine/wiki_formatting.rb2
-rw-r--r--lib/redmine/wiki_formatting/html_parser.rb2
-rw-r--r--lib/redmine/wiki_formatting/macros.rb2
-rw-r--r--lib/redmine/wiki_formatting/markdown/formatter.rb2
-rw-r--r--lib/redmine/wiki_formatting/markdown/helper.rb2
-rw-r--r--lib/redmine/wiki_formatting/markdown/html_parser.rb2
-rw-r--r--lib/redmine/wiki_formatting/textile/formatter.rb2
-rw-r--r--lib/redmine/wiki_formatting/textile/helper.rb2
-rw-r--r--lib/redmine/wiki_formatting/textile/html_parser.rb2
-rw-r--r--lib/redmine/wiki_formatting/textile/redcloth3.rb2
-rw-r--r--lib/tasks/ci.rake2
-rw-r--r--lib/tasks/ciphering.rake2
-rw-r--r--lib/tasks/deprecated.rake2
-rw-r--r--lib/tasks/email.rake2
-rw-r--r--lib/tasks/extract_fixtures.rake2
-rw-r--r--lib/tasks/initializers.rake2
-rw-r--r--lib/tasks/load_default_data.rake2
-rw-r--r--lib/tasks/locales.rake2
-rw-r--r--lib/tasks/metrics.rake2
-rw-r--r--lib/tasks/migrate_from_mantis.rake2
-rw-r--r--lib/tasks/migrate_from_trac.rake2
-rw-r--r--lib/tasks/permissions.rake2
-rw-r--r--lib/tasks/redmine.rake2
-rw-r--r--lib/tasks/reminder.rake2
-rw-r--r--lib/tasks/testing.rake2
-rw-r--r--lib/tasks/yardoc.rake2
139 files changed, 280 insertions, 3 deletions
diff --git a/lib/diff.rb b/lib/diff.rb
index 90adc7e33..30bba39a0 100644
--- a/lib/diff.rb
+++ b/lib/diff.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module RedmineDiff
class Diff
diff --git a/lib/generators/redmine_plugin/redmine_plugin_generator.rb b/lib/generators/redmine_plugin/redmine_plugin_generator.rb
index ce2e2aa42..7a5d81dd2 100644
--- a/lib/generators/redmine_plugin/redmine_plugin_generator.rb
+++ b/lib/generators/redmine_plugin/redmine_plugin_generator.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RedminePluginGenerator < Rails::Generators::NamedBase
source_root File.expand_path("../templates", __FILE__)
diff --git a/lib/generators/redmine_plugin/templates/routes.rb b/lib/generators/redmine_plugin/templates/routes.rb
index 1803173d0..eb4cf1c74 100644
--- a/lib/generators/redmine_plugin/templates/routes.rb
+++ b/lib/generators/redmine_plugin/templates/routes.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
# Plugin's routes
# See: http://guides.rubyonrails.org/routing.html
diff --git a/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb b/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb
index 16a820ebf..f228f1759 100644
--- a/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb
+++ b/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RedminePluginControllerGenerator < Rails::Generators::NamedBase
source_root File.expand_path("../templates", __FILE__)
argument :controller, :type => :string
diff --git a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
index f26f8779c..7e96d49c5 100644
--- a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
+++ b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RedminePluginModelGenerator < Rails::Generators::NamedBase
source_root File.expand_path("../templates", __FILE__)
diff --git a/lib/plugins/acts_as_activity_provider/init.rb b/lib/plugins/acts_as_activity_provider/init.rb
index 5bf05da2c..781bd3f47 100644
--- a/lib/plugins/acts_as_activity_provider/init.rb
+++ b/lib/plugins/acts_as_activity_provider/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/lib/acts_as_activity_provider'
ActiveRecord::Base.send(:include, Redmine::Acts::ActivityProvider)
diff --git a/lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb b/lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb
index 2bf4b2e8c..325176ddf 100644
--- a/lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb
+++ b/lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/plugins/acts_as_attachable/init.rb b/lib/plugins/acts_as_attachable/init.rb
index 213e1d4b1..66ecc7849 100644
--- a/lib/plugins/acts_as_attachable/init.rb
+++ b/lib/plugins/acts_as_attachable/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/lib/acts_as_attachable'
ActiveRecord::Base.send(:include, Redmine::Acts::Attachable)
diff --git a/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb b/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
index 3cfc49169..b895a9f55 100644
--- a/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
+++ b/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/plugins/acts_as_customizable/init.rb b/lib/plugins/acts_as_customizable/init.rb
index 9036aa579..2139e96c6 100644
--- a/lib/plugins/acts_as_customizable/init.rb
+++ b/lib/plugins/acts_as_customizable/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/lib/acts_as_customizable'
ActiveRecord::Base.send(:include, Redmine::Acts::Customizable)
diff --git a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
index 2e36d91be..5413a456f 100644
--- a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
+++ b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/plugins/acts_as_event/init.rb b/lib/plugins/acts_as_event/init.rb
index 91051510a..2a78cd2d3 100644
--- a/lib/plugins/acts_as_event/init.rb
+++ b/lib/plugins/acts_as_event/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/lib/acts_as_event'
ActiveRecord::Base.send(:include, Redmine::Acts::Event)
diff --git a/lib/plugins/acts_as_event/lib/acts_as_event.rb b/lib/plugins/acts_as_event/lib/acts_as_event.rb
index 894a23df6..f77c12d70 100644
--- a/lib/plugins/acts_as_event/lib/acts_as_event.rb
+++ b/lib/plugins/acts_as_event/lib/acts_as_event.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/plugins/acts_as_searchable/init.rb b/lib/plugins/acts_as_searchable/init.rb
index 063721756..204d0ce36 100644
--- a/lib/plugins/acts_as_searchable/init.rb
+++ b/lib/plugins/acts_as_searchable/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/lib/acts_as_searchable'
ActiveRecord::Base.send(:include, Redmine::Acts::Searchable)
diff --git a/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb b/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb
index e6b6b22fc..79a3f88fb 100644
--- a/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb
+++ b/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/plugins/acts_as_tree/Rakefile b/lib/plugins/acts_as_tree/Rakefile
index da091d9dd..255df7de4 100644
--- a/lib/plugins/acts_as_tree/Rakefile
+++ b/lib/plugins/acts_as_tree/Rakefile
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
diff --git a/lib/plugins/acts_as_tree/init.rb b/lib/plugins/acts_as_tree/init.rb
index 0901ddb4a..f5560f449 100644
--- a/lib/plugins/acts_as_tree/init.rb
+++ b/lib/plugins/acts_as_tree/init.rb
@@ -1 +1,3 @@
+# frozen_string_literal: false
+
ActiveRecord::Base.send :include, ActiveRecord::Acts::Tree
diff --git a/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb b/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb
index c078e7edb..668c600c4 100644
--- a/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb
+++ b/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module ActiveRecord
module Acts
module Tree
diff --git a/lib/plugins/acts_as_tree/test/acts_as_tree_test.rb b/lib/plugins/acts_as_tree/test/acts_as_tree_test.rb
index 018c58e1f..81a0033c5 100644
--- a/lib/plugins/acts_as_tree/test/acts_as_tree_test.rb
+++ b/lib/plugins/acts_as_tree/test/acts_as_tree_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'test/unit'
require 'rubygems'
diff --git a/lib/plugins/acts_as_watchable/init.rb b/lib/plugins/acts_as_watchable/init.rb
index f39cc7d18..4a9a14237 100644
--- a/lib/plugins/acts_as_watchable/init.rb
+++ b/lib/plugins/acts_as_watchable/init.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Include hook code here
require File.dirname(__FILE__) + '/lib/acts_as_watchable'
ActiveRecord::Base.send(:include, Redmine::Acts::Watchable)
diff --git a/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb b/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
index 5c88adb57..8890326d1 100644
--- a/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
+++ b/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# ActsAsWatchable
module Redmine
module Acts
diff --git a/lib/plugins/gravatar/Rakefile b/lib/plugins/gravatar/Rakefile
index e67e5e7f9..a501a1c25 100644
--- a/lib/plugins/gravatar/Rakefile
+++ b/lib/plugins/gravatar/Rakefile
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'spec/rake/spectask'
require 'rake/rdoctask'
diff --git a/lib/plugins/gravatar/init.rb b/lib/plugins/gravatar/init.rb
index aab3f75f3..65c9fce00 100644
--- a/lib/plugins/gravatar/init.rb
+++ b/lib/plugins/gravatar/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require 'gravatar'
ActionView::Base.send :include, GravatarHelper::PublicMethods
diff --git a/lib/plugins/gravatar/lib/gravatar.rb b/lib/plugins/gravatar/lib/gravatar.rb
index 2c0efaba8..9ccc6166b 100644
--- a/lib/plugins/gravatar/lib/gravatar.rb
+++ b/lib/plugins/gravatar/lib/gravatar.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'digest/md5'
require 'cgi'
diff --git a/lib/plugins/gravatar/spec/gravatar_spec.rb b/lib/plugins/gravatar/spec/gravatar_spec.rb
index 6f78d79ad..365d42dbf 100644
--- a/lib/plugins/gravatar/spec/gravatar_spec.rb
+++ b/lib/plugins/gravatar/spec/gravatar_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'rubygems'
require 'erb' # to get "h"
require 'active_support' # to get "returning"
diff --git a/lib/plugins/open_id_authentication/Rakefile b/lib/plugins/open_id_authentication/Rakefile
index 31074b856..3af3cd1f6 100644
--- a/lib/plugins/open_id_authentication/Rakefile
+++ b/lib/plugins/open_id_authentication/Rakefile
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
diff --git a/lib/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb b/lib/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb
index 6f78afc71..7c2ea2547 100644
--- a/lib/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb
+++ b/lib/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class OpenIdAuthenticationTablesGenerator < Rails::Generator::NamedBase
def initialize(runtime_args, runtime_options = {})
super
diff --git a/lib/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb b/lib/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb
index 02fddd7fd..e23257938 100644
--- a/lib/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb
+++ b/lib/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class UpgradeOpenIdAuthenticationTablesGenerator < Rails::Generator::NamedBase
def initialize(runtime_args, runtime_options = {})
super
diff --git a/lib/plugins/open_id_authentication/init.rb b/lib/plugins/open_id_authentication/init.rb
index 84ec11fc4..e276bc873 100644
--- a/lib/plugins/open_id_authentication/init.rb
+++ b/lib/plugins/open_id_authentication/init.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
if Rails.version < '3'
config.gem 'rack-openid', :lib => 'rack/openid', :version => '>=0.2.1'
end
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication.rb
index e31aba1f2..7754afece 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'uri'
require 'openid'
require 'rack/openid'
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/association.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/association.rb
index 8ab71bec0..07e844bcf 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/association.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/association.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module OpenIdAuthentication
class Association < ActiveRecord::Base
self.table_name = :open_id_authentication_associations
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb
index f696d4dcc..0cf1fa920 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'openid/store/interface'
module OpenIdAuthentication
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/mem_cache_store.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/mem_cache_store.rb
index b520e4a8b..cef6d8ed7 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/mem_cache_store.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/mem_cache_store.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'digest/sha1'
require 'openid/store/interface'
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb
index b28bf1679..0f41e141b 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module OpenIdAuthentication
class Nonce < ActiveRecord::Base
self.table_name = :open_id_authentication_nonces
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb
index e0cc8e3fc..7e8a9ec1b 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module OpenIdAuthentication
module Request
def self.included(base)
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb
index cc711c9ac..0fb9dfc22 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# http://trac.openidenabled.com/trac/ticket/156
module OpenID
@@timeout_threshold = 20
@@ -17,4 +19,4 @@ module OpenID
http
end
end
-end \ No newline at end of file
+end
diff --git a/lib/plugins/open_id_authentication/lib/tasks/open_id_authentication_tasks.rake b/lib/plugins/open_id_authentication/lib/tasks/open_id_authentication_tasks.rake
index c71434a50..424852bd7 100644
--- a/lib/plugins/open_id_authentication/lib/tasks/open_id_authentication_tasks.rake
+++ b/lib/plugins/open_id_authentication/lib/tasks/open_id_authentication_tasks.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
namespace :open_id_authentication do
namespace :db do
desc "Creates authentication tables for use with OpenIdAuthentication"
diff --git a/lib/plugins/open_id_authentication/test/mem_cache_store_test.rb b/lib/plugins/open_id_authentication/test/mem_cache_store_test.rb
index 18a943979..ef5e424a3 100644
--- a/lib/plugins/open_id_authentication/test/mem_cache_store_test.rb
+++ b/lib/plugins/open_id_authentication/test/mem_cache_store_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/test_helper'
require File.dirname(__FILE__) + '/../lib/open_id_authentication/mem_cache_store'
diff --git a/lib/plugins/open_id_authentication/test/normalize_test.rb b/lib/plugins/open_id_authentication/test/normalize_test.rb
index 635d3abc9..2968fc9c2 100644
--- a/lib/plugins/open_id_authentication/test/normalize_test.rb
+++ b/lib/plugins/open_id_authentication/test/normalize_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/test_helper'
class NormalizeTest < Test::Unit::TestCase
diff --git a/lib/plugins/open_id_authentication/test/open_id_authentication_test.rb b/lib/plugins/open_id_authentication/test/open_id_authentication_test.rb
index ddcc17b96..147ebe7ae 100644
--- a/lib/plugins/open_id_authentication/test/open_id_authentication_test.rb
+++ b/lib/plugins/open_id_authentication/test/open_id_authentication_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/test_helper'
class OpenIdAuthenticationTest < Test::Unit::TestCase
diff --git a/lib/plugins/open_id_authentication/test/status_test.rb b/lib/plugins/open_id_authentication/test/status_test.rb
index b1d5e0933..9bf39056e 100644
--- a/lib/plugins/open_id_authentication/test/status_test.rb
+++ b/lib/plugins/open_id_authentication/test/status_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/test_helper'
class StatusTest < Test::Unit::TestCase
@@ -11,4 +13,4 @@ class StatusTest < Test::Unit::TestCase
assert Result[:successful].successful?
assert !Result[:successful].unsuccessful?
end
-end \ No newline at end of file
+end
diff --git a/lib/plugins/open_id_authentication/test/test_helper.rb b/lib/plugins/open_id_authentication/test/test_helper.rb
index cb76ceddc..9af4077a5 100644
--- a/lib/plugins/open_id_authentication/test/test_helper.rb
+++ b/lib/plugins/open_id_authentication/test/test_helper.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'test/unit'
require 'rubygems'
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 9bf00f366..fdcdc2fc9 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/access_control.rb b/lib/redmine/access_control.rb
index abf88f48e..9dd2258a9 100644
--- a/lib/redmine/access_control.rb
+++ b/lib/redmine/access_control.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/access_keys.rb b/lib/redmine/access_keys.rb
index f2616061b..7d195669d 100644
--- a/lib/redmine/access_keys.rb
+++ b/lib/redmine/access_keys.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/activity.rb b/lib/redmine/activity.rb
index 48e02dffa..e7d508a4d 100644
--- a/lib/redmine/activity.rb
+++ b/lib/redmine/activity.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/activity/fetcher.rb b/lib/redmine/activity/fetcher.rb
index fccce54eb..08149d740 100644
--- a/lib/redmine/activity/fetcher.rb
+++ b/lib/redmine/activity/fetcher.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/acts/positioned.rb b/lib/redmine/acts/positioned.rb
index 00f8332b8..7c8726107 100644
--- a/lib/redmine/acts/positioned.rb
+++ b/lib/redmine/acts/positioned.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/ciphering.rb b/lib/redmine/ciphering.rb
index ad30e035f..0d7003d27 100644
--- a/lib/redmine/ciphering.rb
+++ b/lib/redmine/ciphering.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/codeset_util.rb b/lib/redmine/codeset_util.rb
index 4f056d54a..e27da506f 100644
--- a/lib/redmine/codeset_util.rb
+++ b/lib/redmine/codeset_util.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module Redmine
module CodesetUtil
diff --git a/lib/redmine/configuration.rb b/lib/redmine/configuration.rb
index 8d96749e1..9bb5c3550 100644
--- a/lib/redmine/configuration.rb
+++ b/lib/redmine/configuration.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/core_ext.rb b/lib/redmine/core_ext.rb
index 573313e74..0eab327ab 100644
--- a/lib/redmine/core_ext.rb
+++ b/lib/redmine/core_ext.rb
@@ -1 +1,3 @@
+# frozen_string_literal: false
+
Dir[File.dirname(__FILE__) + "/core_ext/*.rb"].each { |file| require(file) }
diff --git a/lib/redmine/core_ext/active_record.rb b/lib/redmine/core_ext/active_record.rb
index 72a794da3..d8c51f53b 100644
--- a/lib/redmine/core_ext/active_record.rb
+++ b/lib/redmine/core_ext/active_record.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/core_ext/string.rb b/lib/redmine/core_ext/string.rb
index 5d03b9b5c..7810a2e47 100644
--- a/lib/redmine/core_ext/string.rb
+++ b/lib/redmine/core_ext/string.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/string/conversions'
require File.dirname(__FILE__) + '/string/inflections'
diff --git a/lib/redmine/core_ext/string/conversions.rb b/lib/redmine/core_ext/string/conversions.rb
index 4fc571167..3bdaa5ff1 100644
--- a/lib/redmine/core_ext/string/conversions.rb
+++ b/lib/redmine/core_ext/string/conversions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/core_ext/string/inflections.rb b/lib/redmine/core_ext/string/inflections.rb
index efb62ee8e..aeb53bf67 100644
--- a/lib/redmine/core_ext/string/inflections.rb
+++ b/lib/redmine/core_ext/string/inflections.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/database.rb b/lib/redmine/database.rb
index 82df4b6a4..fb449fa46 100644
--- a/lib/redmine/database.rb
+++ b/lib/redmine/database.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/default_data/loader.rb b/lib/redmine/default_data/loader.rb
index f702826c7..751b397bf 100644
--- a/lib/redmine/default_data/loader.rb
+++ b/lib/redmine/default_data/loader.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/export/csv.rb b/lib/redmine/export/csv.rb
index b0d48ef6f..92da0cff5 100644
--- a/lib/redmine/export/csv.rb
+++ b/lib/redmine/export/csv.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index ff383d108..28627c2a4 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/lib/redmine/export/pdf/issues_pdf_helper.rb b/lib/redmine/export/pdf/issues_pdf_helper.rb
index 3a6183893..5acdeffa9 100644
--- a/lib/redmine/export/pdf/issues_pdf_helper.rb
+++ b/lib/redmine/export/pdf/issues_pdf_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/lib/redmine/export/pdf/wiki_pdf_helper.rb b/lib/redmine/export/pdf/wiki_pdf_helper.rb
index 206820e54..5d325f2fd 100644
--- a/lib/redmine/export/pdf/wiki_pdf_helper.rb
+++ b/lib/redmine/export/pdf/wiki_pdf_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb
index 3878b2dcb..21f372ab0 100644
--- a/lib/redmine/field_format.rb
+++ b/lib/redmine/field_format.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/helpers/calendar.rb b/lib/redmine/helpers/calendar.rb
index 3641097ba..2d2392fdd 100644
--- a/lib/redmine/helpers/calendar.rb
+++ b/lib/redmine/helpers/calendar.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/helpers/diff.rb b/lib/redmine/helpers/diff.rb
index d62e763c6..6f61e3e52 100644
--- a/lib/redmine/helpers/diff.rb
+++ b/lib/redmine/helpers/diff.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index d5f85ee6f..abe783267 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/helpers/time_report.rb b/lib/redmine/helpers/time_report.rb
index 5287ae95e..f460fee6c 100644
--- a/lib/redmine/helpers/time_report.rb
+++ b/lib/redmine/helpers/time_report.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/helpers/url.rb b/lib/redmine/helpers/url.rb
index 8e13ab291..402d3af38 100644
--- a/lib/redmine/helpers/url.rb
+++ b/lib/redmine/helpers/url.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/hook.rb b/lib/redmine/hook.rb
index 3d273b474..2a6129c4f 100644
--- a/lib/redmine/hook.rb
+++ b/lib/redmine/hook.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/hook/listener.rb b/lib/redmine/hook/listener.rb
index a84636fdf..474d6dd0e 100644
--- a/lib/redmine/hook/listener.rb
+++ b/lib/redmine/hook/listener.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
@@ -29,4 +31,4 @@ module Redmine
end
end
end
-end \ No newline at end of file
+end
diff --git a/lib/redmine/hook/view_listener.rb b/lib/redmine/hook/view_listener.rb
index cb4c578a1..848e654a1 100644
--- a/lib/redmine/hook/view_listener.rb
+++ b/lib/redmine/hook/view_listener.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/i18n.rb b/lib/redmine/i18n.rb
index cdac4ea77..4432a2a10 100644
--- a/lib/redmine/i18n.rb
+++ b/lib/redmine/i18n.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/imap.rb b/lib/redmine/imap.rb
index 658b8d1bf..f4659ff1d 100644
--- a/lib/redmine/imap.rb
+++ b/lib/redmine/imap.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/info.rb b/lib/redmine/info.rb
index 62452e277..276c72d40 100644
--- a/lib/redmine/info.rb
+++ b/lib/redmine/info.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module Redmine
module Info
class << self
diff --git a/lib/redmine/menu_manager.rb b/lib/redmine/menu_manager.rb
index dcdd0fa23..4b766695e 100644
--- a/lib/redmine/menu_manager.rb
+++ b/lib/redmine/menu_manager.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/mime_type.rb b/lib/redmine/mime_type.rb
index 46be81b49..6dbbe8599 100644
--- a/lib/redmine/mime_type.rb
+++ b/lib/redmine/mime_type.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/my_page.rb b/lib/redmine/my_page.rb
index 4bec1c29f..d1efe7b02 100644
--- a/lib/redmine/my_page.rb
+++ b/lib/redmine/my_page.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/nested_set/issue_nested_set.rb b/lib/redmine/nested_set/issue_nested_set.rb
index bb921d6de..61469e808 100644
--- a/lib/redmine/nested_set/issue_nested_set.rb
+++ b/lib/redmine/nested_set/issue_nested_set.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/nested_set/project_nested_set.rb b/lib/redmine/nested_set/project_nested_set.rb
index d6d33efaf..fa955be06 100644
--- a/lib/redmine/nested_set/project_nested_set.rb
+++ b/lib/redmine/nested_set/project_nested_set.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/nested_set/traversing.rb b/lib/redmine/nested_set/traversing.rb
index 07b6deec4..5809ed92a 100644
--- a/lib/redmine/nested_set/traversing.rb
+++ b/lib/redmine/nested_set/traversing.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/notifiable.rb b/lib/redmine/notifiable.rb
index 41fd736e6..39dc4c2df 100644
--- a/lib/redmine/notifiable.rb
+++ b/lib/redmine/notifiable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module Redmine
class Notifiable < Struct.new(:name, :parent)
diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb
index 0131c86e4..706e93816 100644
--- a/lib/redmine/pagination.rb
+++ b/lib/redmine/pagination.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/lib/redmine/platform.rb b/lib/redmine/platform.rb
index 5fdd58d7c..674c05607 100644
--- a/lib/redmine/platform.rb
+++ b/lib/redmine/platform.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb
index 82bcde81f..ec575d17a 100644
--- a/lib/redmine/plugin.rb
+++ b/lib/redmine/plugin.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/pop3.rb b/lib/redmine/pop3.rb
index 548dfc173..ecba9f84d 100644
--- a/lib/redmine/pop3.rb
+++ b/lib/redmine/pop3.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/safe_attributes.rb b/lib/redmine/safe_attributes.rb
index a2711cc4b..7f5a0cd8e 100644
--- a/lib/redmine/safe_attributes.rb
+++ b/lib/redmine/safe_attributes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters.rb b/lib/redmine/scm/adapters.rb
index bee5a5398..688cfbcc6 100644
--- a/lib/redmine/scm/adapters.rb
+++ b/lib/redmine/scm/adapters.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index 7f3b8093f..7665b0d84 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb
index 30d8aa721..2c5996b34 100644
--- a/lib/redmine/scm/adapters/bazaar_adapter.rb
+++ b/lib/redmine/scm/adapters/bazaar_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/command_failed.rb b/lib/redmine/scm/adapters/command_failed.rb
index 0d9571f8c..c230c1e62 100644
--- a/lib/redmine/scm/adapters/command_failed.rb
+++ b/lib/redmine/scm/adapters/command_failed.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb
index d89e71eb4..730ee5caa 100644
--- a/lib/redmine/scm/adapters/cvs_adapter.rb
+++ b/lib/redmine/scm/adapters/cvs_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# redMine - project management software
# Copyright (C) 2006-2007 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/filesystem_adapter.rb b/lib/redmine/scm/adapters/filesystem_adapter.rb
index a40465a54..0ff289df4 100644
--- a/lib/redmine/scm/adapters/filesystem_adapter.rb
+++ b/lib/redmine/scm/adapters/filesystem_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb
index 93d48a64d..3a9103360 100644
--- a/lib/redmine/scm/adapters/git_adapter.rb
+++ b/lib/redmine/scm/adapters/git_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb
index a3b672d26..32637b2f1 100644
--- a/lib/redmine/scm/adapters/mercurial_adapter.rb
+++ b/lib/redmine/scm/adapters/mercurial_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb
index 11c8c9c60..79276feb6 100644
--- a/lib/redmine/scm/adapters/subversion_adapter.rb
+++ b/lib/redmine/scm/adapters/subversion_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/base.rb b/lib/redmine/scm/base.rb
index b33a9cfd1..2380b3a72 100644
--- a/lib/redmine/scm/base.rb
+++ b/lib/redmine/scm/base.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module Redmine
module Scm
class Base
diff --git a/lib/redmine/search.rb b/lib/redmine/search.rb
index e88736f55..bfca60412 100644
--- a/lib/redmine/search.rb
+++ b/lib/redmine/search.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/sort_criteria.rb b/lib/redmine/sort_criteria.rb
index c89ef03c1..ba8c67de9 100644
--- a/lib/redmine/sort_criteria.rb
+++ b/lib/redmine/sort_criteria.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/subclass_factory.rb b/lib/redmine/subclass_factory.rb
index 3d4ab88ce..914f793bf 100644
--- a/lib/redmine/subclass_factory.rb
+++ b/lib/redmine/subclass_factory.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/sudo_mode.rb b/lib/redmine/sudo_mode.rb
index fa491b759..417f59ee3 100644
--- a/lib/redmine/sudo_mode.rb
+++ b/lib/redmine/sudo_mode.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'active_support/core_ext/object/to_query'
require 'rack/utils'
diff --git a/lib/redmine/syntax_highlighting.rb b/lib/redmine/syntax_highlighting.rb
index 53ae4b5ff..fe888730f 100644
--- a/lib/redmine/syntax_highlighting.rb
+++ b/lib/redmine/syntax_highlighting.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/themes.rb b/lib/redmine/themes.rb
index 645ffa476..f876b1077 100644
--- a/lib/redmine/themes.rb
+++ b/lib/redmine/themes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/thumbnail.rb b/lib/redmine/thumbnail.rb
index ab3c4f1bf..4d284c6b7 100644
--- a/lib/redmine/thumbnail.rb
+++ b/lib/redmine/thumbnail.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/unified_diff.rb b/lib/redmine/unified_diff.rb
index ae68d5dfc..d4c93db0e 100644
--- a/lib/redmine/unified_diff.rb
+++ b/lib/redmine/unified_diff.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/utils.rb b/lib/redmine/utils.rb
index d255dfa91..ce1eb8527 100644
--- a/lib/redmine/utils.rb
+++ b/lib/redmine/utils.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/version.rb b/lib/redmine/version.rb
index 740c90585..d0608005f 100644
--- a/lib/redmine/version.rb
+++ b/lib/redmine/version.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'rexml/document'
module Redmine
diff --git a/lib/redmine/views/api_template_handler.rb b/lib/redmine/views/api_template_handler.rb
index 357badb0d..41d6b2fd8 100644
--- a/lib/redmine/views/api_template_handler.rb
+++ b/lib/redmine/views/api_template_handler.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/builders.rb b/lib/redmine/views/builders.rb
index fd98e6d5b..546eb2ac6 100644
--- a/lib/redmine/views/builders.rb
+++ b/lib/redmine/views/builders.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/builders/json.rb b/lib/redmine/views/builders/json.rb
index 299fd9255..48c4b8707 100644
--- a/lib/redmine/views/builders/json.rb
+++ b/lib/redmine/views/builders/json.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/builders/structure.rb b/lib/redmine/views/builders/structure.rb
index a473d4d58..386a4cfcc 100644
--- a/lib/redmine/views/builders/structure.rb
+++ b/lib/redmine/views/builders/structure.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/builders/xml.rb b/lib/redmine/views/builders/xml.rb
index 162de7a5e..934c74a20 100644
--- a/lib/redmine/views/builders/xml.rb
+++ b/lib/redmine/views/builders/xml.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/labelled_form_builder.rb b/lib/redmine/views/labelled_form_builder.rb
index d7aff9a6b..9c5337c89 100644
--- a/lib/redmine/views/labelled_form_builder.rb
+++ b/lib/redmine/views/labelled_form_builder.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/other_formats_builder.rb b/lib/redmine/views/other_formats_builder.rb
index c022055db..ea4bf7462 100644
--- a/lib/redmine/views/other_formats_builder.rb
+++ b/lib/redmine/views/other_formats_builder.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb
index d4dd05a93..22309b228 100644
--- a/lib/redmine/wiki_formatting.rb
+++ b/lib/redmine/wiki_formatting.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/html_parser.rb b/lib/redmine/wiki_formatting/html_parser.rb
index da8ce81b1..d1c90b502 100644
--- a/lib/redmine/wiki_formatting/html_parser.rb
+++ b/lib/redmine/wiki_formatting/html_parser.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/macros.rb b/lib/redmine/wiki_formatting/macros.rb
index 9ef4ffd06..c1e3ee4e5 100644
--- a/lib/redmine/wiki_formatting/macros.rb
+++ b/lib/redmine/wiki_formatting/macros.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/markdown/formatter.rb b/lib/redmine/wiki_formatting/markdown/formatter.rb
index 4bfd00c79..f605e94b7 100644
--- a/lib/redmine/wiki_formatting/markdown/formatter.rb
+++ b/lib/redmine/wiki_formatting/markdown/formatter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/markdown/helper.rb b/lib/redmine/wiki_formatting/markdown/helper.rb
index fb9f1a939..0a5998cf4 100644
--- a/lib/redmine/wiki_formatting/markdown/helper.rb
+++ b/lib/redmine/wiki_formatting/markdown/helper.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/markdown/html_parser.rb b/lib/redmine/wiki_formatting/markdown/html_parser.rb
index f34034093..7cf0a1d37 100644
--- a/lib/redmine/wiki_formatting/markdown/html_parser.rb
+++ b/lib/redmine/wiki_formatting/markdown/html_parser.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/textile/formatter.rb b/lib/redmine/wiki_formatting/textile/formatter.rb
index 89e6105a8..313595c58 100644
--- a/lib/redmine/wiki_formatting/textile/formatter.rb
+++ b/lib/redmine/wiki_formatting/textile/formatter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/textile/helper.rb b/lib/redmine/wiki_formatting/textile/helper.rb
index e536a29dc..b29ade8be 100644
--- a/lib/redmine/wiki_formatting/textile/helper.rb
+++ b/lib/redmine/wiki_formatting/textile/helper.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/textile/html_parser.rb b/lib/redmine/wiki_formatting/textile/html_parser.rb
index 3d3cd591e..467281d87 100644
--- a/lib/redmine/wiki_formatting/textile/html_parser.rb
+++ b/lib/redmine/wiki_formatting/textile/html_parser.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb
index 8d83c79d9..1cd5e0580 100644
--- a/lib/redmine/wiki_formatting/textile/redcloth3.rb
+++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# vim:ts=4:sw=4:
# = RedCloth - Textile and Markdown Hybrid for Ruby
#
diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake
index 8c7f8b68f..3b0c0bde0 100644
--- a/lib/tasks/ci.rake
+++ b/lib/tasks/ci.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
desc "Run the Continuous Integration tests for Redmine"
task :ci do
# RAILS_ENV and ENV[] can diverge so force them both to test
diff --git a/lib/tasks/ciphering.rake b/lib/tasks/ciphering.rake
index 2b1183352..bebf308dc 100644
--- a/lib/tasks/ciphering.rake
+++ b/lib/tasks/ciphering.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/tasks/deprecated.rake b/lib/tasks/deprecated.rake
index c62579d0a..1cce6d344 100644
--- a/lib/tasks/deprecated.rake
+++ b/lib/tasks/deprecated.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
def deprecated_task(name, new_name)
task name=>new_name do
$stderr.puts "\nNote: The rake task #{name} has been deprecated, please use the replacement version #{new_name}"
diff --git a/lib/tasks/email.rake b/lib/tasks/email.rake
index 25d7d667b..8d03b2913 100644
--- a/lib/tasks/email.rake
+++ b/lib/tasks/email.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/tasks/extract_fixtures.rake b/lib/tasks/extract_fixtures.rake
index 65f529315..1c7f9342c 100644
--- a/lib/tasks/extract_fixtures.rake
+++ b/lib/tasks/extract_fixtures.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
desc 'Create YAML test fixtures from data in an existing database.
Defaults to development database. Set RAILS_ENV to override.'
diff --git a/lib/tasks/initializers.rake b/lib/tasks/initializers.rake
index 6da60c147..5b1e0b30c 100644
--- a/lib/tasks/initializers.rake
+++ b/lib/tasks/initializers.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
desc 'Generates a secret token for the application.'
file 'config/initializers/secret_token.rb' do
diff --git a/lib/tasks/load_default_data.rake b/lib/tasks/load_default_data.rake
index bcfff7c3b..51949c2b4 100644
--- a/lib/tasks/load_default_data.rake
+++ b/lib/tasks/load_default_data.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
desc 'Load Redmine default configuration data. Language is chosen interactively or by setting REDMINE_LANG environment variable.'
namespace :redmine do
diff --git a/lib/tasks/locales.rake b/lib/tasks/locales.rake
index 028a25154..dbf7bcf45 100644
--- a/lib/tasks/locales.rake
+++ b/lib/tasks/locales.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
desc 'Updates and checks locales against en.yml'
task :locales do
%w(locales:update locales:check_interpolation).collect do |task|
diff --git a/lib/tasks/metrics.rake b/lib/tasks/metrics.rake
index 214cc996e..de7fd3aa3 100644
--- a/lib/tasks/metrics.rake
+++ b/lib/tasks/metrics.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
begin
require 'metric_fu'
rescue LoadError
diff --git a/lib/tasks/migrate_from_mantis.rake b/lib/tasks/migrate_from_mantis.rake
index 61c42325d..f169d9ea3 100644
--- a/lib/tasks/migrate_from_mantis.rake
+++ b/lib/tasks/migrate_from_mantis.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/tasks/migrate_from_trac.rake b/lib/tasks/migrate_from_trac.rake
index eb0d81e0a..a1d457550 100644
--- a/lib/tasks/migrate_from_trac.rake
+++ b/lib/tasks/migrate_from_trac.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/tasks/permissions.rake b/lib/tasks/permissions.rake
index 3ed53f1f1..038b2a731 100644
--- a/lib/tasks/permissions.rake
+++ b/lib/tasks/permissions.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
namespace :redmine do
desc "List all permissions and the actions registered with them"
task :permissions => :environment do
diff --git a/lib/tasks/redmine.rake b/lib/tasks/redmine.rake
index f26200114..0fd09ceeb 100644
--- a/lib/tasks/redmine.rake
+++ b/lib/tasks/redmine.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/tasks/reminder.rake b/lib/tasks/reminder.rake
index 56122ca7b..0b1ae2c8e 100644
--- a/lib/tasks/reminder.rake
+++ b/lib/tasks/reminder.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake
index 33bedd4e0..ea809c731 100644
--- a/lib/tasks/testing.rake
+++ b/lib/tasks/testing.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
namespace :test do
desc 'Measures test coverage'
task :coverage do
diff --git a/lib/tasks/yardoc.rake b/lib/tasks/yardoc.rake
index 60d3a644a..23ba7ea1c 100644
--- a/lib/tasks/yardoc.rake
+++ b/lib/tasks/yardoc.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
begin
require 'yard'