Commit 75dc2b6b authored by maeda's avatar maeda

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


git-svn-id: https://svn.redmine.org/redmine/trunk@17982 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 894f33a5
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path('../boot', __FILE__)
......
# frozen_string_literal: false
# frozen_string_literal: true
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
......
# 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
......
# frozen_string_literal: false
# frozen_string_literal: true
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb
......
# frozen_string_literal: false
# frozen_string_literal: true
# Same as test.rb
instance_eval File.read(File.join(File.dirname(__FILE__), 'test.rb'))
# frozen_string_literal: false
# frozen_string_literal: true
# Same as test.rb
instance_eval File.read(File.join(File.dirname(__FILE__), 'test.rb'))
# 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|
......
# frozen_string_literal: false
# frozen_string_literal: true
require 'active_record'
......
# frozen_string_literal: false
# frozen_string_literal: true
I18n.backend = Redmine::I18n::Backend.new
# Forces I18n to load available locales from the backend
......
# frozen_string_literal: false
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
......
# frozen_string_literal: false
# frozen_string_literal: true
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment