Enable frozen_string_literal for all files under config directory (#26561).

git-svn-id: http://svn.redmine.org/redmine/trunk@17982 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-03-17 02:04:38 +00:00
parent d16369b67c
commit 02b4449414
11 changed files with 13 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path('../boot', __FILE__)

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Load the Rails application
require File.expand_path('../application', __FILE__)
@@ -6,8 +6,8 @@ require File.expand_path('../application', __FILE__)
# Make sure there's no plugin in vendor/plugin before starting
vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins")
if Dir.glob(File.join(vendor_plugins_dir, "*")).any?
$stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " +
"Please, put your Redmine plugins in the `plugins` directory at the root of your " +
$stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " \
"Please, put your Redmine plugins in the `plugins` directory at the root of your " \
"Redmine directory (#{File.join(Rails.root, "plugins")})"
exit 1
end

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Same as test.rb
instance_eval File.read(File.join(File.dirname(__FILE__), 'test.rb'))

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Same as test.rb
instance_eval File.read(File.join(File.dirname(__FILE__), 'test.rb'))

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Loads the core plugins located in lib/plugins
Dir.glob(File.join(Rails.root, "lib/plugins/*")).sort.each do |directory|

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'active_record'

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
I18n.backend = Redmine::I18n::Backend.new
# Forces I18n to load available locales from the backend

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.

View File

@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang